Skip to main content
Glama

Erase an account at its member's request

admin_erase_account
DestructiveIdempotent

Internal staff only. Erases an account at its member's request (a GDPR erasure): deletes the member's WorkOS user, the organization with every project, API key, usage record and its database, its Stripe customer if it has one (Stripe keeps the invoices), and the member's profiles at Customer.io, recording each step, and answers a receipt to paste into the written confirmation. It takes an organization whose only member is the person who asked; it refuses your own organization, a staff one, one with other members, an unclaimed or provisioning one, and one on a paid plan or an Enterprise contract. A processor whose keys this deployment lacks is left to do by hand, and the answer names what to submit. Called again with the id of an organization it erased, it runs again the steps that failed, or answers the receipt again. Never pass the person's address. Call it without confirm first, put the sentence it answers with to the person, and call again with confirm: true only when they agree.

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": {
      "organization": "<organization>",
      "reference": "<reference>",
      "confirm": "<confirm>"
    },
    "name": "admin_erase_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYestrue only once the person has agreed to the sentence the unconfirmed call answered with.
referenceYesThe request's reference, at most 200 characters: a ticket id or "GDPR request 2026-10-23". Never the person's address or name, which the request log would keep.
organizationYesThe organization's id or slug, as admin_find_organization returned it. Once it is erased, its id alone finds the erasure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substantial context beyond them: what is destroyed versus retained (Stripe keeps invoices), which processors are skipped when keys are missing, and that calling again re-runs failed steps or re-answers the receipt. That is a materially richer behavioral picture than annotations provide.

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 'Internal staff only' and the core action, and every sentence carries operational information. The middle sentence is very long and clause-heavy, packing refusals, retention, and receipt behavior into one run-on, which costs a bit of readability.

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, high-stakes mutation with no output schema, the description covers what is deleted, what is retained, refusal preconditions, failure handling on retry, and what the response contains ('a receipt to paste into the written confirmation'). 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% (baseline 3), and the description adds real meaning: it explains the confirm workflow (unconfirmed call yields a sentence to relay, then confirm: true), warns the reference must never be the person's address, and clarifies that an erased org's id alone finds the erasure. One caveat: the schema marks confirm as required while the description says to call 'without confirm' first, a small inconsistency left unexplained.

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?

Names a specific verb and resource ('erases an account'), states it is a GDPR erasure at the member's request, and enumerates exactly what gets deleted (WorkOS user, organization, projects, API keys, usage records, Stripe customer, Customer.io profiles). An agent can distinguish it from sibling tools like delete_project or remove_member without inspecting schemas.

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 states 'Internal staff only', lists every refusal condition (own org, staff org, multi-member org, unclaimed, provisioning, paid plan, Enterprise contract), prescribes the no-confirm-first two-step flow, and says never to pass the person's address. Multiple alternatives and conditions are spelled out rather than implied.

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