Skip to main content
Glama

Server Details

Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.

If you are the author of this connector, you can claim ownership by verifying the domain or GitHub account it belongs to. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

A4.3/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no ambiguity. An agent cannot confuse it with any other tool, as there are no alternatives.

Naming Consistency5/5

The single tool 'tokens_count' uses a clear snake_case naming pattern. While there is no other tool to compare, the name is self-consistent and follows a reasonable convention.

Tool Count5/5

One tool is exactly appropriate for a focused token counter server. The tool performs a single, well-defined task that matches the server's purpose.

Completeness4/5

The tool covers the stated domain of counting tokens for OpenAI-compatible encodings. However it explicitly excludes Claude/Anthropic tokenization, which could be a gap for broader LLM token counting needs.

Available Tools

1 tool
tokens_countAInspect

Counts tokens under an OpenAI-compatible (tiktoken) encoding. Provide exactly one of model (e.g. "gpt-4o") or encoding ("o200k_base" or "cl100k_base"). No Claude/Anthropic tokenizer.

Inputs: text (required), model, encoding. Returns: tokens, encoding

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources