Skip to main content
Glama

Delete documents

delete
Destructive

Remove Foundry VTT documents by ID or exact name; folder removal keeps contents unless withContents is set.

Instructions

Deletes documents by id or exact name. Deleting a Folder keeps its contents (moved up a level) unless withContents.

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": {
      "type": "<type>"
    },
    "name": "delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNo
typeYesDocument type: Actor, Item, Scene, JournalEntry, Macro, RollTable, Playlist, Cards, Folder, ChatMessage, Combat, User
namesNo
dryRunNoReport what would happen without changing anything
folderNoFolder path to disambiguate names
withContentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the safety profile is covered; the description adds genuinely non-obvious behavior, namely that deleting a Folder reparents its contents unless withContents is set. It stops short of describing what happens when a name matches multiple documents, or what the call returns.

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 tight sentences with zero filler: the primary operation and its selectors come first, then the important exception. Every clause carries information an agent needs.

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 six-parameter tool with no output schema, the description covers the core mechanics and the one surprising side effect. Gaps remain around ambiguous-name handling, interaction between ids and names, and return values, but annotations carry the destructive signal and the schema covers dryRun.

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 50%, with 'type', 'folder', and 'dryRun' already documented in the schema. The description adds real meaning for the undocumented 'withContents' flag by explaining its effect on Folder children, and it hints that 'names' requires exact matches, but 'ids' and multi-match name resolution remain unelaborated.

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?

The description names a specific verb and resource ('Deletes documents') plus the two selector mechanisms ('by id or exact name'), so an agent can immediately tell what the tool does. There is no competing delete sibling to distinguish against, but the description does not explicitly contrast itself with mutation tools like update or create.

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

Usage Guidelines3/5

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

Usage context is implied through the two selection paths (ids or exact names) and the note that Folder deletion preserves contents by default, which hints at when the tool is safe versus aggressive. There is no explicit when-to-use/when-not guidance and no pointer to alternatives such as update for modifying rather than removing.

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