Check which models' context windows fit an input
check_context_fitSay which models can take this input plus the output you want to reserve, which cannot, and which do not publish a context window. Use before sending a very large document or conversation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_context_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Prompt text. Counted with an estimator, never stored. | |
| models | No | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. | |
| system | No | System prompt text. | |
| messages | No | Chat messages [{role, content}]. Counted with an estimator, never stored. | |
| providers | No | Only these providers. | |
| input_tokens | No | Exact input token count, if you have it. Overrides text and gives an exact cost. | |
| reserve_output_tokens | No |