Skip to main content
Glama

List AI API models and rates

list_models
Read-onlyIdempotent

Get supported OpenAI, Claude and Gemini models with current token rates, cached input and output prices, promo end dates and official pricing sources. Compare API costs per 1M tokens by provider.

Instructions

List the OpenAI, Anthropic Claude and Google Gemini models this server knows, with current standard rates in USD per 1 million input, cached input and output tokens, promotional end dates and official pricing sources.

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

Input Schema

NameRequiredDescriptionDefault
providerNoOnly list models from this provider.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered elsewhere. The description still adds real value by disclosing the shape of the returned data — per-1M-token USD rates for input, cached input and output, plus promotional end dates and official pricing sources — which tells the agent what it will get without an output schema. It does not say how fresh or cached the pricing snapshot is, which is a notable remaining gap for a pricing tool.

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?

It is a single front-loaded sentence that opens with the core action and scope before listing return fields. The trailing enumeration is long but every item is substantive information an agent needs. Slightly dense, but no 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?

For a simple read-only list tool with one optional filter and no output schema, the description is nearly sufficient: it compensates for the missing output schema by enumerating returned fields. It omits pricing freshness/currency assumptions beyond USD and whether results are ordered, which keeps it short of complete.

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% and the single provider parameter has an enum plus its own description, so the schema already carries the semantics. The description only implicitly maps its named providers (OpenAI, Anthropic, Claude, Gemini) to the filter, adding marginal meaning beyond the schema. Baseline 3 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 gives a specific verb (List) plus the exact resource (OpenAI, Anthropic Claude and Google Gemini models known to this server) and enumerates what comes back: standard rates in USD per 1M input, cached input and output tokens, promotional end dates, and pricing sources. That verb+resource+payload combination is clearly distinguishable from compare_models and estimate_cost, which take models as inputs rather than enumerating them.

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 only implied: an agent can infer this is the discovery/browse tool you call before comparing or estimating. There is no explicit statement about when to use it instead of compare_models or estimate_cost, and no mention of prerequisites or exclusions. Adequate but leaves routing to inference.

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

Deploy Server

Other Tools