Skip to main content
Glama

List agents

agents_list
Read-onlyIdempotent

List agents for an organization or project, with filters for name, parent, profile, archived status, and subagents; optionally include usage data and sort or paginate results.

Instructions

Items are ordered by created_at descending, then id descending.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoCase-insensitive glob over the list's logical name. `*` matches zero or more characters, `?` matches one character, and `\` escapes a wildcard.
sortNoSort order for named resources that expose created and modified timestamps.
limitNoMaximum number of items to return in one page.
orgIDYes
cursorNoOpaque pagination cursor from a previous response's next_cursor. Omit for the first page.
projectIDYes
include_usageNoInclude each agent's `usage`, so a list can show costs without a request per agent.
parent_agent_idNoReturn only subagents spawned by this agent.
agent_profile_idNoReturn only agents launched from this agent profile.
include_archivedNoInclude archived agents. Defaults to false.
include_subagentsNoInclude subagents alongside top-level agents. Defaults to false, so only agents without a parent are returned unless parent_agent_id is set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds only the default sort order and omits meaningful behavior such as pagination via cursor and the default exclusion of archived agents and subagents.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no filler, but for an 11-parameter listing tool this is under-specification rather than effective conciseness. It also omits any front-loaded statement of purpose.

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

Completeness1/5

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

With 11 parameters, no output schema, and filtering/pagination behavior to explain, a lone sentence about ordering leaves the agent without the information needed to call this correctly. Purpose, scoping requirements, and default filters are all absent.

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 82%, above the threshold where the schema carries parameter documentation, so 3 is the baseline. The description adds no parameter detail and arguably conflicts with the configurable sort enum by asserting a fixed ordering.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states what the tool does; it only says how results are ordered. The purpose (listing agents) is inferable solely from the tool name and title, so the description adds no clarifying verb+resource of its own.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no distinction from siblings like agents_get or agents_events_list, and no mention of required scoping (orgID/projectID). The ordering note is not usage guidance.

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