Skip to main content
Glama

Pydantic AI Model Registry

List, filter and sort models

list_models
Read-onlyIdempotent

List the models in the registry with prices (US dollars per million tokens), context window, intelligence index, benchmark scores and Pydantic AI model strings. Every argument is an optional filter and they combine with AND. Use it to compare models or to find the cheapest, fastest or highest scoring ones that meet a constraint.

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
qNoText contained in the model name, family name or slug
slugNoOne or more model slugs, comma-separated: these models only
sortNointelligence, popularity, efficiency (index per dollar), speed, price, input, output, released, updated, context, name, family, or a benchmark id for its scoreintelligence
limitNoModels to return
orderNoDefaults to best first for the chosen sort
stackNoOptional: the language/framework context you are working in. It shows the maintainers what agents need and does not change the answer. Never include personal, private, or confidential information: a short task description, tool names and a public company name only.
toolsNoCan call tools
familyNoThe model family, by its id, such as claude, openai or gemini
fieldsNoComma-separated fields of a model to return, such as name,input,output,string. Without it every field is returned, which is long
intentNoOptional: what you're trying to achieve, in natural language. It shows the maintainers what agents need and does not change the answer. Never include personal, private, or confidential information: a short task description, tool names and a public company name only.
offsetNoModels to skip, for paging
statusNo
gatewayNoBuilt in to Pydantic AI Gateway
harnessNoOptional: the agent harness and model you are running. It shows the maintainers what agents need and does not change the answer. Never include personal, private, or confidential information: a short task description, tool names and a public company name only.
weightsNoOpen-weight or closed models only
modalityNoAn input it accepts: text, image, file, audio or video
providerNoThe id of an inference provider that serves the model
developerNoThe company behind the family, such as Anthropic
max_priceNoHighest blended price (three input tokens per output)
min_indexNoLowest intelligence index, our composite of the benchmarks
min_speedNoLowest output speed, in tokens per second
reasoningNoReasons before it answers
snapshotsNofalse leaves out dated snapshots of another model
min_contextNoSmallest acceptable context window, in tokens
organizationNoOptional: the organization or company you are working on behalf of, if known. It shows the maintainers what agents need and does not change the answer. Never include personal, private, or confidential information: a short task description, tool names and a public company name only.
released_afterNoReleased on or after this date
max_input_priceNoHighest input price
max_output_priceNoHighest output price
structured_outputNoSupports structured output

Output Schema

NameRequiredDescriptionDefault
sortNo
countNoModels in this response
limitNo
orderNo
totalNoModels matching the filters
modelsNo
noticeNoPresent when the request left out intent, stack or harness: asks for them next time
offsetNo
generatedNoWhen the data was built
registry_totalNoModels in the registry

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value beyond that — filters combine with AND, and omitting `fields` returns 'every field ... which is long' — plus it discloses that `stack`/`intent`/`harness`/`organization` are telemetry that does not change the answer. It does not describe the response shape or paging behavior, so it is good but not rich.

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 is listed and returned, then the filter combination rule, then the use case. No filler and no repetition of schema-level detail.

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 an output schema present, return values need not be explained, and 29 parameters are covered at 97% in the schema. The description supplies the cross-parameter semantics and the telemetry disclaimer, which are the only things an agent could not get from the structured fields.

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 97%, so the baseline is 3 and the schema does most of the work. The description still adds meaning the schema cannot express per-parameter: all optional filters combine with AND, and the cost implication of omitting `fields`. That combination rule is the key semantic an agent needs across 29 parameters.

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?

The description names a specific verb and resource ('List the models in the registry') and enumerates the return content (prices in USD per million tokens, context window, intelligence index, benchmarks, Pydantic AI strings). It stops short of explicitly distinguishing itself from siblings like search_models or get_model, leaving that differentiation to inference.

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?

'Use it to compare models or to find the cheapest, fastest or highest scoring ones that meet a constraint' gives a clear usage context tied to the filter/sort capability. It never names an alternative tool or states when NOT to use this one, so it sits below the explicit routing seen in top-tier definitions.

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