Token Estimate
util_token_estimateEstimate token count for text using heuristics for GPT and Claude model families. Provide text and optional model hint for accurate counting.
Instructions
Estimate token count for text. Uses word/4 heuristic (GPT-family) and char/4 (Claude-family). Delx Agent Utilities are separate from the free witness protocol and may expose x402 utility pricing.
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": "util_token_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to estimate tokens for | |
| model | No | Optional model hint: gpt-4, claude-3, etc. | gpt-4 |