context_window_check
ActiveTool of IA-QA — 130+ QA & Dev Tools for AI Agents
declared in 1.0.0
Given an array of message objects [{role, content}], estimate total token usage and check if it fits in the target model's context window. Warns about truncation risk.
Parameters schema
{
"type": "object",
"required": [
"messages",
"model"
],
"properties": {
"model": {
"type": "string",
"description": "Target model name (e.g. gpt-4o, claude-3.5-sonnet)"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string"
},
"content": {
"type": "string"
}
}
},
"description": "Array of messages (system/user/assistant)"
},
"max_output_tokens": {
"type": "number",
"description": "Reserved tokens for output (default: 4096)"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
IA-QA — 130+ QA & Dev Tools for AI Agents
https://github.com/jcjamet/ia-qa
1/7 registries