Skip to main content
Glama

cheapest_model

Return the cheapest LLM API models that meet a constraint, ranked by blended $/M-token cost. Use this to route an agent to the lowest-cost model with enough context that is currently operational. Filter by minimum context window and provider; weight input vs output cost for your workload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many to return (default 10).
providerNoRestrict to one provider slug (openai, anthropic, google, ...).
in_weightNoRelative weight of input-token price (default 1).
out_weightNoRelative weight of output-token price (default 3, output-heavy).
min_contextNoMinimum context window (tokens), e.g. 128000.
operational_onlyNoDrop providers with a major/critical status indicator.

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries full burden. It mentions ranking by cost and filtering by operational status, but does not disclose whether the tool makes live API calls, rate limits, or the exact meaning of 'operational'. The return format is not described.

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

Conciseness5/5

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

Two sentences: first states purpose, second provides usage and parameter hints. Every sentence is useful and there is no fluff. Front-loaded with key information.

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

Completeness3/5

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

Given the absence of an output schema, the description should hint at return format. It does not explicitly state what fields are returned (e.g., model name, cost, provider). Somewhat complete but lacks details on output structure.

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%, baseline 3. The description adds value by explaining the purpose of min_context, provider, in_weight, and out_weight (e.g., 'weight input vs output cost'). This goes beyond the schema descriptions.

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 clearly states 'Return the cheapest LLM API models' with specific details on ranking by blended $/M-token cost. It distinguishes from sibling tools (price_change_alerts, price_history, status) by focusing on cost minimization.

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?

The description provides explicit guidance: 'Use this to route an agent to the lowest-cost model with enough context that is currently operational.' It also explains how to filter and weight costs, but does not explicitly state when not to use it or mention alternatives.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool targets a distinct aspect: cheapest model search, price change alerts, price history, and provider status. No overlap in purpose.

Naming Consistency5/5

All tool names use lowercase with underscores and follow a predictable noun_noun or adjective_noun pattern. Naming is clear and consistent.

Tool Count5/5

With 4 tools, the server is well-scoped for its purpose of monitoring AI API prices and status. Each tool is justified.

Completeness3/5

While core functionalities are covered, the server lacks a tool to list available providers or models, which is a notable gap for initial discovery.

Resources