Skip to main content
Glama

Etuki FinOps & LLM Pricing Oracle

auto_route_task_by_quality_tier

Read-onlyIdempotent

Simulates a 6-turn coding workflow cost projection comparing unrouted flagship execution against tiered routing across grant pools and warm-cached GA models. Stateless in-memory calculation requiring no authentication and mutating no router settings. Scales per-turn cost linearly with context_tokens relative to current_model; when has_custom_router_config is true, reports a non-intrusive shadow comparison rather than active target IDs. Returns JSON with custom_router_mutex_check, six_turn_cost_breakdown (1 cold write turn + 5 warm read turns), and net_saved_usd (positive USD saved vs unrouted baseline). Use this tool when planning multi-turn task allocation; use check_context_cliff for single-turn length checks or reconcile_usage_receipt for post-hoc invoice auditing.

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": "auto_route_task_by_quality_tier"
  }
}

Input Schema

NameRequiredDescriptionDefault
current_modelNoCurrently configured primary model ID in the user's IDE.openai/gpt-6.1-sol
context_tokensNoEstimated prompt token count per turn (e.g. 80000 to 200000).
task_instructionNoCoding or architectural task description used to classify complexity tier.Refactor Nextjs edge routes
has_custom_router_configNoWhen true, preserves user's existing router and outputs a non-intrusive shadow comparison; when false, outputs active routing targets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / context_tokens / minimum
      Added value: +1
    • changedInput schema / properties / has_custom_router_config / description
      Previous value: -"If true, preserves user's existing router and outputs a non-intrusive shadow cost comparison; if false, outputs active routing directives."New value: +"When true, preserves user's existing router and outputs a non-intrusive shadow comparison; when false, outputs active routing targets."
    • changedInput schema / properties / task_instruction / description
      Previous value: -"Coding or analysis task description used to classify complexity tier."New value: +"Coding or architectural task description used to classify complexity tier."
  2. Changed4 schema fields changed
    • changedInput schema / properties / context_tokens / description
      Previous value: -"Estimated raw context tokens"New value: +"Estimated prompt token count per turn (e.g. 80000 to 200000)."
    • changedInput schema / properties / current_model / description
      Previous value: -"Active model ID"New value: +"Currently configured primary model ID in the user's IDE."
    • changedInput schema / properties / has_custom_router_config / description
      Previous value: -"Whether user has an existing custom router"New value: +"If true, preserves user's existing router and outputs a non-intrusive shadow cost comparison; if false, outputs active routing directives."
    • changedInput schema / properties / task_instruction / description
      Previous value: -"Task prompt to analyze"New value: +"Coding or analysis task description used to classify complexity tier."
  3. Changed4 schema fields changed
    • addedInput schema / properties / context_tokens / description
      Added value: +"Estimated raw context tokens"
    • addedInput schema / properties / current_model / description
      Added value: +"Active model ID"
    • addedInput schema / properties / has_custom_router_config / description
      Added value: +"Whether user has an existing custom router"
    • addedInput schema / properties / task_instruction / description
      Added value: +"Task prompt to analyze"
  4. Added

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly/idempotent/non-destructive/closed-world, yet the description still adds real context: 'Stateless in-memory calculation requiring no authentication and mutating no router settings,' plus the linear cost-scaling rule and the shadow-comparison behavior when has_custom_router_config is true. That is behavior beyond what the annotations declare.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the purpose, then constraints, output shape, and sibling routing. Every sentence carries useful information, though the density of jargon ('grant pools', 'warm-cached GA models', 'custom_router_mutex_check') makes it heavier to parse than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by naming the returned fields (custom_router_mutex_check, six_turn_cost_breakdown with 1 cold write + 5 warm read turns, net_saved_usd) and their sign convention. Combined with auth, statelessness, and the shadow-mode caveat, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: cost 'scales per-turn cost linearly with context_tokens relative to current_model' and has_custom_router_config producing shadow comparison 'rather than active target IDs.' It does not add anything further about task_instruction's classification tiers, so it is strong but not exhaustive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and scope: 'Simulates a 6-turn coding workflow cost projection comparing unrouted flagship execution against tiered routing across grant pools and warm-cached GA models.' This immediately corrects the misleading name (auto_route_task_by_quality_tier sounds like an action) by making clear it is a simulation, so an agent can separate it from siblings like detect_model_downgrade_and_substitution.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing is given: 'Use this tool when planning multi-turn task allocation; use check_context_cliff for single-turn length checks or reconcile_usage_receipt for post-hoc invoice auditing.' Both the when-to-use condition and two named alternatives with their own conditions are stated, leaving nothing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources