Skip to main content
Glama

pilot_subscribe

Subscribe to a peer's topic and collect N messages, blocking until count satisfied or timeout for event-driven coordination in agent networks.

Instructions

Subscribe to a topic on a peer's pub/sub channel and collect N published messages (or until timeout). Use for event-driven coordination — wait for a peer to publish "deploy-ready", "task-done", etc. Blocks until count is satisfied or timeout elapses. REQUIRES TRUST: call pilot_trust_check(peer) first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
peerYesPeer hostname or address hosting the topic.
countNoHow many messages to collect before returning.
topicYesTopic name.
timeout_secondsNoMax wait time.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses blocking behavior (blocks until count or timeout), the trust requirement (call pilot_trust_check first), and the purpose of collecting messages. It does not detail timeout return behavior or error conditions, but covers key operational traits.

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?

Three concise sentences with no fluff. First sentence states the action, second gives use case, third explains blocking and prerequisite. All information is essential and well-structured.

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?

The description is sufficient for a 4-parameter tool with no annotations or output schema. It covers purpose, behavior, and use case. It does not explicitly state return format, but 'collect N published messages' implies the return value. Error handling and edge cases are not covered, but this is acceptable given complexity.

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 coverage is 100%, so baseline is 3. The description adds semantic value by linking 'count' to 'collect N' and 'timeout_seconds' to 'until timeout', and gives concrete example topics. It also explains the 'peer' parameter requires prior trust, which is not in the 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?

The description clearly states the tool subscribes to a topic and collects N messages, which is a specific verb+resource. It distinguishes from siblings like pilot_publish and pilot_broadcast by focusing on the receiving/collecting side of pub/sub.

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?

Provides explicit guidance for event-driven coordination with examples like 'deploy-ready' and 'task-done'. It implies this is the tool to wait for peer signals, but does not explicitly name alternatives or exclusion cases.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pilot-protocol/pilot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server