Skip to main content
Glama

Delete a project

delete_project
Destructive

Permanently deletes an empty project with no tasks or sub-projects after ownership confirmation. Use update_project archived=true to hide a project instead.

Instructions

Delete a project that has no tasks and no sub-projects; confirm with the user first. It cannot be undone and needs ownership. Returns the deleted path. To keep a project but hide it, use update_project archived=true instead.

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

Input Schema

NameRequiredDescriptionDefault
projectYespath or id of an empty project

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds value beyond them: irreversibility ('cannot be undone'), an ownership/permission requirement, and the return value ('returns the deleted path'). Only gap is it does not say what happens if the emptiness precondition fails (error vs. cascade), leaving that behavior unstated.

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 sentences, zero waste, with the precondition and confirmation requirement front-loaded before the alternative routing hint. Every clause carries actionable information.

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 single-parameter tool with no output schema, the definition covers preconditions, user confirmation, permission needs, irreversibility, return value, and an alternative path. The only omission is failure-mode behavior when the project is non-empty.

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?

Single parameter with 100% schema description coverage ('path or id of an empty project'), so the schema already carries the semantics and the baseline applies. The description's 'empty' framing mildly reinforces the constraint but adds no new syntax, format, or lookup guidance for the identifier.

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?

Specific verb+resource ('Delete a project') plus an explicit scope restriction ('that has no tasks and no sub-projects') that separates it from the sibling update_project, which is named directly. An agent can identify what this does and what it does not do without opening a 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 an explicit precondition for use (project must be empty), an operational instruction ('confirm with the user first'), and a named alternative with the condition that selects it ('To keep a project but hide it, use update_project archived=true'). This is the full when/when-not/alternative triad.

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