get_token_count
Estimate token count for text inputs to manage LLM context limits. Optionally specify model for accurate token estimation.
Instructions
Estimate token count for text. Helps manage LLM context limits.
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": "get_token_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |