Skip to main content
Glama

Delete Workspace

delete_workspace
Destructive

Permanently deletes a workspace, requiring exact ID confirmation, and reports success only after AFFiNE validates the mutation.

Instructions

Delete a workspace permanently and report success only when AFFiNE confirms the mutation.

Input Schema

NameRequiredDescriptionDefault
idYesWorkspace ID
confirmWorkspaceIdYesMust exactly match id to confirm permanent workspace deletion.

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
codeNo
kindNo
errorNo
deletedNo
detailsNo
messageNo
successNo
causeCodeNo
retryableNo
workspaceIdNo
recoveryGuidanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.10.2

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is largely covered. The description usefully adds that success is reported only after AFFiNE confirms the mutation, but omits what else is destroyed (docs, folders, collections, members) and whether the action is recoverable.

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?

A single front-loaded sentence with no filler; the destructive qualifier and confirmation semantics both land immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an irreversible, cascading workspace deletion with an output schema present, the description omits the scope of destruction (child docs, folders, tags, membership) and any recovery path. It is adequate but leaves the agent guessing about blast radius.

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 confirmWorkspaceId match requirement is fully documented in the schema. The description adds nothing about the two required parameters, which is acceptable given full schema coverage — baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (delete) and resource (workspace) with the key qualifier 'permanently'. It is distinguishable from siblings like delete_doc or delete_folder by resource type, though it does not explicitly contrast with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to use this versus alternatives, no prerequisites (ownership/admin rights) stated, and no warning about when not to use it. 'Permanently' hints at caution but implies rather than instructs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools