Skip to main content
Glama

List agents

list_agents
Read-only

Retrieve all available agents with optional metadata to present agent options or as a fallback when route_and_load is unavailable.

Instructions

Returns the list of all available agents with optional metadata
(display_name, role, trigger_command).
Use this as a fallback when route_and_load is unavailable,
or to present agent options to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_metadataNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv26.10.14+1807

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds the fallback framing, which is useful behavioral context, but says nothing about auth, rate limits, or result size. With annotations carrying the safety burden, a 3 is appropriate.

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?

Two sentences with zero waste. The purpose is front-loaded and the routing guidance follows immediately; nothing is padded or redundant.

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?

An output schema exists, so return values need not be explained, and the description covers purpose and routing well. The only gap is that the include_metadata parameter and its default are left entirely to the schema.

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 0% for the single include_metadata boolean, and the description never names that parameter or its default. It does imply which metadata fields the flag toggles (display_name, role, trigger_command), partially compensating, but the mapping to the parameter remains implicit.

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+resource ('Returns the list of all available agents'), scopes it ('all'), and enumerates the metadata returned. It also names the sibling route_and_load, so an agent can distinguish it without opening any schema.

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?

Explicitly states the condition for use ('as a fallback when route_and_load is unavailable') and the alternative ('route_and_load'), plus a second use case ('present agent options to the user'). This is the when-to-use/when-else pattern at full strength.

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