Skip to main content
Glama

Revoke an access code

revoke_access_code
DestructiveIdempotent

Turn off an access code by id to stop its shared page from opening immediately; existing installs and other codes keep working. Requires confirm: true and Owner or Admin role.

Instructions

Turn off one access code (by its id from list_access_codes). It stops opening the page at once; installs already made stay, and the shared password and other codes keep working. This cannot be undone. Ask the person first and pass confirm: true. Owner or Admin role.

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": {
      "id": "<id>",
      "confirm": "<confirm>"
    },
    "name": "revoke_access_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAccess code id
confirmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.7

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, yet the description adds substantial context beyond them: the code stops opening the page immediately, existing installs survive, shared password and other codes are unaffected, and the action cannot be undone. This tells an agent exactly what the blast radius is.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short, front-loaded sentences: what it does, what state changes, reversibility, and the required confirmation and role. No filler or repetition of the title.

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 single-record mutation with no output schema, the description covers effect timing, side-effect boundaries, irreversibility, confirmation protocol, and authorization. Nothing an agent needs to call it safely is missing.

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?

With only 50% schema coverage, the description compensates by explaining that id comes from list_access_codes and that confirm must be true with a stated reason (ask the person first). The const:true constraint is in the schema, but the intent behind it is only in the description.

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 ('Turn off one access code') plus the scope ('one') and where the id comes from ('from list_access_codes'). This clearly separates it from list_access_codes and create_access_code without needing to open a 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?

Gives the operating context and prerequisites: ask the person first, pass confirm: true, and requires Owner or Admin role. It doesn't name an explicit alternative or a when-not-to-use case, but the single-target scope is already delimited.

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