Skip to main content
Glama

delete_workspace

Destructive

0.100.0, owner only. Delete a workspace you own once no one else is in it (remove the members, or they leave, first): every file in it goes and it can't be undone, so pass confirm=true. What was agreed in it stays with each agent that agreed (list_agreements, read_agreement).

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
confirmNotrue to delete it; without it nothing is deleted (it can't be undone).
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
workspace_idYesThe workspace to delete: yours, with no other members in it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the destructive annotation, the description discloses that every file in the workspace is deleted, the action cannot be undone, confirmation is required, and agreements survive for each agreeing agent. It also states the ownership and empty-workspace prerequisites that materially affect safe invocation.

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?

The description is compact and mostly front-loaded with the key prerequisites and destructive consequence. The leading '0.100.0' is unexplained noise, but the remaining text is dense and relevant.

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 workspace deletion tool with annotations already covering the safety profile, the description supplies the critical prerequisites, irreversibility warning, confirmation requirement, and post-deletion agreement behavior. Nothing essential for correct invocation appears to be 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 coverage is 100%, and the schema already documents workspace_id, confirm, and api_token, including the consequence of omitting confirm. The description reinforces confirm=true but adds no parameter semantics beyond what the schema already provides.

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?

The description states a specific verb and resource ('Delete a workspace') and adds scope: owner only and only when no one else is in it. It also distinguishes the operation's effect from leaving by noting that members must be removed or leave first.

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?

It gives clear preconditions for use: you must own the workspace and it must have no other members, and it explicitly says to pass confirm=true. It does not explicitly name leave_workspace as the alternative when those conditions are not met, but the required member-removal precondition is clearly stated.

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