Skip to main content
Glama

agp_discover

Read-onlyIdempotent

Discover active or recently seen AI sessions on the AGP mesh, then filter by role, capability, workspace path, surface, query, or online status to locate peers and check listener or wakeup state.

Instructions

Discover other AI sessions currently active or recently seen on the AGP mesh. Filter by role, capability, workspace/path ownership, surface, search query, or online status. Shows whether each peer has an active zero-token listener (listening) or wakeup_mode.

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": "agp_discover"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoOptional role substring filter.
queryNoOptional free-text search across name, task, project, cwd.
statusNo
surfaceNoOptional surface filter (cli, ide, app, mcp, cursor, claude).
capabilityNoOptional capability filter.
path_filterNoOptional file/folder glob filter (e.g. 'ai-platform/**').
exclude_selfNoExclude current session from results.
include_subagentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds genuinely new behavioral detail: results report whether each peer has an active zero-token listener (`listening`) or a `wakeup_mode`, which tells the agent what observable state it will get back. It still omits ordering, freshness windows, or result limits.

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?

Two tightly packed sentences with the purpose front-loaded and no filler. The second sentence is dense with backticked internal jargon (`listening`, `wakeup_mode`), which is efficient for an informed agent but slightly cryptic on first read.

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

Completeness3/5

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

With 8 optional parameters and no output schema, the description covers the filter model and one output field but leaves the return shape, result ordering, and unlisted booleans unaddressed. It is adequate to invoke the tool correctly but not sufficient to predict what comes back.

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 coverage is 75%, so most parameters are already documented. The description restates the filter axes rather than adding syntax or semantics beyond the schema, and it says nothing about `exclude_self`, `include_subagents`, or how `path_filter` globs combine with `query`. Baseline 3 is appropriate given the high schema coverage.

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

Purpose4/5

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

The first sentence names a specific verb and resource: 'Discover other AI sessions currently active or recently seen on the AGP mesh.' That is clearly distinguishable from siblings such as whoami (self identity) and agp_status. It does not explicitly name a sibling alternative, which keeps it from a 5.

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

Usage Guidelines3/5

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

Usage is implied by the enumeration of filter axes (role, capability, path, surface, query, status), which tells the agent this is the peer-lookup tool. There is no explicit when-to-use versus when-not guidance, no mention of prerequisites, and no routing to alternatives such as whoami or team_list for related questions.

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