Skip to main content
Glama

util_token_estimate

Estimate the token count of text for GPT-family models using a word/4 heuristic and for Claude-family models using a char/4 heuristic.

Instructions

Estimate token count for text. Uses word/4 heuristic (GPT-family) and char/4 (Claude-family).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argumentsYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses the two estimation heuristics explicitly, giving agents insight into the algorithm. Without annotations, this carries the behavioral burden. Could mention output format or edge cases, but the core behavior is transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, 25 words, front-loaded with purpose and heuristics. No extraneous information. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a simple function but the description omits how to provide input and what the output looks like (no output schema). Agents lack enough context to invoke it correctly without guessing the 'arguments' structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter 'arguments' is a vague object with no description in schema or tool description. The description does not mention how to input the text. With 0% schema coverage and no param info, this is a critical gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states what the tool does: 'Estimate token count for text.' It specifies the two heuristics (word/4 for GPT-family, char/4 for Claude-family), making the purpose unambiguous. Among many sibling utilities, this one is distinct in function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. Does not explain when to choose GPT vs Claude heuristic, nor provides context for appropriate use. Lacks any 'when to use' or 'when not to use' information.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidmosiah/delx-agent-utilities'

If you have feedback or need assistance with the MCP directory API, please join our Discord server