estimate_token_cost
Estimate token usage for tool definitions in the agent context window to decide on progressive loading.
Instructions
Roughly estimate how many tokens a list of tool definitions will consume in the agent context window. Helps decide whether to enable progressive loading.
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": {
"tools": "<tools>"
},
"name": "estimate_token_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | Yes | List of tools with their name and description |