Skip to main content
Glama

set_camera

Pan or zoom the Dungeondraft editor camera to a world coordinate and zoom level, then take a screenshot to inspect the framed view of your battle map.

Instructions

Pan and/or zoom the editor camera. Returns the resulting camera state.

x, y: world (woxel) center to move the view to (omit to keep current).
zoom: Camera2D factor (LARGER = zoomed OUT). It lands on the nearest of
Dungeondraft's own zoom levels, 4 / percent: 0.5 = 800%, 4 = 100%, 40 = 10%.
zoom_label in the reply is the zoom the editor's zoom menu then shows.
Follow with screenshot() to see the framed view.

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": "set_camera"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
zoomNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses the quantization behavior (the zoom snaps to Dungeondraft's own levels), the reply naming (zoom_label) and the correct direction of the zoom factor. It does not say what happens with out-of-range coordinates or whether the camera change persists across other editor actions.

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

Conciseness3/5

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

The opening and the closing screenshot hint are front-loaded and useful, but the zoom sentence is garbled — "the nearest of Dungeondraft's own zoom levels, 4 / percent: 0.5 = 800%..." reads like a corrupted fragment whose leading "4 /" is unparseable. That muddles the single most important unit explanation.

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?

There is no output schema, and the description compensates by describing the returned camera state and specifically the zoom_label field. For a three-optional-parameter view-manipulation tool this is close to complete, with only edge-case behavior on bad coordinates left unstated.

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

Parameters5/5

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

Schema coverage is 0%, so the description must explain all three parameters, and it does: x/y are the woxel-space center, zoom is a Camera2D factor where larger means zoomed out, with a worked percent mapping. "Omit to keep current" also explains the null defaults the schema leaves bare.

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?

"Pan and/or zoom the editor camera" is a specific verb+resource statement, and "Returns the resulting camera state" clarifies that it also reports back. It never explicitly contrasts with the get_camera sibling, but the follow-up reference to screenshot() makes the sequencing clear enough that an agent can pick between them.

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 gives concrete operational guidance: omit x/y/zoom to keep the current value, and follow with screenshot() to see the framed view. It stops short of stating when to call get_camera instead, so there is a small routing gap.

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