Skip to main content
Glama

get_dialog_tree

Read-onlyIdempotent

Retrieve the raw dialog structure for a Neverwinter Nights conversation file by dialog resref to inspect branches and nodes.

Instructions

Get the raw dialog structure for a conversation file.

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": {
      "dialog": "<dialog>"
    },
    "name": "get_dialog_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
dialogYesDialog resref (e.g., 'salino')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety and repeatability are covered structurally. The description adds the meaningful detail that the structure returned is 'raw' (unprocessed), but says nothing about whether references to scripts or conditions are resolved, or how deep/large the tree may be.

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?

A single front-loaded sentence with no filler, stating the operation and target immediately. It is efficient, though the terseness leaves no room for the qualifiers that would help an agent choose correctly.

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

Completeness2/5

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

No output schema exists, so the description carries the burden of explaining what comes back, and 'raw dialog structure' is too vague to tell an agent whether it receives nodes, links, or references. For a tool whose entire value is the returned tree, that omission leaves the definition substantially incomplete.

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?

Only one parameter, and the schema already documents it fully with an example ('salino') at 100% coverage, so the baseline is 3. The description adds only the mild clarification that the resref points at a conversation file, not a broader resource identifier.

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: get the 'raw dialog structure' of a 'conversation file'. The word 'raw' implicitly separates it from flatten_dialog and trace_dialog_path, but the description never names those siblings, so the differentiation is only weakly conveyed.

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 only implied: this is a read of an existing dialog and 'raw' hints at wanting the unprocessed tree rather than a flattened or traced view. There is no explicit when/when-not guidance and no mention of the read-only, non-destructive nature relative to the mutation siblings like edit_dialog_node or add_dialog_node.

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