Skip to main content
Glama

Cancel Organization Invite

cancel_invite
DestructiveIdempotent

Cancel (revoke) a pending organization invite by its id (DELETE /api/invites/{inviteId}). DESTRUCTIVE — the invite can no longer be accepted. Get invite_id from list_invites, which returns every pending and recently expired invite with its id, email and role — do not guess it. WRITE TOOL — MCP WRITES ARE OFF BY DEFAULT FOR EVERY ORGANIZATION. This call needs ALL FOUR of: the admin:write scope, the organization switch turned on (an org admin enables it in Settings → Organization → AI agent access), an admin or super_admin org role, and confirm:true. Missing any one of them it refuses and changes nothing, and the error names which one — relay that to the user rather than retrying. Read-only cak_ API keys can never perform it. Example: { "invite_id": "a1b2c3d4-...", "confirm": true } revokes that invite.

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": {
      "invite_id": "<invite_id>"
    },
    "name": "cancel_invite"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true to actually perform this write. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side.
invite_idYesThe id of the pending invite to cancel (substituted into DELETE /api/invites/{inviteId}).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint and readOnlyHint=false, but the description goes further: it names the concrete consequence (the invite can no longer be accepted), discloses that failures are all-or-nothing ('refuses and changes nothing'), that the error identifies the missing precondition, and that read-only cak_ keys can never perform it. That is meaningful context beyond the structured hints.

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-loaded with the action and consequence, then prerequisites, then an example — a sensible order. It is on the long side and restates the confirm:true requirement that the schema already documents, but no sentence is filler given the write-gating complexity.

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?

For a destructive, gated write with only two parameters and no output schema, the description covers consequence, id provenance, all four authorization gates, failure semantics, and a usage example. An agent has everything needed to call it correctly or explain the refusal.

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 100%, so the baseline is 3; the description still adds value by naming where invite_id must come from (list_invites output) and by supplying a concrete example payload. Slight duplication of the confirm:true requirement keeps it from a 5.

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 ('Cancel (revoke) a pending organization invite by its id') and pins it to DELETE /api/invites/{inviteId}, which unambiguously separates it from list_invites and send_invite.

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?

Gives explicit routing guidance: obtain invite_id from list_invites rather than guessing, and enumerates the exact preconditions (admin:write scope, org switch, admin/super_admin role, confirm:true) under which this is callable. It also tells the agent what to do when refused — relay the error, do not retry.

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