Skip to main content
Glama

Delete a project or folder

delete_project
Destructive

Permanently delete a folder or whole project: move folder contents to a chosen destination, delete owned slates, return others to their owners, and preview changes before saving.

Instructions

Delete a folder, or a whole project the person owns (its owner's slates are deleted; everyone else's go back to them). This cannot be undone.

Delete project. Delete a folder, or a whole project. A folder that holds slates or folders moves them to moveContentsTo (its parent by default) first; a manager deletes only empty folders, the owner any. Deleting a project (its owner only) deletes the slates its owner owns in it, with their sharing and comments, and gives every other slate back to its owner. This cannot be undone. mode "preview" says how many slates would be deleted and given back without changing anything.

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": {
      "projectId": "<projectId>"
    },
    "name": "delete_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNosave (the default) writes; preview returns what would change and saves nothing. The response says which happened.save
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
projectIdYesA project (a drive) or one of its folders.
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.
moveContentsToNoFor a folder: where its slates and folders go (its parent by default).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-idempotent, but the description adds substantial behavior beyond that: the action is irreversible, folder contents are relocated to the parent by default, project deletion cascades only to slates the owner owns (including their sharing and comments), and other slates are returned to their owners. That is exactly the consequence detail an agent needs before confirming a destructive call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is visibly duplicated: "This cannot be undone" appears twice, and "Delete project. Delete a folder, or a whole project" restates the title and the opening sentence. The substantive rules are front-loaded and correct, but roughly half the prose is redundant, which wastes attention on a destructive operation.

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?

For a destructive tool with five parameters and no output schema, the description covers irreversibility, ownership permissions, content relocation, and the preview path, which is enough to call it safely. The confirmation/idempotency handshake is left entirely to the schema, which is acceptable but is the one gap worth noting.

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 every parameter is already documented, including the save/preview enum and the moveContentsTo default. The description adds a little meaning, notably that preview reports how many slates would be deleted versus handed back, but most parameter behavior is carried by the schema, so the baseline of 3 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?

The description opens with a specific verb+resource and immediately splits the two distinct cases it handles: deleting a folder versus deleting a whole project. It also states the ownership boundary ("a whole project the person owns"), so an agent can tell this apart from slate-level deletion without inspecting 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 Guidelines4/5

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

It gives clear situational rules: a manager may delete only empty folders while the owner may delete any, and folders with contents are handled by moving contents to moveContentsTo rather than failing. It also flags the preview mode as the non-mutating path. It stops short of naming an alternative tool to use instead, so it is clear context rather than full routing guidance.

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