Skip to main content
Glama

clear_captures

Delete server-generated screenshots, exports, asset previews, and older trace images from Dungeondraft's mcp_output directory while keeping the newest trace file.

Instructions

Remove every server-generated screenshot, export, and asset preview, and every trace image it wrote but the newest.

This only deletes regular files directly in Dungeondraft's `mcp_output`
directory whose names the server generates. It never recurses into the
directory or removes other files a user has placed there. The newest trace
is kept because the open map probably uses it; a map whose trace file is
gone still opens, without its trace.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_captures"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does well on destruction scope (what is deleted, what is protected, that the newest trace is preserved) and on the consequence of a missing trace. It falls short on operational behavior: no mention of required permissions, whether deletion is reversible, or what the call reports back.

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

Conciseness4/5

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

Front-loaded with the action and its scope, followed by the safety constraint and then the rationale for keeping the newest trace. Every sentence carries information, though the closing clause about the map opening without its trace is slightly verbose for the value it adds.

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 a zero-parameter destructive tool with no annotations and no output schema, the definition needs to explain scope and side effects, which it does thoroughly. The remaining gap is behavioral rather than structural: nothing tells the agent whether this requires confirmation, what it returns (e.g., a count of deleted files), or how failure looks.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Zero parameters, so the baseline is a 4. The description still adds value by defining the implicit filter — regular files directly in `mcp_output` with server-generated names, newest trace excluded — which governs what the tool acts on despite there being no schema fields.

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 ("Remove") and an enumerated resource set (server-generated screenshots, exports, asset previews, trace images), plus a precise qualifier on which trace images survive. The scope statement about `mcp_output` and server-generated filenames makes it unmistakably distinct from selection/cave clearing siblings.

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?

Implied trigger is clear: clean up artifacts the server itself wrote. The description also gives an explicit when-not boundary by declaring it never recurses and never touches user-placed files, but it names no alternative tool and does not state preconditions such as an open map.

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