Skip to main content
Glama

Delete a QR code

delete_code
DestructiveIdempotent

Permanently stop a code: anyone scanning it sees 'this code doesn't exist'. Cannot be undone. Only call when the user explicitly asks to delete this code.

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_id": "<code_id>"
    },
    "name": "delete_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
code_idYesThe 7-character code ID (the part after qrvow.com/)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, and the description goes beyond them by stating what destruction means in user-visible terms (scans return 'this code doesn't exist') and that it 'Cannot be undone'. It also adds a consent requirement not encoded in any structured field.

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?

Three short sentences, front-loaded with the consequence and irreversibility before the usage constraint. No filler, though the phrasing is slightly informal ('Permanently stop a code').

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 destructive tool with no output schema and clear annotations, the description covers effect, irreversibility, and consent adequately. It is silent on downstream consequences such as what happens to existing scan history or whether the code ID can be reused.

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 description coverage is 100%; code_id is documented as the 7-character portion after qrvow.com/ with a pattern. The description adds no further meaning about the identifier, so the baseline of 3 applies.

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 verb and resource are concrete ('Permanently stop a code') and the description spells out the observable effect: scanners see 'this code doesn't exist'. It implicitly separates itself from update_code by stressing permanence, but never names the non-destructive alternative for an agent that just wants to disable a code.

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 an explicit gating condition — 'Only call when the user explicitly asks to delete this code' — which is exactly the pre-call check needed for an irreversible operation. It stops short of pointing to a sibling (e.g. update_code) as the fallback when the user only wants to pause a code.

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.