Skip to main content
Glama

set_save_directory

Set the directory where save_map writes maps. Provide an existing path, or pass an empty string to clear it; the setting persists across restarts.

Instructions

Set the directory save_map writes into. Pass "" to clear it.

Persisted per install, so it survives restarts — a directory inside a
temporary folder keeps being the answer long after the folder is gone.
The directory must already exist; this will not create one. If it
disappears later, saving falls back to Dungeondraft's own map directory
and both get_save_directory and the save reply say so.

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": {
      "path": "<path>"
    },
    "name": "set_save_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations to lean on, the description carries the full burden and does so well: it discloses per-install persistence across restarts, that the directory is not created, and the exact fallback behavior when the path disappears. It even notes the failure is surfaced in both the setter and the save reply.

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-loads the core action and the clear sentinel, then adds persistence and fallback as supporting paragraphs. The temporary-folder illustration is a bit of flavor, but it earns its place by explaining the persistence side effect.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter setter with no output schema and no annotations, this covers what an agent needs: what it writes, how to reset, preconditions, persistence scope, and failure behavior. Nothing essential is missing.

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?

Schema coverage is 0% and the schema only says "Path", so the description must compensate — and it does, defining the empty-string sentinel for clearing and the precondition that the directory exist. It omits path format expectations (absolute vs relative), which is the remaining gap.

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 (set) plus the exact resource and the consumer it affects ("the directory save_map writes into"), which immediately ties it to the sibling that uses it. An agent can distinguish this from get_save_directory without opening either 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?

Gives clear conditions: pass "" to clear, the directory must already exist, and saving silently falls back if the path vanishes. It stops short of naming get_save_directory as the read counterpart, but the operational context is otherwise complete.

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