text_tokens
Exact token count (tiktoken) ($0.001 per call, paid via MPP on Tempo). Exact token counts with OpenAI tiktoken encodings: o200k_base (GPT-4o, 4.1, o-series, GPT-5) and cl100k_base (GPT-4, 3.5, text-embedding-3). Body: JSON {text, encodings?} or raw text. Up to 5 MB of text. HTTP POST https://mpp-docs.fmf-x402.workers.dev/mpp/text/tokens. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
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": "text_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| encodings | No |