Skip to main content
Glama

Pydantic AI Model Registry

Choose models for an agent

select_models

Recommend language models for an agent. Give the agent's system prompt, its code or a description of what it does; a selector agent ranks every model in the registry for it and returns up to five, best first, each with a score out of 100, reasons, prices and the Pydantic AI model string. Use this when the question is which model to use. It takes around ten seconds and is limited to 10 calls in 24 hours per IP address.

Input Schema

NameRequiredDescriptionDefault
codeNoThe code that defines the agent and its tools
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.
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.
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.
latencyNoThe agent is interactive, so speed matters
weightsNoOnly open-weight or only closed models, or anyany
descriptionNoWhat the agent does and how it is used
gateway_onlyNoOnly models built in to Pydantic AI Gateway
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.
system_promptNoThe agent's system prompt
price_appetiteNo1 is the cheapest model that works, 5 the best available

Output Schema

NameRequiredDescriptionDefault
idYesThe run. A finished run with recommendations is saved for 30 days: GET /api/select/runs/{id} returns it, DELETE deletes it, and /select/{id} shows it
needsYesWhat the agent needs from a model
statusYesAlways done in a JSON response. In an event stream: partial while some models are still ranking, summarising when the ranking is final, then done
summaryYesTwo or three sentences on what the agent needs and why the first model fits. null while status is summarising, and when more_input is set
consideredYesModels that passed the weights and gateway_only constraints
more_inputYesSet when the input does not describe an agent: what to send instead. There are then no recommendations
selected_byYesThe models that made the selection, joined with +. Their rankings are averaged
recommendationsYesBest fit first. Empty when more_input is set

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, it discloses a concrete latency expectation ("around ten seconds") and a hard rate limit ("10 calls in 24 hours per IP address") — exactly the operational constraints an agent needs before committing. It also describes the return shape (up to five results, best first, score out of 100, reasons, prices, model string), so the caller knows what comes back before invoking.

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?

Purpose is front-loaded in the first clause, followed by inputs, output shape, trigger condition, and cost/limits in a tight sequence with no filler. The third sentence is long and packs input requirements and return format together, which slightly harms scannability but wastes no words.

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 11 optional parameters, an output schema, and a non-trivial privacy/telemetry note carried by the schema, the description covers purpose, trigger, cost and output shape adequately; return values need no further explanation because an output schema exists. The only gap is that it doesn't hint that results can be constrained by open/closed weights, price appetite, or gateway-only, which an agent scanning the description alone would miss.

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 100%, so the baseline is 3; the description earns a point by restating the anyOf requirement in plain language — at least one of system prompt, code, or description must be supplied. It does not explain the tuning knobs (weights, price_appetite, latency, gateway_only), but those are fully documented in the schema, so no meaning is lost.

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?

"Recommend language models for an agent" gives a specific verb and resource, and the follow-up sentence explains the mechanism (a selector agent ranks every model in the registry and returns up to five best-first with scores, prices and a Pydantic AI model string). It implicitly separates itself from list/search siblings via "Use this when the question is which model to use," but never names them, so the differentiation is inferred rather than stated.

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 this when the question is which model to use" is an explicit trigger condition, and the description names the qualifying inputs (system prompt, code, or a description of what the agent does). It does not state when to prefer list_models/search_models/get_model instead, so the routing guidance is contextual rather than complete.

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