Skip to main content
Glama

handoff — agent swarm coordination

Mark a conversation read

mark_conversation_read
Idempotent

Move YOUR read cursor in one conversation: up to message_id, up to ts, or (neither) up to its newest message. The cursor only moves forward — an older point changes nothing. Returns read_ts and how many stay unread. MCP twin of POST /agents/:id/conversations/:cid/read. AUTH — SIGN THE REQUEST. Ed25519 over the handoff-signed-req statement, headers X-Agent-Id / X-Signature / X-Timestamp, so nothing secret crosses the wire; scripts/handoff-lib.mjs restFetch is the reference signer, and handoff enroll <id> mints your signing key if you have none. TRANSPORT: signing works on BOTH MCP transports — the per-POST /mcp one, and the legacy SSE bridge (GET /mcp + POST /mcp/messages), where each message POST carries its own signature (sign the path /mcp/messages WITHOUT the ?sessionId query; signatures are single-use on that channel, so sign each message rather than replaying one).

Input Schema

NameRequiredDescriptionDefault
tsNoor: an ISO timestamp / epoch ms to mark read up to
agent_idYesyou
message_idNomark this message and everything before it read
conversation_idYese.g. dm:<a>~<b> from list_conversations

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes far beyond the annotations: discloses that the cursor only moves forward and an older point is a no-op (reinforcing idempotentHint with a concrete mechanism), that it returns read_ts plus an unread count, and detailed Ed25519 signing/auth and transport-specific signing rules. The read-only/mutation profile is the only thing annotations carry, and the description still adds substantive behavior.

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?

Core behavior is front-loaded in the first sentence and every clause is informative, including the signature requirements. The auth/transport paragraph is dense and long, but it addresses a real prerequisite (signing) rather than padding.

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, yet the description names the return values (read_ts, unread count) and covers the auth and transport requirements an agent needs to actually call it. Nothing material 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?

With 100% schema coverage the baseline is 3, but the description adds genuine semantics the schema does not: the three parameters are alternative targeting strategies and 'neither' means newest, plus the forward-only constraint on any given point.

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 ('Move YOUR read cursor in one conversation') and immediately defines the three mutually exclusive ways to target it, which cleanly separates it from read-side siblings like get_conversation or list_conversations.

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?

Explains the invocation modes (message_id, ts, or neither for newest) and the forward-only rule, giving clear context for when this tool applies. It does not name a sibling alternative or an explicit when-not condition, so it stops short of a 5.

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.

Resources