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).
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 |