Skip to main content
Glama

AI PM Lab

Count tokens

count_tokens
Read-onlyIdempotent

Count the tokens in a text (an estimate with OpenAI's cl100k tokenizer; other model families differ slightly).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources