Skip to main content
Glama

AI Model DB

list_models

Read-onlyIdempotent

List and filter published active API models with official pricing by provider, maximum USD-equivalent output price per 1M tokens, minimum context window, and sort order.

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 (1..50, default 20).
sortByNoSort order (default 'output_price_asc').
providerNoOptional provider slug filter (e.g. openai, anthropic, deepseek).
minContextTokensNoOptional minimum context window size in tokens.
maxOutputPriceUsdNoOptional upper bound on USD-equivalent output price per 1M tokens (cross-currency converted).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare a safe, read-only, idempotent, closed-world operation, so the bar is lower. The description contributes that only published/active models with official pricing are returned, which usefully implies unpriced or unlisted models are excluded, but says nothing about pagination behavior or result volume despite a limit parameter.

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?

It is a single front-loaded sentence with no filler, and the scope qualifiers precede the filter list. It loses a point only because the filter enumeration largely duplicates what the schema already declares.

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-only listing tool with full schema coverage, rich annotations, and no output schema, the description covers purpose and filters adequately. It is still thin on what a returned model entry contains and on pagination limits, which the missing output schema leaves entirely to the agent's guesswork.

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 five parameters are already documented, including the cross-currency conversion note and the enum for sort order. The description restates four of the filters but adds no syntax or format detail beyond the schema, and omits the limit parameter entirely — 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?

The description uses a specific verb-plus-resource combination ('List and filter published active API models') and adds meaningful scope qualifiers — published, active, and carrying official pricing — that tell an agent this is a catalog query, not a single-record lookup. It does not explicitly name a sibling such as get_model_pricing, so differentiation is only implicit.

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 implied: the filter vocabulary (provider, price ceiling, context minimum, sort) signals a browse/discovery scenario, but the description never states when to choose this over get_model_pricing or search_ai_hub, nor any preconditions. An agent must infer the routing decision.

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