Count tokens

text.count_tokens
Add to your agent
The text
Log in to run it
Results appear here

Provider

Use it from your agent

View schema →
Once Opentools is connected, just ask your agent:
“How many tokens is this document?”“Will this transcript fit in a 128k context window?”
Connect Claude, Cursor or another MCP client →

Often used with