Skip to main content
Glama

Delete app and its data

purge_app
DestructiveIdempotent

Delete an app and the data only it used, permanently. Review the returned plan, then resend with request_state to execute; shared data remains.

Instructions

Settings app only: deletes an app AND the data only it used, permanently. Returns a plan first; the same call re-sent with request_state carries it out. Shared or unprovable collections are kept.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
actorNo
command_idYesidempotency key — generate a fresh uuid per action
request_stateNothe state from the plan answer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=true, so the description's job is to add detail. It does: deletion is permanent, it affects only the app's exclusive data, and shared or 'unprovable' collections are deliberately preserved. The plan-then-apply flow is genuinely useful behavioral context, though it doesn't cover auth/permission requirements or reversibility beyond 'permanently'.

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?

Three short sentences, front-loaded with the scope restriction and destructive scope before the plan/apply mechanics. Every clause carries information; no filler.

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, no-output-schema tool with 4 params, the description covers the key risks: permanence, the two-call pattern, and what data is spared. It omits permission/auth prerequisites and any hint about what the returned plan contains, which slightly weakens completeness.

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 50%: command_id and request_state carry their own descriptions, while name and actor are bare. The description clarifies the role of request_state within the plan workflow, but adds nothing about command_id, name, or actor semantics. Baseline 3 is appropriate given the partial schema coverage.

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 ('deletes') plus resource ('an app AND the data only it used') and scoping ('Settings app only'), which separates it from the sibling delete_app that presumably removes the app alone. 'Permanently' also signals irreversible scope, so an agent can choose correctly without opening 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?

The description establishes context ('Settings app only') and explains the two-phase workflow: first call returns a plan, the re-sent call with request_state executes it. It never explicitly names delete_app as the alternative or states when purge is preferable, so it stops short of a full when/when-not statement.

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