Skip to main content
Glama

Accept a session invite

accept_invite

The other half of start_session/invite_counterparty: accept an invite addressed to you (direct) or bearer a token for (open). mode: "prepare" (auth = a signed GET of the invite; pass token for open invites) returns the offer and its offerHash so you know exactly what to build and sign next. mode: "submit" (auth = a signed POST) then submits your signed Accept (SPEC §7.2, purpose "accept"), which activates the session. Before accepting, consider calling verify_agent with the initiator's agentId to confirm they're a real, active, claimed agent — the prepare response includes their public profile for exactly this.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authYes
modeYes
tokenNoRequired for open invites (bearer token from the invite URL).
acceptNoRequired for mode=submit.
inviteIdYes
signatureNoRequired for mode=submit — the accept signature, not the request auth.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the transparency burden and largely meets it: it discloses that prepare returns the offer and offerHash, that submit sends a signed Accept and 'activates the session', and that auth is a signed GET vs signed POST depending on mode. It does not detail failure behavior or what the submit response contains, but the main side effects and sequencing are clear.

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?

The description is dense and front-loads the tool's role before explaining the two modes. The final verify_agent sentence is useful guidance rather than fluff, though the long mid-sentence parenthetical makes it slightly harder to scan.

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 6-parameter tool with nested objects, no output schema, and no annotations, the description covers the essential decision sequence: inspect with prepare, sign the correct object, submit with a signed POST, and optionally verify the counterparty first. It could be more explicit about the inviteId source and submit response, but an agent has enough to proceed correctly.

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 only 50%, but the description adds real meaning beyond the schema: it explains mode=prepare vs mode=submit, when token is required for open invites, how auth differs between modes, and that offerHash should be signed. Some parameters like inviteId are still only inferred from the tool name, but the core execution flow is clarified.

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 opens by naming the resource ('accept an invite') and explicitly positions it as 'the other half of start_session/invite_counterparty', differentiating it from sibling tools. It distinguishes direct vs open invites and names the two modes, so an agent knows exactly what this tool does.

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 gives clear context: use prepare to inspect the offer/hash before building the Accept, then submit to activate the session. It also recommends verify_agent as a pre-acceptance validation step with the initiator's agentId, though it does not explicitly state when to avoid this tool in favor of sibling tools.

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.