Skip to main content
Glama

flatten_dialog

Read-onlyIdempotent

Displays a dialog as a human-readable conversation flow, showing NPC and PC lines with branches up to a set depth for quick review.

Instructions

Get a human-readable conversation flow showing NPC/PC lines with branching.

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

Input Schema

NameRequiredDescriptionDefault
dialogYesDialog resref
maxDepthNoMaximum conversation depth to traverse (default: 10)

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 is covered. The description adds the output form (flattened, human-readable, branching) but says nothing about how traversal stops at maxDepth, whether cycles are cut, or what happens with a missing dialog resref.

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?

A single front-loaded sentence with no filler; the output shape is stated before any detail. Nothing in it is redundant or wasted.

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 two-parameter read tool with annotations covering safety and no output schema, the description gives an adequate sketch of the result. It is nonetheless thin on traversal semantics (depth cutoff, cycles, truncation) which are the tool's defining behavior.

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 100%, so both parameters (dialog, maxDepth with default 10) are already documented. The description adds no syntax, format, or behavioral meaning beyond what the schema states, so the baseline 3 applies.

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 names a specific verb+resource ('Get a human-readable conversation flow') and characterizes the output as NPC/PC lines with branching, which separates it from a raw structural dump. It does not, however, name or contrast with the obvious sibling get_dialog_tree, leaving the distinction implicit.

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

Usage Guidelines2/5

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

There is no statement of when to prefer this over get_dialog_tree or trace_dialog_path, and no prerequisites or exclusions. The word 'human-readable' hints at a display-oriented use case but the agent must infer the selection rule itself.

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