Context Window Planner
context-window-plannerUse when a user needs to know whether a document plus prompt plus output fits within a model's context window, or wants a strategy recommendation (truncate/summarize/rag/chunk).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc_tokens": 18000,
"model_context_window": 200000
},
"name": "context-window-planner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_tokens | Yes | Primary document/content tokens | |
| strategy_hint | No | Preferred strategy (optional) | |
| overhead_tokens | No | System prompt + few-shot + history (default 2000) | |
| expected_out_tokens | No | Reserved output budget (default 1000) | |
| model_context_window | Yes | Target model context size |