token_budget_calculator
ActiveTool of IA-QA — 130+ QA & Dev Tools for AI Agents
declared in 1.0.0
Plan token allocation across system prompt, user input, context/RAG chunks, and expected output. Warns if budget exceeds model context window. Supports 25+ models.
Parameters schema
{
"type": "object",
"required": [
"model"
],
"properties": {
"model": {
"type": "string",
"description": "Model name (e.g. gpt-4o, claude-3.5-sonnet, gemini-2.0-flash)"
},
"context": {
"type": "string",
"description": "Actual context text (will estimate tokens)"
},
"user_input": {
"type": "string",
"description": "Actual user input text (will estimate tokens)"
},
"system_prompt": {
"type": "string",
"description": "Actual system prompt text (will estimate tokens)"
},
"context_tokens": {
"type": "number",
"description": "Token count for RAG context / documents"
},
"user_input_tokens": {
"type": "number",
"description": "Token count for user message"
},
"system_prompt_tokens": {
"type": "number",
"description": "Token count for system prompt"
},
"expected_output_tokens": {
"type": "number",
"description": "Expected max output tokens"
}
}
}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