Skip to main content
Glama
agentpeers MCP
by cshenx

list_sessions

Discover local Claude Code and Codex chats to coordinate cross-runtime messaging. Review stored listings and wake status before choosing a peer, since listings don't confirm reachability.

Instructions

Discover local chats for Claude Code-to-Codex coordination. For same-runtime peers use native session discovery and messaging first. Stored listings do not prove AgentPeers reachability. Never silently choose an ambiguous name. Each Codex chat shows wake on or off; only the human or that chat can turn it on.

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_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.2

TDQS

A3.9/5.0
Behavior4/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 disclose non-obvious traits: stored listings do not prove AgentPeers reachability (staleness caveat), each Codex chat exposes a wake on/off flag, and only the human or that chat can enable wake. It stops short of stating explicitly that this is a read-only operation or how results are ordered.

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?

Five short sentences, each conveying a distinct constraint (coordination scope, exclusion, staleness, ambiguity, wake semantics), with the exclusion front-loaded near the top. A couple of sentences address agent conduct rather than the tool itself, which slightly blurs the structure but they remain actionable.

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?

For a zero-parameter tool with no output schema, the description covers purpose and pitfalls but never indicates what a returned chat record contains beyond the wake flag (e.g., names, runtimes, identifiers the agent must choose among). Given there is no output schema to fall back on, that return-shape gap keeps it at minimum-plus rather than complete.

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?

The schema has zero parameters at 100% coverage, so there is nothing for the description to disambiguate; baseline applies. The description correctly adds no parameter noise and instead spends its words on scope and caveats.

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 description gives a recognizable verb+resource: 'Discover local chats' scoped to 'Claude Code-to-Codex coordination.' It is clear what the tool returns at a high level, but it never differentiates itself from similarly listing-oriented siblings such as list_personal_peers or inbox, so an agent gets no explicit contrast.

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?

It supplies an explicit exclusion: 'For same-runtime peers use native session discovery and messaging first,' which tells the agent when this tool is the wrong choice. The added guards ('Never silently choose an ambiguous name') are usage constraints rather than when-to-use guidance, and no named sibling alternative is offered.

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