Skip to main content
Glama

Find cheapest models

cheapest_models

Find affordable AI models by ranking input, output, or blended prices. Filter by category or open-source status to match your use case.

Instructions

Find the cheapest models, ranked by input price, output price, or a blended cost. Optionally filter by category or open-source. Use to answer 'what is the cheapest model for '.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many to return (default 10, max 50).
sort_byNoRanking metric: 'input', 'output', or 'blended' (default 'blended').
categoryNoFilter by category, e.g. flagship, reasoning, budget, coding, embedding.
open_sourceNoIf true, only open-source models.
Behavior3/5

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

No annotations provided; description covers ranking and filtering behavior but does not disclose return format, pagination, or any side effects. Adequate for a read-only query tool.

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 concise, front-loaded sentences with zero waste. Key info first.

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?

All 4 params documented in schema, no required params, no output schema. Description hints at ranking output but does not specify exact return fields; still sufficient for a simple tool.

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%; description restates param purposes (sort_by, category, open_source) without adding new syntax or constraints. Marginal value beyond schema.

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 the tool finds cheapest models ranked by input/output/blended cost with optional filters, distinct from sibling tools like compare_models or search_models.

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?

Provides explicit use case ('what is the cheapest model for <use case>') and mentions optional filtering, but does not explicitly say when not to use it or contrast with alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/romanshumy/llm-prices-data'

If you have feedback or need assistance with the MCP directory API, please join our Discord server