Skip to main content
Glama

discover_agents

Retrieve the agent fleet with live presence and operator status, filter by role, and choose an available routing target before sending work.

Instructions

List every registered agent with computed presence + operator-controlled status.

When to use: pick a routing target by role (e.g., 'any builder'), confirm an expected agent is online before sending it work, or surface the agent fleet to a dashboard. For periodic team rollups use get_standup instead, it bundles agents + recent activity in one call.

Behavior: pure read; never mutates last_seen (v1.3 presence-integrity fix). Optionally filters by role. The returned status (online | stale | offline) is computed from last_seen deltas; the returned agent_status (idle | working | blocked | waiting_user | stale | offline | abandoned | closed) is operator-controlled via set_status. Token hashes are stripped, has_token: boolean only.

Returns: { agents: AgentWithStatus[], count: number, filter: { role } | 'none' }. Ordered by last_seen DESC.

Errors: RATE_LIMITED. (No auth required, this surface is intentionally observable for orchestration.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleNoFilter by role
viewNoADR-0002: 'list' (default) = flat agent list (unchanged). 'topology' = the live team grouped by coordination class (orchestrator/builder/advisory/auditor), flat within each; transient + unclassified + dead/terminal agents are excluded from the who's-who.list
agent_tokenNoYour agent token (from register_agent response). Optional here — also resolvable from RELAY_AGENT_TOKEN env or X-Agent-Token header.
Behavior5/5

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

With no annotations provided, the description carries full burden and delivers: states it's a pure read ('never mutates last_seen'), explains the difference between computed `status` vs operator-controlled `agent_status`, discloses token hashes are stripped (returns `has_token: boolean` only), documents the exact return shape, ordering, and error mode (RATE_LIMITED), plus the notable detail that no auth is required for observability. This is remarkably complete behavioral disclosure.

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?

Well-organized with clear section labels (When to use, Behavior, Returns, Errors), front-loaded with the core purpose sentence. Every sentence earns its place. Slightly dense in the Behavior section covering multiple concepts, but the structure is clean and scannable, so only a minor deduction.

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 read-only list tool with zero required params and 100% schema coverage, the description is exceptionally thorough: it documents return shape, ordering, error modes, auth posture, security behavior (token stripping), and the semantic distinction between computed vs operator-controlled status fields. Despite no output schema, the description fully compensates by spelling out the response contract.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value on top: explains that `role` is an optional filter, clarifies that `status` is computed while `agent_status` is operator-controlled (differentiating the semantics of what the tool returns). Since all params are already fully documented in the schema at 100% coverage, the description's contributions are bonus context rather than compensation.

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?

Description states the exact verb+resource ('List every registered agent with computed presence + operator-controlled status'), explicitly distinguishes from sibling `get_standup` by naming it and contrasting scope. The phrase 'list every registered agent' with the added detail of computed presence and operator-controlled status makes the purpose concrete and non-tautological.

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?

Provides explicit 'When to use' guidance with three concrete scenarios (routing target by role, confirming online before sending work, surfacing fleet to dashboard) and an explicit exclusion ('use get_standup instead, it bundles agents + recent activity'). This is textbook usage guidance with clear when-to and when-not-to direction.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Maxlumiere/bot-relay-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server