Skip to main content
Glama

Search models

search_models

Search live LLM pricing by model name, provider, or ID to get current input/output costs per 1M tokens, context window, modality, and category.

Instructions

Search the live LLM pricing database by model name, provider, or id. Returns matching models with current input/output prices (USD per 1M tokens), context window, modality, and category. Use this to answer 'how much does cost' or 'what models does offer'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (default 20, max 50).
queryNoFree-text match against model name, provider, or id (e.g. 'claude', 'gpt-5', 'gemini flash'). Omit to list all.
categoryNoFilter by category, e.g. flagship, reasoning, budget, coding, embedding, fast, mid-tier.
open_sourceNoIf true, only open-source/open-weight models; if false, only proprietary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries full burden. It states the tool searches a 'live' database and returns pricing data, implying read-only behavior. However, it does not explicitly confirm no side effects, rate limits, or other behavioral traits beyond the search functionality.

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?

The description is two sentences: first states the action and data source, second gives two concrete use-case examples. No filler words, well front-loaded, and every sentence adds value.

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?

Given four parameters, no output schema, and no annotations, the description covers the tool's purpose, return fields, and example queries. It lacks only minor details like default limit or pagination, which are handled by the schema.

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?

The input schema has 100% coverage, describing all four parameters. The description does not add extra meaning beyond what the schema provides, so the baseline score applies.

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 it searches a live LLM pricing database by model name, provider, or id, returning specific fields. It distinguishes itself from siblings like cheapest_models or list_providers by providing explicit use cases: cost queries and provider listings.

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?

The description gives concrete examples of when to use the tool: 'how much does <model> cost' and 'what models does <provider> offer'. While it doesn't explicitly mention when not to use it or alternatives, the context is clear enough for most agents.

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