Prompt-aware tool suggestions (the context saver)
suggest_toolsRanks available tools against your current prompt and returns matching upstream tools with their full JSON schemas in one response. This reduces context load by replacing the need to load every schema.
Instructions
THE core trick: pass the user's current prompt. Ranks the catalog against it and returns the best-matching upstream tools WITH their full JSON schemas in this single response — so one cheap call replaces loading every schema. Default top_k=4 keeps context lean; raise it for complex multi-tool tasks.
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": {
"prompt": "<prompt>"
},
"name": "suggest_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | How many candidate tools to return (default 4) | |
| prompt | Yes | The user's current prompt, verbatim or paraphrased | |
| auto_load | No | Return full schemas of matches (default true) |