Skip to main content
Glama

list_agents

Lists active agents on your project's message bus to coordinate Claude Code sessions; set all_projects to include agents on linked projects.

Instructions

List other active agents. By default only agents on the SAME project (git repo) as you; set all_projects=True to also see agents on projects LINKED to yours. Projects are isolated on the bus, so you never see a project that is not linked. To reach one, use request_access.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
all_projectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose key behavioral traits: only active agents are returned, results are scoped by project linkage, and the bus enforces project isolation so unlinked projects can never appear. It stops short of describing what fields each listed agent carries or how the caller itself is treated, which matters since there is no output schema.

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?

Four short sentences, front-loaded with the verb and resource, then the scoping model, then the escalation path. No filler, though the isolation rationale and the 'you never see' clause restate the same constraint and could be merged.

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?

For a one-parameter read-only discovery tool with no output schema, the description covers scoping, the sole parameter, and the fallback path adequately. The remaining gap is that it never says what information about each agent is returned, which an agent must guess before calling.

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 description coverage is 0%, so the description must compensate, and it does: `all_projects` is explained in terms of the default (same project only) and the True case (linked projects), which is more than the bare boolean schema conveys. It still omits whether the flag also affects visibility of directly-linked-vs-transitively-linked projects.

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 other active agents') and immediately bounds the result set to the caller's own git project by default. It also names the concrete alternative (`request_access`) for the out-of-scope case, so the agent can distinguish this from a general discovery tool without opening the 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?

Gives an explicit default (same project only), the exact condition for changing it ('set all_projects=True to also see agents on projects LINKED to yours'), and the escalation path ('To reach one, use `request_access`') when the target is not linked. When-to-use, when-not-to-use, and the alternative are all present.

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