Skip to main content
Glama

List models and prices

list_models
Read-onlyIdempotent

List models and prices

Models the Model API serves at a fixed price per token, with our price per million prompt and completion tokens, sorted by id and paged: 100 per page by default, up to 200. q narrows the list to models whose id or name contains it (case-insensitive). The list is large: search with q instead of reading every page. Public and cacheable for 60 seconds (Cache-Control: public, max-age=60). Call a chat model (kind "chat") at https://api.opencheap.si/v1/chat/completions with a model key, in OpenAI format. Call a decisions model (kind "decisions"), which answers typed questions about a text, at https://api.opencheap.si followed by its endpoint with a model key; it is billed on input tokens only.

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
qNoOnly models whose id or name contains this text, ignoring case (e.g. `claude`, `gpt-4o`).
limitNoPage size, 1 to 200.
cursorNoThe `nextCursor` of the previous page, unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds behavior the annotations cannot express: deterministic id sorting, 100-per-page default with a 200 cap, a 60-second public cache lifetime, and the fact that decisions models bill on input tokens only. It does not say what happens on an invalid or expired cursor, which is the main residual gap.

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?

The core list behavior and pagination facts are front-loaded, followed by the search advice. The closing sentences about how to call chat and decisions models are useful downstream context but drift beyond what is needed to select and invoke this specific tool, which costs it a point.

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?

There is no output schema, so the description carries the return-shape burden, and it does so reasonably: entries carry id, name, per-million-token prices, a kind, and for decisions models an `endpoint`, plus `nextCursor` referenced via the cursor parameter. It never enumerates the full field set of a model object, leaving the agent to infer some structure.

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 all three parameters (q, limit, cursor) are already documented in structured form. The description restates the case-insensitive id/name matching of q and the default page size but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

Names a specific verb+resource (list models and prices) and immediately qualifies the scope: 'Models the Model API serves at a fixed price per token, with our price per million prompt and completion tokens.' It stops short of differentiating itself from the sibling discover_models, so an agent must infer which listing tool to reach for.

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 a concrete usage rule: 'The list is large: search with q instead of reading every page,' which tells the agent how to behave on a big result set. It also explains what to do with the results by pointing chat models at /v1/chat/completions and decisions models at their `endpoint`. It does not address when to prefer the sibling discover_models instead.

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