Skip to main content
Glama

Cheapest LLM for a need

ai_cheapest
Read-onlyIdempotent

Cheapest models meeting needs (tools, json, vision, reasoning, audio, pdf) and min_context, ranked by blended USD per 1M tokens (3:1 in:out). $0.001/call. Use to pick the cheapest LLM that supports what you need (tools, vision, json, context).

Input Schema

NameRequiredDescriptionDefault
limitNo
needsNo
providerNo
min_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, open-world behavior, so the safety profile is covered. The description adds useful context (per-call price of $0.001 and the ranking methodology), but with no output schema it still never describes what the response contains, which is a real gap for a lookup tool.

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 lead sentence is well front-loaded, but the trailing 'Use to pick the cheapest LLM that supports what you need (tools, vision, json, context)' largely restates the opening, repeating the same capability list rather than adding new information.

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

Completeness2/5

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

With no output schema and 0% param coverage, the description carries the full burden but leaves return structure, 'limit' behavior, and 'provider' filtering undefined. An agent could invoke it but cannot predict the result shape or how to use several parameters.

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

Parameters2/5

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

Schema coverage is 0%, so the description must define all four params, but it only addresses two. 'needs' gets example values (tools, json, vision, reasoning, audio, pdf) and 'min_context' is named, yet the syntax of 'needs' and the roles of 'limit' and 'provider' are completely undocumented.

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 description states a specific purpose: return the cheapest models that satisfy capability needs, ranked by blended USD per 1M tokens with a stated 3:1 in:out ratio. This distinguishes it from generic cost tools (ai_cost) and listing tools (ai_models), though it never explicitly names those siblings.

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

Usage Guidelines3/5

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

It gives an affirmative usage cue ('Use to pick the cheapest LLM that supports what you need'), but provides no when-not guidance, no alternatives, and no prerequisites. The agent must infer that ai_cost or ai_models cover other needs.

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.