Skip to main content
Glama

select_elements

Replaces the current selection in Dungeondraft's UI with the given element IDs, so you can target specific map elements for inspection or editing.

Instructions

Select the given element ids in Dungeondraft's UI (replaces the current selection).

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": {
      "ids": "<ids>"
    },
    "name": "select_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the most important trait — that the existing selection is replaced rather than appended — but says nothing about what happens with invalid or non-existent ids, whether the view scrolls to the selection, or what is returned.

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?

One sentence with zero filler, and the replacement behavior — the detail most likely to surprise an agent — is placed inline right after the action rather than buried.

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

Completeness3/5

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

For a one-parameter UI-state tool with no output schema, the core action and its destructive-to-selection side effect are covered. What is missing is the id provenance and the failure mode for unknown ids, which an agent would need to call this reliably in a chain.

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% for the single `ids` array, so the schema supplies only a type. The description clarifies that these are element ids in Dungeondraft's UI, but it does not say where ids come from (e.g. list_elements) or whether an empty array is valid.

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?

The description pairs a specific verb ("Select") with a specific resource ("element ids in Dungeondraft's UI"), which is enough for an agent to distinguish it from mutating siblings like delete_elements or move_elements. It stops short of naming a sibling such as clear_selection or select_tool to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by "in Dungeondraft's UI (replaces the current selection)", which tells the agent this is a UI-state operation rather than a data edit. There is no explicit when-to-use or when-not-to-use guidance and no named alternative for clearing or extending a selection.

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