Skip to main content
Glama

Delete workspace

workspace_delete
DestructiveIdempotent

Move the workspace and everything in it to the trash for 30 days. Workspace administrators (and platform admins) only; repeating it returns the same dates.

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": {
      "id": "<id>"
    },
    "name": "workspace_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe workspace: its id or its slug.
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.

Output Schema

NameRequiredDescriptionDefault
idYes
typeYes
purgeAtYes
deletedAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed3 schema fields changed
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The workspace: its id or its slug.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / workspaceId
      Removed value: -{
      -  "description": "The workspace: its id or its slug.",
      -  "maxLength": 64,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "workspaceId"
      -]New value: +[
      +  "id"
      +]
  3. Changed5 schema fields changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"The workspace id (UUID)."New value: +"The workspace: its id or its slug."
    • removedInput schema / properties / workspaceId / format
      Removed value: -"uuid"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +64
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  4. First observed

TDQS

A4/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, yet the description still adds real value: the 30-day trash retention window, the admin-only authorization requirement, and the fact that repeat calls return the same dates rather than erroring. It does not say what happens after the 30 days or whether a restore path exists, keeping it short of a 5.

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?

Two tightly packed sentences: the destructive effect and retention window come first, then authorization and idempotency. No filler and nothing important buried at the end.

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?

With an output schema present, return values need not be explained, and annotations plus 100% parameter coverage carry the rest; the description correctly focuses on the destructive/retention and permission semantics. Only the post-30-day outcome and any recovery/restore option are left unstated.

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 baseline is 3. The description adds nothing about the 'id' (id-or-slug) parameter or the required 'why' justification field, both of which are fully documented in the schema, so no compensation is needed but no extra meaning is added either.

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 ('Move the workspace and everything in it to the trash') and reveals the actual mechanism — a 30-day soft delete — which distinguishes it from hard-delete siblings and from workspace_update. An agent knows exactly what this does 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an access precondition ('Workspace administrators (and platform admins) only') and the repeat behavior, and the destructive nature implies when it should be used. However, it names no alternative (e.g., workspace_update for renames, or any restore path) and no explicit when-not-to-use condition, so usage is only 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.