Skip to main content
Glama

Delete space

delete_space
Destructive

Send a space to Trash with everything in it: sub-spaces, chats, docs, rolls, files, pins and collections. It can be restored from Trash in the app for 30 days. This is refused until your human agrees: ask them, then call again with agreed: true. Only who made the space, or a workspace admin, can delete it. To keep the work, merge_space or move it first.

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": {
      "space_id": "<space_id>"
    },
    "name": "delete_space"
  }
}

Input Schema

NameRequiredDescriptionDefault
agreedNotrue only once your human agreed to the delete the refusal named.
space_idYesA space id from list_spaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true; the description adds what is actually destroyed, that restoration is possible for 30 days, that a consent gate will refuse the call, and who is authorized (creator or workspace admin). These are consequential behaviors an agent cannot get from the annotation flags.

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?

Front-loaded with the consequence, then the consent gate, then permissions, then alternatives; every sentence carries distinct information and none restates the tool name or title.

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 mutation with no output schema, it covers consequences, reversibility window, authorization, consent protocol, and safer alternatives. Nothing an agent needs to invoke it correctly is missing.

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% and the schema already explains agreed as consent for the refusal and space_id as coming from list_spaces. The description adds only sequencing context for agreed, which is useful but largely duplicative, so the high-coverage baseline applies.

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 ("Send a space to Trash") and enumerates the cascade scope (sub-spaces, chats, docs, rolls, files, pins, collections), which no sibling does. An agent can tell this apart from merge_space or move without opening either schema.

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?

Gives a hard precondition and the exact recovery path ("This is refused until your human agrees: ask them, then call again with agreed: true"), plus an explicit alternative branch ("To keep the work, merge_space or move it first"). Both when-to-use and when-not-to-use are covered.

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