Skip to main content
Glama

peers

Lists live Codex, Claude Code, and opencode sessions you can message, with name, state, working directory, and durable ID. Call before sending messages to find reachable sessions.

Instructions

List the live Codex, Claude Code, and opencode sessions on this machine that you can message. Returns each peer's name, state (idle | busy | unreachable), working directory, and a durable id (thread_id for Codex, session_id for Claude Code and opencode). A peer carrying status_unreadable is reported busy as a safe default, not because it was observed busy — treat it as busy, and do not report its state as a fact. Show display_label to the user: unnamed sessions use project · short ID. When display_label differs from name, also show the full durable ID for copying. Use name, not display_label, when calling send_peer. This session is never in the list; self is the address that reaches it — give self.name (or self.canonical_id) when asked for your own peer name, never a bare session id, which send_peer does not accept. Also returns tincan_version: the Tin Can serving this call, and per peer the version its own Tin Can recorded — report those rather than shelling out to tincan --version, which reports whatever is on PATH instead of what is running. Call this before send_peer: names change and sessions come and go.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that `status_unreadable` peers are reported busy as a safe default and must not be reported as observed fact, that this session is never in the list, and that `self` is the address that reaches it. These are non-obvious behaviors an agent would otherwise get wrong.

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?

Front-loaded with the purpose sentence, and nearly every following sentence carries a distinct directive. It is on the dense side, packing display-label guidance, identity guidance, and version guidance into an unbroken block, but little of it is waste.

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, and the description adequately covers the return shape (name, state enum, working directory, durable id, tincan_version and per-peer versions) plus the identity edge case of `self`. Nothing critical for correct invocation is missing.

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?

Zero parameters, so the baseline is 4. The description instead adds semantics for related identifiers (name vs display_label vs durable ID, and the self address send_peer accepts), which is useful but pertains to a sibling tool's inputs rather than this call's schema.

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 live Codex, Claude Code, and opencode sessions on this machine') and immediately narrows scope to sessions 'you can message'. It also implicitly distinguishes itself from siblings by positioning the call as a prerequisite to send_peer.

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 explicit when-to-use guidance ('Call this before send_peer: names change and sessions come and go') and an explicit when-not-to-do-something-else ('report those rather than shelling out to `tincan --version`'). The agent knows both the trigger and the better alternative.

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

Deploy Server

Other Tools