Skip to main content
Glama

set_grid

Show or hide the Dungeondraft editor grid and keep the View menu checkbox in sync. Use it to control grid visibility in editor screenshots without changing exports or saved map settings.

Instructions

Show or hide the grid in the editor view. Returns {grid_visible, grid_toggle}.

It works the View menu's own grid checkbox, so the menu and the screen
agree; grid_toggle is that checkbox's state. This changes only what the
editor (and so screenshot) shows. Exports keep their own `grid` option and
put the editor grid back afterwards.

It is not saved: neither the map file nor Dungeondraft's settings keep it,
so opening a map or restarting Dungeondraft shows the grid again.

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": {
      "visible": "<visible>"
    },
    "name": "set_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
visibleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the return shape {grid_visible, grid_toggle}, that it drives the View menu checkbox so UI and state agree, that it is not persisted to the map file or settings, and that it does not affect exports. That is exactly the mutation and side-effect context an agent needs.

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 core action and return value, then the caveats. The export and persistence sentences are long but each carries genuinely useful information, so little is wasted.

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?

No annotations and no output schema, yet the description supplies the return values, persistence behavior, export interaction, and scope. An agent has everything required to call it correctly and predict the outcome.

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 0%, so the description should compensate. 'Show or hide' implies the boolean's polarity, but it never names the `visible` argument or states true=show versus false=hide, leaving meaning to inference from the parameter name.

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 and resource ('Show or hide the grid in the editor view') and immediately scopes it: editor-only, not exports. The parenthetical about screenshots and the export note distinguish it from adjacent tools like screenshot or export behavior.

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 makes clear this governs editor display only and explicitly excludes exports, which tells an agent when not to reach for it. It does not name a sibling alternative or spell out a decision rule for when toggling is appropriate.

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