adaptive_retrieve
Run iterative query-rewriting retrieval over a knowledge graph, searching, scoring coverage, and rewriting up to a round limit to find relevant memories without requiring an LLM provider.
Instructions
3B.5 — Run iterative query-rewriting retrieval. Up to maxRounds of (search → score coverage → rewrite). Stops early when coverage ≥ minCoverage or no expansion tokens. Pure symbolic — no LLM provider required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "adaptive_retrieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| maxRounds | No | ||
| minCoverage | No | ||
| budgetTokens | No | Optional token budget; rejects retrieval if cost exceeds budget | |
| resultsPerRound | No |