analyze_tokens
Calculate token counts and API costs using model-aware tokenizers across multiple configured models.
Instructions
Count tokens using model-aware tokenizers and estimate API costs across multiple configured models.
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": {
"text": "<text>"
},
"name": "analyze_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No | gpt-4o |