Skip to main content
Glama

x402 agent toolkit: service finder, payment safety, Solana & web tools

Token count estimate

token_count
Read-onlyIdempotent

Estimate LLM tokens, words and characters for any text (±15% vs GPT/Claude tokenizers; CJK-aware) and whether it fits 8k-1M context windows. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]

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": "token_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYestext

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new behavioral context: a ±15% accuracy bound, CJK awareness, context-window coverage of 8k-1M, and the exact rate limit and payment/auth path (x402 via params._meta or X-API-Key credits) — an agent knows before calling that it may be throttled or charged.

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

Conciseness4/5

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

The capability statement is front-loaded in the first clause, followed by accuracy and then commercial terms. It is dense but every clause carries information; the payment/server parenthetical is slightly cluttered but not wasted.

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

Completeness4/5

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

With an output schema present, return values need not be described, and annotations cover the safety profile, so what remains — accuracy, input scope, rate limits, payment — is largely present. It omits any input size limit for the text field, which is the one thing an agent could still trip over.

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

Parameters3/5

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

There is a single required parameter with 100% schema coverage, so the schema carries the load and the baseline is 3. The description adds only that the input can be 'any text' with CJK handling, which is marginal meaning beyond the schema.

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

Purpose4/5

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

States a specific verb and resource ('Estimate LLM tokens, words and characters for any text') plus a concrete accuracy band and CJK support, so the operation is unambiguous. It does not explicitly distinguish itself from close siblings like llm_cost_estimate or mcp_token_measure, leaving the agent to infer the boundary from names.

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

Usage Guidelines3/5

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

Usage is only implied by 'for any text' and by the context-window fit mention; there is no explicit when-to-use versus when to prefer llm_cost_estimate. The pricing tiers tell the agent about cost exposure but not about tool selection.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources