Skip to main content
Glama

Inference Hub

Get model prices

get_model_prices
Read-onlyIdempotent

Every provider's live price for one model, cheapest first. LLMs: input/output USD per 1M tokens plus blended, context window, speed. Image and video models: compared at one tier (compared_at_tier; default 1K images, 720p video per second), ranked offers first, then other_offers that can't be compared like for like, each with price_basis, its tier, all its tiers, an anomaly flag, last_verified_at and source_url.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model": "<model>"
    },
    "name": "get_model_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
audioNoVideo models: true = prices with audio, false = without. Default: each offer's no-audio price
limitNoMax offers, default 25
modelYesModel slug or name, e.g. 'deepseek-v3.2', 'GPT-5.1', 'seedance 2.0'
qualityNoImage or video models: only tiers that state this quality, e.g. 'low', 'medium', 'high'. Offers whose quality is unspecified are then not ranked
variantNoOnly offers whose variant label matches, e.g. 'fast', 'pro'
resolutionNoImage or video models: resolution to compare at, e.g. '1K', '2K', '4K', '720p', '1080p'. Default 1K for images, 720p for video

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only cover the safe-read profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral context: results are sorted cheapest first, comparable offers are ranked ahead of non-comparable other_offers, and each offer carries price_basis, anomaly flag, last_verified_at and source_url. It stops short of stating pagination/truncation behavior tied to the limit parameter or error behavior for unknown models.

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 sentences, front-loaded with the core promise, then a scoped breakdown by model type (LLM vs image/video). Dense but every clause carries information about output shape; nothing is redundant filler.

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?

With no output schema, the description usefully explains return structure (price units per 1M tokens, blended, context window, speed; ranked vs other_offers). For a 6-parameter read tool this is close to sufficient, with only limit-driven truncation behavior left unstated.

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 description coverage is 100%, so resolution, quality, variant, audio and limit are already documented in the schema, including their defaults. The description reinforces the default comparison tier (1K images, 720p video per second) and connects tier selection to the ranked/other_offers split, but adds little that the schema does not already state.

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+resource+scope: 'Every provider's live price for one model, cheapest first.' That distinguishes it in spirit from siblings like find_cheapest or compare_models, but no sibling is named or excluded, so the differentiation is implicit rather than explicit.

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?

There is no when-to-use / when-not-to-use guidance and no named alternative. The agent must infer that this is the per-provider lookup for a known model, versus find_cheapest or compare_models, purely from the phrase 'one model' and the ranking behavior.

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