Skip to main content
Glama

Cancel invite

cancel_invite
DestructiveIdempotent

Take back an invite link the current user made (my_circle lists them, with their code): an open link stops bringing anyone in, and a link a newcomer used has its circle request withdrawn. Either way its place in the plan's circle is free again. A link whose player accepted is a friend now: remove_friend instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "cancel_invite"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe link's code, the part after /i/ (or the whole link)

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?

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes beyond them by spelling out the concrete effect on both link states (open link stops admitting, used link's circle request is withdrawn) and that the circle slot is freed again, which corroborates idempotency. It does not say whether the cancellation can be undone or what errors appear for an invalid code, so it stops short of full disclosure.

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 core action and its effect lead the description, with the alternative-method branch trailing, which is the right order. A few phrases are looser than necessary ('Either way its place in the plan's circle is free again'), but nothing is redundant with the schema.

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 single-parameter mutation with no output schema, the definition covers the action, both outcomes, and the key branch to a sibling. Missing only edge-case behavior such as invalid or already-revoked codes and reversibility, which is a minor gap given how rich the annotations are.

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%, including the '/i/' format note, so the schema carries the parameter burden. The description adds only modest meaning – that the code comes from the list returned by my_circle – which is a helpful provenance hint but not new syntax or constraint detail. Baseline 3 is appropriate.

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 with a specific verb and resource ('Take back an invite link the current user made') and immediately scopes it against siblings: my_circle for listing codes, remove_friend for accepted links. An agent can distinguish this from the other invite tools without inspecting 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 Guidelines5/5

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

It explicitly routes the agent: use this for self-created invite links, use my_circle to find the code, and use remove_friend instead when the player already accepted. The exclusion condition is stated as a concrete branch, not left implicit.

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