Skip to main content
Glama
OpenRouter MCP Server

OpenRouter MCP Server

by Hulupeep

get_cheapest_models

Find low-cost AI models in the OpenRouter catalog by input modality, minimum context length, and result limit. Use filters to identify affordable models that meet your requirements.

Instructions

Get the cheapest models meeting specified criteria

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results
modalityNoRequired input modality
min_context_lengthNoMinimum context length required

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but says nothing about how 'cheapest' is measured (per-token input vs output, blended, monthly), whether results are one-per-provider or one-per-model, or whether pricing may be stale — a real concern given a sibling named refresh_cache. It also omits sort order and return shape, none of which is covered by an output schema.

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?

A single front-loaded sentence with no padding. It is efficient, though the brevity comes at the cost of the missing behavior detail rather than being a deliberate trade for clarity elsewhere.

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?

For a simple read tool the length is defensible, but the central concept — what makes a model 'cheapest' — is left entirely undefined, and there is no output schema to compensate. An agent cannot predict whether it will get one cheapest model per provider, per modality, or a globally sorted list.

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?

Schema coverage is 100%, so limit, modality, and min_context_length are already documented in the schema; the description adds no extra meaning such as accepted modality values or whether limit applies before or after ranking. Baseline 3 applies since the schema does the heavy lifting.

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?

States a specific verb and resource ('get the cheapest models') and the ranking-by-price framing distinguishes it from list_models and search_models, which presumably don't rank by cost. The trailing 'meeting specified criteria' is vague, but the core purpose is unmistakable.

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

Usage Guidelines2/5

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

No when-to-use guidance, no exclusions, and no comparison to search_models or list_models, which an agent could plausibly pick instead. The only implied guidance is that this tool ranks by price, leaving the agent to infer the rest.

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