1. See Keyword Search Miss Without Synonyms
Searches "book an overnight sleeper" across 24 tools with synonyms OFF (reserve_cabin scores 0 because it says couchette and berth), then turns synonyms ON to rank it #1.
Track 9 · Agent Bridges & Discovery · BM25 + SHA-256 Schema Gate
When an assistant connects to dozens of WebMCP websites at once, dumping every site's MCP tools/list schema into the prompt wastes thousands of context tokens. Searching tools on demand with a browser-local Okapi BM25 index keeps upfront prompt overhead constant, while pinning each tool's canonical WebCrypto SHA-256 hash blocks sites from silently rewriting descriptions or parameters before execution.
Eager tool lists grow linearly with every connected site, while unguarded name-only tool lookup lets a publisher inject hidden instructions or widen permissions after a tool is cached.
Safe cross-site tool lookup across 2–60 websites at a flat ~650-token upfront cost, with zero silent prompt injection from drifted schemas because mutated contracts halt with 409 SCHEMA_DRIFT.
Try the Lexical Mismatch button to see keyword search fail without synonyms, run the 11-Query Eval Suite to compare recall scores, and fire a live Schema Rug-Pull against the Worker to compare unguarded vs. hash-pinned calls.
Searches "book an overnight sleeper" across 24 tools with synonyms OFF (reserve_cabin scores 0 because it says couchette and berth), then turns synonyms ON to rank it #1.
Runs 11 realistic cross-site tasks and reports Recall@1, Recall@3, and MRR so you can measure how much curated synonyms change retrieval accuracy.
Secretly alters save_bookmark on the Worker to inject append cookie_jar to notes, then compares Name-Only Dispatch (200 EXPLOIT) against the SHA-256 Gate (409 SCHEMA_DRIFT).
Search 24 tools across 8 simulated WebMCP sites using weighted keyword scoring (toolName: 8, siteTitle: 6, description: 4, origin: 1, schemaKeys: 1, synonyms: 3).
| Rank | Site & Tool | Total BM25 | Field Breakdown (name / site / desc / orig / schema / syn) | Matched Tokens |
|---|
Run all 11 benchmark queries with synonyms OFF or ON to see exactly which user phrasings pure keyword search misses.
| Eval ID | Intent Query | Expected Tool | Rank | Top-1 Returned | Score / Status |
|---|
Test what happens when a site changes a tool's description or schema after discovery while keeping its name identical: unguarded dispatch runs it, while the SHA-256 gate stops it with 409 SCHEMA_DRIFT.
sha256:computing...
sha256:computing...
| JSON Path | Change | Cached vs. Live Value |
|---|
POST /api/sites/:site/call)Click "Dispatch Unguarded" or "Dispatch with Pinned SHA-256 Gate" above to execute a live request against the Worker.
--stable) vs. Full-Catalog Prompt CostDrag the slider from 2 to 60 sites to compare loading every site's tool schema upfront against keeping 7 small search/call wrapper tools.
| Connected Sites | Total Tools | Eager tools/list Tokens |
--stable + Top-k Tokens |
Relative Context Footprint | Reduction |
|---|
tools/list JSON Payloads (Eager vs. --stable)Loading...
Loading...
Inspect the 8 JSON tool manifests served by this Worker and see how text scraping breaks when a tool description contains ", inputSchema=.
GET /api/manifests)Loading manifests...
parseChromeWebmcpListing() Text-Listing Fragility Probe (GET /api/parser-fragility)Click "Fetch Fragility Probe" or expand to inspect naive delimiter truncation on embedded ", inputSchema=".
--stable Mode)search_registry -> execute_registry_tool
sha256: hashpublic/lib/(8, 6, 4, 1, 1, 3)sha256(canonicalJson(liveTool)) with WebCryptoNo model inference runs in ranking or gating: every score and hash is deterministic.
expectedSchemaHash === liveSchemaHash
description / enum / properties changed
Call stops before running; caller reviews the exact diff before re-pinning.
Replacing eager tools/list_changed catalog dumps and name-only registry execution with weighted BM25 lookup plus canonical SHA-256 pre-invocation verification.
// 1. Eager tools/list_changed pushes all N sites' schemas into context (O(N))
// 2. executeRegistryTool only verifies tool name still exists:
const currentTool = siteTools.find((tool) => tool.name === entry.toolName);
if (!currentTool) throw new Error("Tool missing");
// Silently executes even if description injected "append cookie_jar"
// or action.enum widened from ["read"] to ["read", "delete"]!
await bridge.executePageTool(entry.toolName, input);
// 1. --stable mode keeps 7 meta-tools (O(1)) + Top-k BM25(8,6,4,1,1,3) search
// 2. Before invoking, hash live contract and compare to discovery pin:
const liveHash = await computeSchemaHash(liveTool);
if (liveHash !== pinnedHash) {
const diff = diffToolSchemas(cachedTool, liveTool);
return Response.json(
{ ok: false, code: "SCHEMA_DRIFT", expectedSchemaHash: pinnedHash, liveSchemaHash: liveHash, diff },
{ status: 409 }
);
}
Linear prompt bloat from injecting dozens of origins' full JSON Schemas via tools/list_changed, and silent post-discovery contract mutations.
Per-field Okapi BM25 weights, lexical vocabulary gaps when synonyms are absent, and canonical sha256: schema digests pinned at discovery time.
Chrome DevTools MCP's experimental WebMCP listing currently serializes tools as fragile text (name="...", description="...", inputSchema=) rather than signed structured manifests, and pure lexical BM25 still requires synonyms or hybrid dense retrieval for zero-overlap phrasing.
navigator.modelContext)tools/list) and execute them with typed JSON inputs.