Skip to main content
Glama

list_llm_models

Retrieve live LLM API pricing, prompt caching rates, and context window limits, optionally filtered by provider, to compare model costs before building or routing requests.

Instructions

Fetch live 2026 frontier LLM API pricing, KV prompt caching rates, and context window limits from ModelPricing.xyz.

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_llm_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerNoOptional provider filter: openai, anthropic, google, deepseek, xai, or meta

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful traits: the data is 'live' and comes from an external service (ModelPricing.xyz), which signals a network call whose freshness matters. It says nothing about failure behavior, rate limits, pagination, or what happens when the optional filter matches no provider, which matters for a tool with no readOnlyHint declared.

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?

One front-loaded sentence with no filler, tightly packed with the data categories and source. The hardcoded '2026' is the only questionable token, since a date baked into the prose will read as stale and is not something the agent can act on.

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?

For a one-optional-parameter read with no output schema, the description effectively enumerates the returned content (pricing, caching rates, context limits), which is what the agent needs to route results. It is only short on guidance about how the provider filter affects the response and on any indication of data volume or refresh cadence.

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 coverage is 100% and the single optional provider parameter already enumerates the accepted values (openai, anthropic, google, deepseek, xai, meta), so the schema does the heavy lifting. The description adds no meaning about the filter, such as whether omission returns all providers, which is the one behavioral detail the schema leaves implicit.

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 names a specific verb (Fetch) and concrete resources (LLM API pricing, KV prompt caching rates, context window limits) plus the data source ModelPricing.xyz, so the agent knows exactly what data comes back. It does not differentiate from the siblings compare_llm_models and calculate_llm_cost, and the name/description mismatch (a 'list' tool described purely as a pricing fetch) leaves slight ambiguity about whether model metadata is also returned.

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: an agent can infer this is the raw-data retrieval step that precedes comparing or costing, but the description never states when to use it instead of compare_llm_models or calculate_llm_cost. No prerequisites, no exclusions, no mention of the optional provider filter as a narrowing strategy.

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