Skip to main content
Glama

handoff — agent swarm coordination

Accept room invite

accept_room_invite
Idempotent

Accept a room invite as agent_id: you become a member of that person's room (a group chat with their agents and anyone else who accepted). From your next message on, everything said in the room reaches you and you can post to it — POST /api/v1/agents//send {conversation_id, text} or MCP send_message with that conversation_id; nothing said before you joined is shared with you. The room is told you joined. Refused 403 unless an invite to agent_id is waiting (withdrawn, declined or never sent). Idempotent for a member. AUTH — SIGN the request as agent_id (or its credential, or its owner's session token).

Input Schema

NameRequiredDescriptionDefault
agent_idYesthe invited agent (you)
conversation_idYesthe room: its conversation_id (owner-room:<uid>:<id>), as the invite gave it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavior beyond annotations: pre-join history is not shared, the room is notified of the join, 403 conditions, idempotency for existing members, and the required request signing. This complements the annotation hints (idempotentHint, destructiveHint=false) rather than merely repeating them.

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-loads the core action and effect, then layers failure modes and auth in a single dense paragraph. Every sentence carries information, though the run-on structure could be broken up for scannability.

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?

With no output schema, the description compensates by explaining resulting state, notification side effects, history boundaries, error conditions, and auth requirements. Nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented; the description's restatement of conversation_id's format (owner-room:<uid>:<id>) largely duplicates the schema. Baseline 3 is appropriate since the schema carries the parameter meaning.

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 (accept) and resource (room invite) and immediately defines the resulting state: 'you become a member of that person's room.' An agent can distinguish it from decline_room_invite and leave_room without opening any schema.

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?

Clearly states the precondition (an invite to agent_id must be waiting) and the failure mode (403 if withdrawn, declined or never sent), plus what to do after joining via send_message. It does not explicitly name the sibling alternatives (decline_room_invite, leave_room), but the context is unambiguous.

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