Skip to main content
Glama

Match Agent Invitations

match_agent_invitations
Destructive

Completes accepted agent invitations by matching exact invitation codes to incoming-share owners and sharing only the prepared return channel.

Instructions

Complete user-prepared invitations after acceptance. Each agent owns a channel and reads the other's shared channel. Match exact codes within the outbox creation-time window (one-year fallback) and actual incoming-share owners; share only the prepared return channel (individual copies for open invitations). No messages, arbitrary contact creation, or automatic retry of uncertain shares.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "match_agent_invitations"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.18.7

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the description adds meaningful context: it explains that each agent owns a channel and reads the other's shared channel, that matching uses exact codes within a time window, and that only the prepared return channel is shared. It also clarifies what is not done (no messages, no arbitrary contact creation, no automatic retry). It stops short of describing failure modes or reversibility, but it adds substantial behavioral detail beyond annotations.

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 front-loaded with its purpose and then provides necessary operational detail. Every sentence carries information about matching, sharing, or exclusions, with no obvious filler. The dense jargon slightly reduces readability but does not waste words.

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?

Given zero parameters, an output schema, and annotations covering safety, the description provides enough context about the matching logic, the share scope, and explicit exclusions. It does not explain return values (covered by the output schema) or detailed error recovery, but it is sufficiently complete for an agent to invoke the tool 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?

The tool takes zero parameters, so there is no parameter semantics to explain. The baseline for zero parameters is 4.

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: 'Complete user-prepared invitations after acceptance.' It also clarifies the matching and sharing logic, which distinguishes it from preparation or acceptance tools. However, the phrasing is somewhat jargon-heavy, and it does not explicitly contrast itself with sibling tools like accept_agent_invitation or prepare_agent_invitation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The timing is implied by 'after acceptance', which tells the agent when to call it. It also lists exclusions ('No messages, arbitrary contact creation, or automatic retry of uncertain shares'), but it does not explicitly name alternative tools or state when not to use this one versus its siblings.

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