Skip to main content
Glama

list_models

Read-onlyIdempotent

List available AI models with type (text/image/video/audio), capabilities and pricing in credits. Text models are priced per 1K input/output tokens; generation models show reference pricing; character-priced TTS declares pricing.unit_size. Use before chat or generation when the user asks for a specific model or wants to compare options or prices. The result is one page: total is the number of models matching the filters, and truncated=true means more models follow — narrow with type or search, or call again with offset=next_offset.

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
typeNoFilter by model type.
limitNo
offsetNoNumber of matching models to skip. Pass next_offset from a truncated result to read the next page. Models are ordered by catalog ranking, which follows popularity and can shift between calls, so for a complete listing prefer limit=100 with a type filter.
searchNoSubstring filter on slug/name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds genuinely new behavior: pricing units per model class, unit_size for character-priced TTS, and pagination semantics (total, truncated, next_offset). The catalog-ranking instability caveat lives in the offset schema field rather than the description, so it is slightly under-surfaced here.

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?

Three sentences, front-loaded with what the tool returns, then when to call it, then how the page works. No filler, and the pagination guidance is placed last where an agent reads it after deciding to call.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 takes on the burden of describing the return shape (one page, total, truncated, next_offset) and does so. For a 4-param, zero-required, read-only listing tool, an agent has everything needed to call it and to handle the response correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema does most of the work, but the description adds real meaning: it enumerates the type values and explains how to react to a truncated result ('narrow with type or search, or call again with offset=next_offset'). That is a usage pattern, not a restatement of the field docs.

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?

States a specific verb and resource ('List available AI models') plus exactly what each entry carries: type, capabilities, and pricing in credits. It also sub-divides pricing models (per-1K-token text models, reference-priced generation, character-priced TTS), which lets an agent tell this apart from get_model and the generation siblings without opening any schema.

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?

Gives an explicit trigger: 'Use before chat or generation when the user asks for a specific model or wants to compare options or prices,' which ties it to concrete sibling workflows. It does not name the obvious alternative (get_model) for when a slug is already known, so the exclusion half of the guidance is left implicit.

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.