Skip to main content
Glama

archivePromocode

Destructive

Archive a promocode so it can no longer be redeemed; its code can then be used for a new promocode. Archiving cannot be undone. A promocode cannot be edited: to change one, archive it and create a new one with createPromocode. Returns the archived promocode. Get promocodeId from getPromocodes. Never invent UUIDs; only use values from prior tool responses.

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": {
      "promocodeId": "<promocodeId>"
    },
    "name": "archivePromocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
promocodeIdYesThe id of the promocode.

Output Schema

NameRequiredDescriptionDefault
promocodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation by stating plainly that 'Archiving cannot be undone' and that the code can subsequently be reused for a new promocode. It also discloses the return value and adds an ID-provenance warning, which is exactly the behavior an agent needs before performing an irreversible mutation.

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?

Compact and front-loaded: effect, irreversibility, alternative workflow, return value, and ID sourcing each occupy a short clause with no filler. Semicolons keep related constraints grouped logically.

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 one-parameter destructive mutation, the description covers effect, reversibility, the substitute workflow, ID sourcing, and the return value, while an output schema exists to handle response structure. 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?

Schema coverage is 100%, so the single promocodeId parameter is already documented as a UUID. The description still adds real meaning by specifying provenance (get promocodeId from getPromocodes) and forbidding invented UUIDs, going beyond the schema's format constraint.

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 (archive a promocode) plus the concrete effect (no longer redeemable) and the downstream consequence (code becomes reusable). It also implicitly distinguishes itself from createPromocode and getPromocodes by naming them as the alternatives for other operations.

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?

Explicitly covers when to use it and what to do instead for the related goal: 'A promocode cannot be edited: to change one, archive it and create a new one with createPromocode.' It also tells the agent where to obtain the required id via getPromocodes.

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