compare_tokens
Compare token consumption of two programs to identify the more efficient option, assuming both yield equivalent results.
Instructions
Measure two programs' token use and report which uses fewer, by how much. Only meaningful if both produce acceptable equivalent results — verify that separately (fewer tokens with worse answers is not a win).
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": {
"command_a": "<command_a>",
"command_b": "<command_b>"
},
"name": "compare_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upstream | No | https://api.anthropic.com | |
| command_a | Yes | ||
| command_b | Yes | ||
| base_url_env | No | ANTHROPIC_BASE_URL |