Skip to main content
Glama

create_dialog

Generate a new DLG conversation file from a simplified tree of alternating NPC and PC lines, requiring NPC lines at the root.

Instructions

Create a new DLG conversation file from a simplified tree structure. Root nodes must be NPC lines (speaker: 'npc'). The tree alternates NPC→PC→NPC.

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": {
      "resref": "<resref>",
      "nodes": "<nodes>"
    },
    "name": "create_dialog"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodesYesJSON array of dialog tree nodes: [{ speaker: 'npc'|'pc', text: string, script?: string, condition?: string, children?: [...] }]
resrefYesDialog filename without extension

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.4/5.0
Behavior2/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 discloses the important structural invariants (NPC root, strict NPC→PC alternation), but says nothing about what happens if the resref already exists, whether the file is created on disk immediately, what is returned on success, or what error conditions arise from violating the alternation rule. For a file-creating mutation with zero annotation coverage, that is a substantial gap.

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?

Three short sentences with the purpose first and the two hard constraints immediately after. Every clause is load-bearing; no restatement of the tool name and no filler.

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 creation tool with no output schema, the description covers intent and the tree shape well. It is still missing the collision/overwrite behavior, the success response, and what script and condition strings are expected to contain, which matter for calling it correctly the first time.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine semantics the schema does not encode: the root node must be an NPC line and the tree must alternate NPC→PC→NPC. Those ordering rules are essential to constructing a valid nodes payload and are not derivable from the schema's field list.

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 ('Create') with a specific resource ('new DLG conversation file') and the input form ('simplified tree structure'), which makes the create-new-file intent distinct from siblings like add_dialog_node and edit_dialog_node that modify existing dialogs. It never names a sibling explicitly, so differentiation is implied rather than stated.

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?

The word 'new' plus the structural constraints imply this is the entry point for authoring a dialog from scratch, while add/edit siblings handle incremental changes. However, there is no explicit when-to-use statement, no guidance on choosing between creating a whole tree versus building it node by node, and no preconditions such as whether the resref must be unused.

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