# Token Diet

> Token Diet — com-clawhard-tokendiet. Use this tool when you need to accurately count tokens in a given text and determine if it fits within specific context window sizes, such as 128K, 200K, or 1M tokens, to optimize text processing and analysis. It solves problems related to text length limitations and context window constraints, providing a straightforward input-output interface for text and token count. Ideal for use cases where precise token counting is crucial, such as language modeling and text classification tasks.

Canonical page: https://skillsregistry.net/skills/com-clawhard-tokendiet  
JSON: https://api.skillsregistry.net/v1/skills/com-clawhard-tokendiet

## Description

Count tokens exactly for any text and see if it fits a 128K, 200K or 1M context window.

## Trust

- **Trust score (0–1):** 0.70
- **Verification tier:** unverified

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Updated:** 2026-11-25

## Source

- **Source listing:** [MCP Registry](https://registry.modelcontextprotocol.io/v0/servers/com.clawhard%2Ftokendiet)

## Use it

MCP endpoint published by the skill: `https://tokendiet.clawhard.com/mcp`

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "com-clawhard-tokendiet"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/com-clawhard-tokendiet` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/com-clawhard-tokendiet/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
