Finance and scholarly literature get real sources instead of hostname filters,
category becomes a two-level tree the agent can navigate, and a batch of
accuracy bugs that quietly corrupted results are fixed.
Added
- Ten new keyless sources. Finance:
sec_edgar(US filings full text),
cninfo(A-share / HK announcements),yahoofinance(ticker resolution and
market news),worldbank(Documents & Reports),imf(DataMapper series,
WEO forecasts included). Scholarly:europepmc(40M life-science records
including preprints),dblp(computer science),doaj(open access),
clinicaltrials(registered human trials), andsemanticscholarbehind an
optional key. Before this, a finance query had no specialist source at all
and fell through to the general web pool. categoryis now a two-level tree. A bare group widens, a dotted
sub-group narrows:paper.index,paper.preprint,paper.biomed,
paper.cs,paper.openaccess,paper.trial,finance.filings,
finance.market,finance.macro,news.world. Every token appears in the
tool schema's enum, so an agent discovers the whole tree without a second
call. Preprint search runs through Europe PMC'sSRC:"PPR"clause because
bioRxiv's own API cannot keyword-search at all.paper_graph— the eleventh tool. Takes a DOI, an OpenAlex ID or an
exact title and returns what the paper cites, what cites it (ordered by how
much the field cited those in turn, so a five-year-old paper leads to the
current state of the art), and any Crossref retraction, correction or
expression of concern. A full walk costs four HTTP requests regardless of
limit, because every neighbour's metadata is selected in the call that
lists it.cache_searchreturned "no cached pages match" for a cache full of
matches.put_pageusedINSERT OR REPLACE, which resolves the url
conflict by deleting the old row and inserting a new one with a NEW rowid —
and SQLite fires DELETE triggers on that path only whenrecursive_triggers
is on, which it is not by default. So every re-fetch orphaned the old
rowid's postings inpages_fts. External-content FTS5 reads column values
back frompagesby rowid, so the first orphan made every query raise
fts5: missing row N from content table, which the malformed-query handler
swallowed into an empty result.put_pagenow upserts (keeping the rowid),
existing cache files are rebuilt once on open, and a desynced index is
repaired on read instead of being reported as "nothing cached".- Rate-limited engines are now reported.
aggregatorwrote
diagnostics["rate_limited"]and nothing in the codebase ever read it, so a
gdeltsearch skipped for its 6/min bucket looked identical to one that
genuinely found nothing.
Changed
-
category=now changes the ORDER of results, not just which engines run.
A specialist is usually the only source returning a given document, so its
hit scored 1/61 under plain RRF while three general engines agreeing on a
blog post about the topic scored 3/61 and won —category="finance.filings"
put NVIDIA's actual 10-K fourth, behind commentary about it, and put A-share
announcements seventh behind Wikipedia. Engines that natively index the
requested category now count double in the fusion. Measured on 14 queries
against real engine output, scoring the one result a knowledgeable person
would call correct:hit@1 hit@3 MRR before 6/14 9/14 0.605 after 8/14 13/14 0.747 Six queries improved and none regressed. Two other candidate changes were
measured on the same set and dropped for lack of evidence: retuning RRF's
damping constant moved MRR by under 0.01 at any value between 5 and 60, and
a lexical query/title overlap bonus made every configuration worse
(0.747 -> 0.645). -
category="paper"round-robins across its sub-groups before the engine
limit truncates.SEARCH_MCP_CATEGORY_ENGINE_LIMIT(default 3) used to
hand all three slots toarxiv,openalexandcrossref— and the last two
are both DOI indexes covering the same corpus. The three slots now buy three
different corpora, which also revivespubmed: it was the fourth engine in a
three-slot list, i.e. dead code that four separate documents advertised. -
engines()returns the source tree, derived from the registry. The
hand-maintained buckets it replaces had drifted — they promotedpubmed
where it could never run and never mentionedopenverseorzenodo. It
takes an optionalgroup=and honoursformat="json"like every other tool. -
Enginegained a one-linedescription, rendered byengines(), so
picking a source no longer means guessing from its name.
Fixed
bing's redirect unwrapping (shipped in 0.9.2) no longer rewrites URLs it
should leave alone. It located the payload by searching the whole URL for
u=, butuis an ordinary parameter name that other sites use for their own
purposes, so a non-Bing link whoseuvalue happened to base64-decode into
something starting withhttpwas silently replaced by it. Unwrapping is now
gated on the URL actually being abing.com/ck/aredirect, and the decoded
target must be an absolutehttp://orhttps://URL rather than merely
starting with those four characters.bravereturned every result twice. Its comma-joined selector matches
the samedivthrough both branches and selectolax does not deduplicate, so
two real results parsed as four. Half ofmax_resultswas spent on
duplicates, and RRF scored each one twice, givingbraveroughly double
weight in the merge.mojeek,bing,baiduandsearxhad the same
missingseenset with a smaller blast radius.read_docignored the charset and mangled every non-UTF-8 page. Five
call sites hard-codeddecode("utf-8", errors="replace")while the fetcher
had already retrieved the content type. GBK, Big5 and Shift-JIS documents
came back as replacement characters. They now go through the same
header-then-<meta>decoder the rest of the package uses.- Crossref dates were wrong in two ways, and trusted anyway. An internal
nullindate-parts([[2024, null, 5]]) was filtered out rather than
treated as a stop, promoting the day into the month slot; and a
year-only record was padded toYYYY-01-01and marked confident, so
freshness="month"dropped a paper actually published in December. Dates now
truncate at the first gap, and year-only precision is no longer confident. sogouandso360ignoredsite:/-site:/filetype:. They were
the only two web engines that never calledaugment_query_with_operators, so
they returned unconstrained results that the post-filter then discarded
wholesale —engines=["so360"], include_domains=["python.org"]reliably
returned nothing.- Merging two copies of a URL could throw away the trustworthy date. The
representative was picked by snippet length, so a structured source with an
exact publication date lost to an HTML scrape with a longer teaser, and the
date was then dropped as empty. The merge is now field-wise: best date, and
longest snippet, from whichever copy has it. - A cache hit erased the provenance of the search it replayed. The first
query reported "duckduckgo was gated,searxrescued it"; the same query
inside the 7-day TTL reported an ordinary search.gated_engines,
gated_hintandrescued_vianow travel with the cached rows. googlecould return a relative path as a result URL._unwraponly
understood theq=wrapper; Google's other form puts the target inurl=
and leavesqempty, whichparse_qsdiscards. The unwrapped value was also
never made absolute, sofetchcould not open it and host-based filtering
silently dropped it.fetch(max_age_hours=…)never hit the cache for Google News links. The
pre-check used the raw URL while the cache is keyed on the publisher URL the
fetcher resolves it to, so every call re-fetched.sec_edgaranswered a ticker query with unrelated issuers' filings.
EDGAR's relevance ranking is dominated by structured-product pricing
supplements, so "NVDA risk factors" led with four 497Ks from ProShares and
Investment Managers Series Trust that merely mention the ticker. A query that
writes a ticker as a ticker is now scoped withentityName=, which returns
NVIDIA's own 10-K and 10-Qs. The match is case-sensitive — lower-cased, the
ticker space is full of ordinary words (IT,ALL,ON,NOW,GO) — and
an empty scoped search is re-run unscoped, so a wrong guess costs a round
trip rather than the answer.- The search header credited engines that produced nothing.
payload["engines"]is the REQUEST — the list the cache key is built from —
and when a requested engine fails, the rescue pass substitutes another. The
header printed the request, sosearch(engines=["serper"])with no key
configured announcedengines: serperabove ten results that every
per-result byline correctly attributed tobing. The header now names the
engines that actually contributed and lists the rest separately. - A dictionary entry passed as a scholarly source.
_PAPER_HOSTSlists
publisher domains and the matcher accepts any subdomain, which is what keeps
the list short — but the big presses also run dictionaries and bookshops on
the same domain.category="paper"on "what is reciprocal rank fusion"
dropped 54 of 56 raw results and kept Cambridge Dictionary's entry for the
WORD "reciprocal" as its single source. Known non-scholarly siblings are now
excluded before the allowlist is consulted. category="image"and"dataset"could be rescued into the web pool.
settings.rescue_enginesIS the general web pool, and the whole reason those
two categories REPLACE that pool is that a web engine cannot return an image
file or a dataset record. A sparse Openverse run therefore came back as HTML
pages thatfetch(inline=True)cannot render, under a header saying the
search succeeded. Exclusive categories no longer rescue.max_resultswas unvalidated.n = max_results or defaultturned an
explicit0into ten results with no sign anything had been ignored, and
four-figure values were passed to every engine in the fan-out. It is now
clamped to 1-50, withNonestill meaning "use the configured default".paper_graphresolved a title to whatever OpenAlex ranked first.
"BERT pre-training of deep bidirectional transformers" returned BEiT's
citation graph under the heading the caller typed — the actual BERT paper is
not in OpenAlex's top five for that query at all, and a caller checking a
citation has no way to catch the substitution. A title now has to clear a
similarity gate that accepts a genuine prefix ("reciprocal rank fusion
outperforms condorcet") and rejects a neighbour; when nothing clears it, the
near misses are listed so the caller can retry precisely. DOI and OpenAlex-ID
lookups are exact and ungated.- Blank arguments blamed the wrong thing.
read_doc("")answered "Local
file reads are disabled; set SEARCH_MCP_DOCUMENT_ROOT", sending the caller to
configure a sandbox they did not need;cache_search("")told them to
populate a cache that may already be full;fetch_batch([])returned an
empty string, which reads as "every fetch failed silently". Each now names
the argument that was wrong. - IMF indicator matching preferred a code that is also a word. Three of the
132 codes are ordinary words —GDPis Capital Flows' nominal GDP — so
"real gdp growth" matched the code shortcut and beat the indicator literally
called "Real GDP growth". The shortcut now requires the code typed as a code,
scoring is case-insensitive, and a label that merely contains the query no
longer ties with one that matches it. - cninfo dated every announcement one day early. Its epochs are exact
midnights in Beijing time, so rendering them as UTC landed at 16:00 the
previous day — visible in the payload itself, where the filing date in
adjunctUrldisagreed withannouncementTimeon every hit. render_fetchran the body into the metadata line. One newline where
render_docuses two, on every default-formatfetchandfetch_batch.- Smaller:
openalexnow sendsselect=(a 10-result page measured 174 KB
against 56 KB),arxivuses HTTPS,pubmedno longer computes its
publication date twice,zenodono longer recompiles a regex per call, and
researchpasses through the diagnostics fields it had been dropping.