prune_tools
Score and rank tools by relevance to a task intent, then prune low-scoring ones to save context tokens.
Instructions
Score and rank MCP tools by relevance to a task intent. Optionally prune low-relevance tools to save context tokens.
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": {
"intent": "<intent>",
"tools": "<tools>"
},
"name": "prune_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes | The task description or user intent to score tools against | |
| tools | Yes | Array of tool definitions to score | |
| mode | No | rank: score and sort all tools. prune: also mark bottom-M tools for removal | rank |
| prune_count | No | Number of lowest-scoring tools to prune (only in prune mode, default 5) |