Skip to main content
Glama

List agents

list_agents
Read-only

List the AI agents in a space, as structured JSON (id, name). Use the id with other tools. This is the structured counterpart to browsing agents/ via inspect_space. Returns 100 agents per page, newest first. When pageInfo.hasNextPage is true, pass pageInfo.endCursor as after to read the next page.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "spaceId": "<spaceId>"
    },
    "name": "list_agents"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoPagination cursor: the `pageInfo.endCursor` of the previous page. Omit for the first page.
spaceIdYesSpace ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered; the description adds real behavior beyond that: fixed page size of 100, newest-first ordering, and the exact pagination protocol via pageInfo.hasNextPage/endCursor. It does not describe what a space with zero agents returns or whether ordering is stable, minor residual gaps.

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?

Four short sentences, front-loaded with purpose and scope, then differentiation, then pagination mechanics. Every sentence carries information an agent needs to call the tool correctly; nothing is padded.

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?

No output schema exists, so the description takes on return-value disclosure itself by naming the fields (id, name) and the pagination envelope. For a two-parameter read tool with full annotation and schema coverage, this is complete enough to invoke correctly on the first try.

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%, and the schema already documents both `spaceId` and `after`, including that the cursor is the previous page's pageInfo.endCursor. The description restates the cursor flow with the additional hasNextPage trigger condition, which is helpful but largely duplicative of structured data.

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 AI agents") and constrains scope to a space, then explicitly identifies itself as the structured counterpart to browsing via inspect_space. That lets an agent separate it from the sibling that serves the same content in a different form.

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?

Gives a clear routing rule: use this when you need structured id/name data, and points to inspect_space for browsing the agents/ path. It also tells the agent what the ids are for ("Use the id with other tools"). It stops short of explicit when-not guidance or naming get_agent as the single-agent alternative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.