Skip to main content
Glama
OpenRouter MCP Server

OpenRouter MCP Server

by Hulupeep

list_models

Discover and filter available AI models by provider, modality, category, price, and context length, with sorting and pagination for browsing the OpenRouter catalog.

Instructions

List available models with optional filtering and pagination. Returns max 50 models by default to stay within token limits.

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
limitNoMaximum number of models to return (default: 50, max: 200)
offsetNoNumber of models to skip for pagination (default: 0)
sort_byNoSort results by field
categoryNoFilter by category (e.g., programming, chat)
modalityNoFilter by input modality (text, image, audio, video)
providerNoFilter by provider (e.g., anthropic, openai, google)
sort_orderNoSort orderasc
min_context_lengthNoMinimum context length required
max_price_per_1m_tokensNoMaximum price per 1M input tokens (USD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the behavioral burden. It does disclose the notable trait that results are capped at 50 by default specifically to stay within token limits, which is real context beyond the schema. However, it says nothing about return shape, whether a total count is provided for pagination, or whether results are cached/stale (relevant given a refresh_cache sibling), leaving meaningful gaps for a no-annotation tool.

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?

Two short sentences with the core capability front-loaded and zero filler. The second sentence partly restates the schema's default=50, but it earns its place by explaining the token-limit rationale.

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 nine-parameter tool with no annotations and no output schema, the description is thin: it never indicates what a returned model record contains or how pagination interacts with a total count. Filtering and pagination are covered at a surface level, which is minimally adequate but not complete.

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 nine parameters including enums for sort_by, sort_order, and modality are already documented with defaults and formats. The description adds no parameter-level meaning beyond restating the default cap, 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?

"List available models with optional filtering and pagination" gives a specific verb (list) and resource (models) plus the two supporting capabilities. It stops short of distinguishing this from siblings such as search_models or get_cheapest_models, so an agent cannot tell from the description alone which listing surface is appropriate.

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

Usage Guidelines3/5

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

Usage is only implied: the mention of filtering and pagination suggests a browse/scan use case, but the description never says when to prefer this over search_models, get_cheapest_models, or compare_models. No prerequisites, no exclusions, no routing guidance.

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