Skip to main content
Glama

list_models

Read-onlyIdempotent

Reads each configured OpenAI-compatible endpoint’s advertised model IDs so you can see what is available before probing or ranking; returns models grouped by endpoint and no inference cost.

Instructions

List the models each configured endpoint advertises (GET {base_url}/models). Read-only network call to your own configured endpoints — no inference, no token cost. Use this FIRST, before probe/ranking, to see what is available. Returns model ids grouped by endpoint name; empty list if an endpoint is unreachable.

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
limitNooptional max models per endpoint
containsNooptional substring filter (matches model id)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.3
    • changedInput schema / properties / contains / description
      Previous value: -"optional substring filter"New value: +"optional substring filter (matches model id)"
    • changedInput schema / properties / limit / description
      Previous value: -"optional max per endpoint"New value: +"optional max models per endpoint"
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, yet the description still adds real value: no inference or token cost incurred, the call targets only the user's own configured endpoints, and an unreachable endpoint yields an empty list rather than an error. That unreachable-endpoint behavior is exactly the kind of failure-mode context annotations cannot express; only the lack of any note on latency or partial-failure reporting keeps it from 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 tight sentences: capability first, cost/safety context second, ordering guidance and return shape last. Every clause carries distinct information and the routing advice is front-loaded rather than buried.

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

Completeness5/5

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

For a zero-required-parameter read tool with no output schema, the description supplies the return shape (model ids grouped by endpoint name), the empty-list edge case, and the correct call ordering. Nothing needed to invoke it correctly is missing.

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 both optional parameters (limit, contains) carry their own descriptions, so the schema carries the parameter burden. The description mentions grouping and filtering outcomes but adds no syntax, defaults, or interaction details beyond what the schema states, making the baseline 3 appropriate.

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?

States a specific verb and resource ('List the models each configured endpoint advertises') and even names the underlying call (GET {base_url}/models). It is clearly separable from the siblings probe/ranking/recommend/report, which it references by name.

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?

'Use this FIRST, before probe/ranking, to see what is available' gives an explicit ordering constraint plus the alternative tools it should precede. recommend and report are not covered, but the primary sequencing decision an agent faces is resolved unambiguously.

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

Deploy Server

Other Tools