Skip to main content
Glama

Inference Hub

Find cheapest models

find_cheapest
Read-onlyIdempotent

Rank models by their cheapest live price, with filters: model type, minimum context window, open weight, uncensored, creator, and data region (where the provider processes data). LLMs rank by blended price per 1M tokens. Image models rank per image at 1K, video models per second at 720p, unless resolution / quality / audio say otherwise; only prices published at that tier count, and models without one are counted in models_without_price_at_tier. Free offers are left out unless include_free is true.

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

Input Schema

NameRequiredDescriptionDefault
typeNoModel type, default llm
audioNoVideo models: true = prices with audio, false = without. Default: each offer's no-audio price
limitNoMax results, default 10
creatorNoModel creator, e.g. 'Meta', 'Alibaba', 'Mistral'
qualityNoImage or video models: only tiers that state this quality, e.g. 'low', 'medium', 'high'. Offers whose quality is unspecified are then not ranked
resolutionNoImage or video models: resolution to compare at, e.g. '1K', '2K', '4K', '720p', '1080p'. Default 1K for images, 720p for video
uncensoredNotrue = only uncensored builds
data_regionNoOnly providers that process data in this region
min_contextNoMinimum context window in tokens, e.g. 128000
open_weightNotrue = open-weight models only, false = closed only
include_freeNoInclude $0 offers, default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With readOnlyHint/idempotentHint already covering the safety profile, the description adds real behavior: only prices published at the requested tier are counted, models lacking one are surfaced via models_without_price_at_tier rather than silently dropped, and free offers are excluded unless include_free is set. These are the non-obvious semantics an agent needs to interpret results, though nothing is said about ordering ties or result volume beyond the limit default in the 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 dense paragraph, front-loaded with the ranking action and followed by the filter list, then the price-basis rules; every clause carries information. It is on the long side for one block, but there is no filler or repetition.

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 an 11-parameter, zero-required, read-only ranking tool with no output schema, the description covers the ranking basis, the tier rule, free-offer exclusion, and one output field name, which is enough to call and interpret it. It does not describe the shape of returned model entries, which is the main remaining gap.

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 the baseline is 3. The description does add meaning beyond the schema for resolution/quality/audio by stating the default tier (1K images, 720p video) and clarifying that data_region means where the provider processes data, but the remaining nine parameters are left entirely to the schema.

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 specific verb and resource: 'Rank models by their cheapest live price', and then enumerates the six filter dimensions, which separates it from a plain price lookup like get_model_prices. It does not name a sibling explicitly, so the differentiation is inferable rather than stated.

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?

Usage is implied by the ranking semantics and price-basis rules (blended per 1M tokens for LLMs, per image at 1K, per second at 720p), which tells an agent when this tool's comparison is the right one. There is no explicit 'use this instead of X' routing and no statement of when not to use it.

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