Skip to main content
Glama

Remove Customer

remove_customer
DestructiveIdempotent

Archive or permanently delete a customer: archive makes them inactive and recoverable, while delete cascades contacts and returns conflict options for confirm, archive, or cancel.

Instructions

Remove a customer by archiving (sets phase to inactive, recoverable) or permanently deleting. On first call, returns a conflict with ARCHIVE / DELETE / CANCEL options. Pass mode after the user decides. Contacts cascade on delete; history is preserved on archive.

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": {
      "customer_id": "<customer_id>"
    },
    "name": "remove_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDeprecated: use `resolution`. 'archive' / 'delete' / 'cancel'.
resolutionNoResolution after the removal conflict: 'confirm' deletes (recoverable for 30 days), 'archive' hides it (recoverable), 'cancel' aborts.
customer_idYesCustomer UUID to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds genuinely new behavior: contacts cascade on delete, history is preserved on archive, and the first call is non-committal, returning a conflict before any mutation happens. The one flaw is that it calls delete 'permanent' while the schema documents a 30-day recovery window, which understates recoverability.

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?

Three sentences, each carrying distinct information (semantics, interaction protocol, blast radius), with the action and its two forms front-loaded. No filler or restatement of the tool name.

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 destructive tool with no output schema, it covers the essentials: what is destroyed, what cascades, what survives, and that the first call is a confirmation gate returning a conflict payload. It is only weakened by the 'permanently deleting' claim, which conflicts with the documented 30-day recovery and leaves the agent's risk framing slightly wrong.

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%, so the baseline is 3, and the description does add real meaning about ordering: the resolution is supplied only on the second call after the conflict. However, it tells the agent to 'pass mode', which the schema marks as deprecated in favor of `resolution`, so the parameter guidance is partially stale and could steer an agent to the wrong field.

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 ('Remove a customer') and immediately distinguishes the two possible semantics, archive vs delete, including what each does to the record. An agent can tell this apart from siblings like update_customer or remove_contact without opening the 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?

Explains the two-step protocol clearly: the first call surfaces a conflict with ARCHIVE / DELETE / CANCEL, and the mode is supplied only after the user decides. It also gives the selection criterion (recoverable archive vs permanent delete). It does not compare against sibling alternatives such as update_customer for a soft phase change, so it falls short of a 5.

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

Deploy Server

Other Tools