Skip to main content
Glama

focus_element

Centers the camera on any map element by ID, including text, with optional zoom to inspect and verify specific details such as doors or walls.

Instructions

Center the camera on an element by id (works for any kind, including text).

zoom: optional Camera2D factor to apply (LARGER = zoomed OUT), landing on
the nearest Dungeondraft zoom level as in set_camera. Follow with
screenshot() to verify a specific element (e.g. a door cut into a wall).

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": {
      "id": "<id>"
    },
    "name": "focus_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
zoomNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.3/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 does reasonably well: it discloses the counterintuitive zoom direction (LARGER = zoomed OUT) and that zoom snaps to the nearest Dungeondraft zoom level as in set_camera. It omits what happens if the id does not exist and whether the camera move animates or returns anything.

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

Conciseness5/5

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

Front-loaded with the core action in the first clause, then the zoom nuance, then the verification workflow. Two tight sentences with no filler; every clause adds information an agent would otherwise have to guess.

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?

For a two-parameter tool with no annotations and no output schema, the description covers action, zoom semantics, and a verification step. Remaining gaps (invalid-id behavior, return value, camera animation) are minor for a camera-positioning call.

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 description coverage is 0%, so the description must compensate and it does: id is scoped as any element kind including text, and zoom is explained as an optional Camera2D factor with an explicit direction convention plus snapping to the nearest Dungeondraft zoom level. Both parameters gain meaning not present in the bare schema.

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?

States a specific verb and resource: 'Center the camera on an element by id', and clarifies the id works for any element kind including text. It references set_camera for zoom-level semantics but does not directly contrast its role with that sibling, leaving a small amount of disambiguation to inference.

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?

Provides explicit workflow guidance: follow with screenshot() to verify a specific element, with a concrete example (a door cut into a wall). There are no when-not-to-use conditions or prerequisites, but the follow-up pattern is a real usage signal.

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