Skip to main content
Glama

List LLM Models

list_llm_models
Read-onlyIdempotent

Discover deployed LLM models and review usage statistics, filtered by provider, service, or time window, to track model adoption and usage patterns across traces.

Instructions

List all LLM models being used with usage statistics.

Discovers what models are deployed and tracks their usage patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum traces to analyze for model discovery (default: 1000)
end_timeNoEnd time in ISO 8601 format
start_timeNoStart time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z)
service_nameNoFilter by service name
gen_ai_systemNoFilter by LLM provider (e.g., openai, anthropic, cohere)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.11.0
    • addedInput schema / properties / end_time / description
      Added value: +"End time in ISO 8601 format"
    • addedInput schema / properties / gen_ai_system / description
      Added value: +"Filter by LLM provider (e.g., openai, anthropic, cohere)"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum traces to analyze for model discovery (default: 1000)"
    • addedInput schema / properties / service_name / description
      Added value: +"Filter by service name"
    • addedInput schema / properties / start_time / description
      Added value: +"Start time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z)"
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds that results are limited to models in use and include usage stats, but it discloses no further behavioral traits such as trace-based analysis, result limits, or aggregation details.

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?

The description is short and front-loaded, with the core action in the first sentence. The second sentence is slightly redundant but adds a discovery-oriented framing, so it isn't wasted.

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?

Given rich annotations, a 100%-documented optional parameter set, and an output schema, the description provides enough context for invocation. It could be more explicit about sibling tool distinctions and the trace-derived nature of the results, but nothing critical 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 description coverage is 100%: all five parameters (limit, end_time, start_time, service_name, gen_ai_system) are already described inline with types, defaults, and examples. The tool description adds no parameter-specific meaning, which is acceptable because the schema carries the weight.

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 ('List'), resource ('LLM models'), and scope ('all ... being used'), and adds that it returns usage statistics. It is not a tautology, though it doesn't explicitly distinguish itself from the sibling tool get_llm_model_stats.

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

Usage Guidelines4/5

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

The second sentence ('Discovers what models are deployed and tracks their usage patterns') gives clear context for when this tool is useful. It doesn't name alternatives or state exclusions, so it stops short of a 5.

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