Skip to main content
Glama

Pydantic AI Model Registry

Search models by name

search_models
Read-onlyIdempotent

Find models whose name, family, slug or Pydantic AI model string contains the text, best match first. Use it to turn a name such as "opus" or "gemini flash" into slugs, prices and model strings. It matches names only: to find a model for a task use select_models, and to filter by price or capability use list_models.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoModels to return
queryYesPart of a model name, family, slug or model string
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.
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.

Output Schema

NameRequiredDescriptionDefault
countNoModels in this response
queryNo
modelsNoBest match first
noticeNoPresent when the request left out intent, stack or harness: asks for them next time
generatedNoWhen the data was built

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered structurally. The description adds behavioral context beyond that: results are relevance-ordered ('best match first') and the search is restricted to identifier fields rather than semantic content. It does not mention the default result cap or how ties/broad matches are handled, which keeps it short of a 5.

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 short sentences, front-loaded with the operation and matching scope before the alternative routing. Nothing is redundant with the title, and each sentence carries distinct information (what it matches, what it yields, what it is not for).

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 six parameters at full schema coverage, an existing output schema, and rich annotations, the description only needs to supply purpose and sibling routing, which it does. The minor remaining gap is the absence of any note on result limiting or empty-match behavior, but the output schema and parameter defaults largely absorb that.

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 the baseline is 3; the schema already documents query, limit (default 10, max 50) and the telemetry parameters. The description reinforces which fields query matches but adds no syntax or format detail, and says nothing about the limit parameter or the no-op nature of the telemetry fields beyond what the schema states.

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 pairs a specific verb with a specific resource ('Find models') and names the exact fields searched ('name, family, slug or Pydantic AI model string') plus the ranking rule ('best match first'). It also states what the tool produces ('slugs, prices and model strings'), so an agent can distinguish it from get_model or list_models without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete use case ('turn a name such as "opus" or "gemini flash" into slugs, prices and model strings') and then sets an explicit boundary: 'It matches names only.' Two named alternatives are routed by condition — select_models for task-based lookup, list_models for price/capability filtering — which is exactly the when-to-use/when-not guidance this dimension rewards.

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