Skip to main content
Glama

get_camera

Reads the editor camera's world-center position, zoom factor, and viewport size so you can inspect the current view before adjusting it.

Instructions

Report the editor camera: world-center position [x,y], zoom, and viewport size.

zoom is a Camera2D factor where LARGER = zoomed OUT (zoom 0.5 magnifies 2x,
zoom 2.0 shows twice as much). Use this to read the view before adjusting it.
zoom_label is the real zoom as a percentage. If Dungeondraft's own zoom menu
shows something else (it opens maps at 80% labelled 100%), zoom_menu says
what the user sees there.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.4/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 it delivers real behavioral context: the counterintuitive zoom direction (LARGER = zoomed OUT) with concrete examples, plus the existence of zoom_label and the zoom_menu discrepancy at 80%/100%. It implies read-only via "Report" but never states permissions, failure modes, or whether the camera must be open, which keeps it below a 5.

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 purpose in the first line, followed by the semantic caveats in descending importance. The zoom parenthetical examples earn their place by preventing a sign error, though the explanation is dense enough that the paragraph reads as a block rather than scannable items.

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?

There is no output schema, so the description must describe the response, and it does: position, zoom, viewport size, zoom_label as a percentage, and zoom_menu as what the user sees in Dungeondraft's own menu. For a simple zero-param getter, nothing an agent needs in order to interpret the result 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?

The tool takes zero parameters and the schema is an empty object, so the baseline of 4 applies. The description's field-level detail concerns return values rather than inputs, which is appropriate here.

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 ("Report the editor camera") and enumerates exactly what is returned: world-center position [x,y], zoom, and viewport size. It also implicitly distinguishes itself from the setter ("Use this to read the view before adjusting it"), so an agent knows this is the read side of the camera pair.

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 context for invoking it: read the view before adjusting it, which routes the agent to the set_camera flow. It stops short of any explicit exclusions or preconditions (e.g., whether it works outside the editor view), but the when-to-use is unambiguous for a zero-param getter.

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