Skip to main content
Glama

models_cheapest

Read-only

$0.002 via x402: The cheapest models that fit a job: rank by blended price (3 parts prompt, 1 part completion) under constraints min_context=, modality= (image, file, audio), reasoning=true, provider=, exclude_free=true (default; free routes are rate-limited); top= (default 10). Pay 0.002 USDC through https://store.agentexchange.work/gw/models/cheapest?min_context=128000&modality=image Via the Agent Exchange store

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

Input Schema

NameRequiredDescriptionDefault
topNotop
modalityNomodality
providerNoprovider
reasoningNoreasoning
x_paymentNoSigned x402 payment payload (optional; without it the answer is the price)
min_contextNomin_context
exclude_freeNoexclude_free

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations only declare readOnlyHint and openWorldHint; the description usefully adds that the call costs $0.002 USDC via x402 and that omitting x_payment returns the price instead of the answer. That is genuine behavioral context. However, it does not say what happens on insufficient payment, whether results are cached, or how rate limits on the paid route apply, so transparency is good but not exhaustive.

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 key facts (price, ranking formula, constraints, defaults) are front-loaded, which is good, but it is a single dense run-on sentence with a full example URL including a query string jammed in. That sample URL is illustrative but adds noise an agent may mistakenly treat as the endpoint to call.

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?

For a 7-parameter, all-optional query tool with no output schema, the description covers cost, ranking logic, constraint semantics, and defaults adequately. It stops short of describing the shape of the returned ranked list (fields like model id, price, context window), which would be the remaining gap given there is no output schema.

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 nominally 100%, but every schema description just repeats the parameter name, so the description is doing the real work: it explains the blended-price weighting (3 parts prompt, 1 part completion), the default top=10, the default exclude_free=true, the allowed modality values (image, file, audio), and the x_payment behavior. Provider and reasoning formats remain under-specified, and reasoning is typed as string despite the '=true' phrasing.

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 opens with a concrete price and states the specific job: 'The cheapest models that fit a job', ranked by a stated blended-price formula. It is clearly a model-discovery/ranking tool, though it never names how it differs from siblings like models_models or models_model, leaving that distinction implicit.

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?

It enumerates the constraint switches that select a result set (min_context, modality, reasoning, provider, exclude_free, top) and flags the important default that free routes are excluded because 'free routes are rate-limited'. What's missing is explicit when-to-use/when-not guidance against alternative model tools.

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.