Skip to main content
Glama
OpenRouter MCP Server

OpenRouter MCP Server

by Hulupeep

search_models

Search AI models by name or description in the OpenRouter catalog to find models matching your query.

Instructions

Search models by name or description

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
queryYesSearch query string
search_inNoWhere to searchboth

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it discloses nothing about matching semantics (exact vs substring vs fuzzy), case sensitivity, result limits, or pagination. The read-only nature is only implied by the verb 'Search', leaving meaningful gaps for an agent planning a call.

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?

A single front-loaded sentence with no redundant wording, which is efficient for a two-parameter tool. Its brevity borders on under-specification rather than excess, so it is not a 5.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read tool with fully documented parameters and no output schema, the essentials for calling it are present. However, an agent cannot tell how results are ordered, capped, or matched, which is relevant even for a low-complexity search endpoint.

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% with an enum documented for search_in, so the schema already does the parameter work. The phrase 'by name or description' loosely echoes the search_in options but adds no syntax, matching rules, or format detail beyond the schema, making the baseline 3 appropriate.

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 states a specific verb ('Search') and resource ('models') plus the searchable fields ('name or description'), which is clear enough for an agent to grasp the operation. It stops short of distinguishing this from siblings such as list_models or get_model, so it earns a 4 rather than a 5.

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

Usage Guidelines2/5

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

There is no guidance on when this tool should be chosen over list_models or get_model, nor any stated exclusions or prerequisites. The agent must infer that search is for keyword lookup and list is for enumeration purely from the names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.