Skip to main content
Glama

ai_model_router

Read-only

LLM model router — Decide which model tier a prompt needs (small, medium or large) before you pay for a big model. Offline heuristic scoring of code, debugging, math, reasoning words, multi-part questions, context length, output length and routine tasks, with suggested max tokens, temperature and minimum context window. Optional: budget=low|balanced|quality, outputTokens=. No model call, nothing stored. Price: $0.002 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "ai_model_router"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYese.g. Classify this review as positive or negative: The battery died after two days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description corroborates and extends them: 'Offline heuristic scoring', 'No model call, nothing stored', plus the price of $0.002 USDC paid via x402 on Base. That payment/x402 detail is genuinely valuable context an agent would not otherwise know. It stops short of describing latency, determinism, or error behavior, so 4 rather than 5.

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

Conciseness3/5

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

The statement is front-loaded with purpose, which is good, but the middle is a dense comma-run of scoring factors and the optional-parameter fragment is garbled ('outputTokens=.'). Nothing is padded, yet the schema-inconsistent fragment costs it clarity.

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

Completeness4/5

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

There is no output schema, and the description partly compensates by naming the outputs ('suggested max tokens, temperature and minimum context window'), which is what an agent mainly needs to consume the result. For a single-parameter tool this is close to sufficient; the exact response shape and any confidence/scoring fields remain unstated.

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

Parameters3/5

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

With one required parameter at 100% schema coverage, the baseline is 3. The description does add the scoring factors applied to the prompt (code, debugging, math, reasoning words, multi-part questions, context length), which is meaningful. However it advertises 'Optional: budget=low|balanced|quality, outputTokens=' — parameters that do not exist in the schema, and the dangling 'outputTokens=.' is malformed. That mismatch can mislead an agent into passing unsupported arguments.

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

Purpose4/5

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

The first clause names a specific verb and resource: 'LLM model router — Decide which model tier a prompt needs (small, medium or large)'. That is concrete and distinguishable from classification or routing siblings such as ai_classify or ai_tool_router. It stops short of naming a sibling to contrast with, so it lands at 4 rather than 5.

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

Usage Guidelines4/5

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

'before you pay for a big model' gives a clear triggering context: pre-flight cost triage. It does not state when this is inappropriate (e.g. when you already know the tier) or point to any alternative tool, but the intended usage is unambiguous.

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