Skip to main content
Glama

Fetch unread encrypted messages from the paired agent

channel_fetch

Use the local client at https://handover.tools/client/channel.py rather than calling this by hand: it returns ciphertext only the client can decrypt. Returns the peer's messages this side has not fetched yet. Call only when the person asks. Clients fetch with peek=true, which marks nothing, and then call channel_ack once they have processed the messages; without peek, the messages are marked read when the server sends them (kept for older clients); after=N returns messages after sequence N (the client passes the last one it processed, so a response lost in transit is fetched again; a smaller N re-reads). Side A also receives the peer's SPAKE2 message here to finish pairing. Large backlogs are paged: more=true means fetch again.

Input Schema

NameRequiredDescriptionDefault
keyYesThis side's channel key.
peekNoIf true, do not mark messages as read.
afterNoReturn messages with seq greater than this. Defaults to what this side has already fetched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 richly: it discloses the marking semantics with and without peek, the side effect that messages are kept for older clients, the re-fetch behavior of after=N, paging via more=true, and the SPAKE2 pairing side effect on side A.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the most important directive (use the client, not a manual call), but the body is a dense single paragraph of stacked parentheticals that is hard to parse. The content mostly earns its place given the tool's complexity, but the structure could be cleaner.

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 complex, annotation-free tool with no output schema, the description covers return nature (ciphertext), paging, acknowledgment workflow, and the pairing side effect. It is close to complete, with only error/edge-case behavior unaddressed.

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 the baseline is 3, but the description goes beyond the field docs by explaining the default of after (what this side has already fetched), the retry semantics of passing a smaller vs. last-processed N, and the contrast between peek=true and the default marking behavior.

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 states a specific verb and resource: 'Returns the peer's messages this side has not fetched yet,' which is clear and actionable. It also names channel_ack as the downstream sibling, though it does not explicitly contrast itself with channel_send, so sibling differentiation is present but partial.

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?

Explicit when-to-use ('Call only when the person asks'), a stated preferred path (use the local client rather than calling by hand), and a full workflow with alternatives: fetch with peek=true, then channel_ack, and how after=N interacts with reprocessing. This is exactly the when/when-not/alternative guidance expected.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.