Skip to main content
Glama

delete_workspace

DestructiveIdempotent

Delete a workspace. At once nothing can act in it, its links stop playing and its storage stops billing; 7 days later (its purge_at) everything in it is deleted for good: documents, assets, links, exports, keys and domains. Until then restore_workspace brings it back. Needs an organization key or an organization admin; the organization's last workspace can't be deleted.

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": {
      "workspace_id": "<workspace_id>"
    },
    "name": "delete_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idYes`ws_…`.

Output Schema

NameRequiredDescriptionDefault
idYes`ws_…`; it starts with its region's code, such as `ws_use_…` for `us-east`.
nameYesWhat it's for, such as "Production" or "Acme".
regionYesIts home region, where its data lives and its renders run.
statusYes`deleting` once it's deleted, until it's purged or restored.
purge_atNoWhen a deleted workspace is purged, with everything in it (RFC 3339); absent unless it's `deleting`.
created_atYesRFC 3339.
key_prefixYesWhat its API keys start with: `sk_live_`, `sk_test_` or `sk_`.
organization_idYesThe organization it belongs to, `org_…`.
rate_limit_per_minuteYesRequests per minute its keys may make, together.
monthly_spend_cap_centsNoThe most its billable work may cost per calendar month, in USD cents; none when absent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the two-phase lifecycle: immediate deactivation (no actions, links stop playing, storage stops billing) followed by irreversible purge at purge_at, seven days later, listing exactly what is destroyed (documents, assets, links, exports, keys, domains). It also adds auth requirements and the last-workspace restriction, which annotations alone cannot convey. This is fully consistent with destructiveHint=true and idempotentHint=true.

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, front-loaded with the verb and resource, then the immediate effect, the purge timeline, the recovery path, and the prerequisites. No redundant restatement of the title or annotations; every clause carries operational information.

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-parameter tool with an output schema present, everything an agent needs is covered: what happens now, when data becomes unrecoverable, how to undo it, and who is permitted to run it. Return values need not be explained because the output schema handles them.

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 coverage is 100%, so the single workspace_id parameter is already documented as `ws_…` in the schema. The description adds no further meaning about the parameter itself, which is acceptable given full coverage, but nothing beyond the baseline.

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 ('Delete a workspace') and immediately distinguishes the behavior from related siblings by describing the soft-delete-then-purge model and pointing to restore_workspace as the undo path. An agent can tell this apart from delete_document, delete_asset, or restore_workspace without opening any 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?

Provides clear context: it names restore_workspace as the alternative for reversing the action and states two hard preconditions (organization key or admin, and last workspace cannot be deleted). It stops short of an explicit 'use this when the user asks to permanently remove a workspace, not merely archive it', but the surrounding conditions make the intent unambiguous.

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