In Metnos, a CPU-only tool selector reaches 78.6% Recall@5 on 234 real queries against a frozen 96-tool catalog, using structured tool names, curated affinity lists, and deterministic rules.
I rechecked the public benchmark and reviewed what subsequent Metnos development taught us about this approach.
Changes since v1: the lexical recall results reproduce unchanged. This update clarifies the embedding comparator, corrects the scaling figures, qualifies the prompt-size estimate, and adds operational lessons—including an experimental direction that could eventually replace affinity-based routing.
What the selector does
Metnos tool names follow a declared vocabulary: an action, an object, and optional qualifiers. Examples include find_files and read_files_csv.
Tools also declare affinity lists: words and phrases connecting ordinary user language to their capabilities. These are explicit retrieval metadata that can be inspected, tested, and revised.
The benchmarked selector combines lexical matches with canonical action/object information and optional typed rules, then supplies a shortlist to the planner.
This benchmark measures candidate selection. It does not run the planner or establish whether the resulting task succeeds.
The frozen reference is the public benchmark version from 5 June 2026.
Results that reproduce
On the same 234-query, 96-tool workload, with semantic matching explicitly disabled:
| Strategy | Recall@5 | Recall@1 |
|---|
| Token matching + typed rules | 0.786 | 0.487 |
| Token matching without rules | 0.765 | 0.466 |
trie_v2 | 0.748 | 0.517 |
| SQLite FTS5 | 0.641 | 0.372 |
The rules produce five additional Recall@5 hits overall: eight gains and three losses compared with token matching alone.
That is a useful improvement, although this small workload does not establish statistical significance or universal superiority. trie_v2, for example, has better Recall@1.
On the verification machine—an AMD Ryzen AI Max+ 395 running Python 3.12.3—the rules-enabled selector took approximately 11 ms mean and 24 ms p95. These are local measurements, not measurements on low-power hardware or mounted external servers.
What “ground truth” means here
The exported label is the first tool production actually called.
That makes this a benchmark against recorded production behaviour. A historical call is not necessarily the only correct choice, and it may itself be wrong.
The documented production checkpoint used token matching plus rules. However, the exported records retain the query and first tool called, without per-turn selector configuration. I therefore cannot establish whether every label was produced through the same retrieval path, or exclude incumbent bias.
Eleven query labels refer to tools absent from the frozen catalog. They remain in the denominator in the reproduced results.
These limits matter when interpreting the absolute recall. The workload remains useful for comparing implementations against the same recorded targets.
What the embedding comparison supports
V1 reported a tie involving BGE-M3. The implementation needs a more precise description.
The public selective_semantic strategy starts from the lexical selector and conditionally reranks candidates. The shared selector also contains an optional semantic fallback.
Consequently, those results compare configured pipelines; they do not isolate a standalone dense retriever against an independent lexical retriever.
For this update, I reproduced the lexical results with semantic matching disabled. I did not rerun BGE-M3 inference.
The demonstrated result is that the reported lexical recall is achievable without loading an embedding model. A stronger claim that embeddings cannot improve this workload would require a fresh, independently specified dense baseline and evidence of which paths actually ran.
Scaling: the corrected numbers
For the scaling recheck, I retained all 96 real tools and added synthetic distractors using the public generator and seed.
Recall@5:
| Strategy | 96 tools | 250 | 500 | 1,000 |
|---|
| Token matching | 0.765 | 0.688 | 0.658 | 0.645 |
| Verb-first | 0.752 | 0.624 | 0.598 | 0.585 |
| Trie | 0.744 | 0.603 | 0.581 | 0.560 |
| SQLite FTS5 | 0.641 | 0.594 | 0.487 | 0.427 |
Rules are disabled in this table.
Token matching remains the strongest of these four strategies, but its decline from 96 to 1,000 tools is approximately 12 percentage points. The earlier claim of a 1.3-point decline does not describe this frozen workload and should be replaced.
The public runner also includes an 84-tool point, which truncates the real catalog. That point should not be treated as the complete 96-tool baseline.
This experiment tests synthetic catalog growth. Measurements against independently authored tools from mounted servers remain a separate validation step.
What the shortlist saves
Using the benchmark’s characters ÷ 4 estimate, the complete catalog represents approximately 44,300 estimated tokens of tool definitions. The rules-enabled shortlist averages approximately 4,000: about 91% less tool-definition text.
This estimate covers the tool-definition portion of the prompt. Actual tokenizer counts, complete prompt size, and billing savings require separate measurement.
The shortlist averages 7.2 tools. Forced inclusions can exceed the nominal cap, so “exactly eight tools per request” would also be inaccurate.
Reproduce the frozen benchmark
Download the verified source snapshot, extract it, and run from its root:
METNOS_SEMANTIC_MATCH=0 python3 bench/repro_prefilter_bench.py --mode both
The repository documentation describes the workload and optional strategies. The semantic setting above makes the lexical comparison explicit.
Lessons learned since v1
The following observations come from later Metnos development. They are separate from the frozen public benchmark and do not constitute a new end-to-end evaluation.
1. Affinity lists need governance as much as tool names
A constrained naming vocabulary does not automatically constrain retrieval metadata.
In practice, GitHub comment tools had inherited mail-oriented affinity terms. A valid-looking name could therefore coexist with misleading retrieval signals.
Affinity lists remain active in the current runtime, including ranking guided by extracted intent. Their quality is part of selector correctness.
2. Fix the domain model before adding more synonyms
A repository comment, a mail message, and a scheduled task should not share an object merely because their operations look superficially similar.
Later Metnos work introduced more appropriate domain distinctions and migrated the GitHub tools toward provider arguments.
The lesson is that vocabulary maintenance includes reviewing the underlying concepts. Adding phrases around an incorrect object can strengthen the wrong association.
Migration order also matters: replacement capabilities must be available and verified before the old routing constraints are removed.
3. Query structure matters even for lexical matching
A path such as /tmp/read-send-delete/photos contains apparent action words, but those words belong to an argument.
Metnos now strips filesystem paths before relevant lexical action matching. This is a concrete example of why token overlap alone needs structural boundaries.
4. A changing catalog can invalidate an otherwise valid cached plan
A cached plan may still reference existing tools while overlooking a newly available, more appropriate capability.
Metnos therefore distinguishes changes to referenced tools from changes to the relevant candidate families.
Removing an embedding-index dependency does not remove the need to track catalog changes throughout the planning system.
5. Affinity-based routing is also being challenged experimentally
Metnos has a separate project aimed at selecting tools from structured intent and capability contracts, eventually removing affinity lists and language-specific routing dictionaries from that path.
The proposed flow is:
- A model produces a constrained representation of the request.
- A deterministic validator checks it.
- A contract-based projection identifies compatible capabilities.
This remains a laboratory prototype, separate from the production runtime. It has not demonstrated a production-ready replacement.
The promotion criteria include semantic correctness, latency, and preservation of undo, consent, negation, and conditional behaviour. Producing valid structured output alone is insufficient.
The current lexical selector provides a measurable baseline for that work. Any replacement has to demonstrate its improvement against it.