Skip to main content
Glama

edit_dialog_node

Idempotent

Edits an existing dialog node's text, script, sound, or comment in Neverwinter Nights .mod files, changing only the fields you provide.

Instructions

Edit an existing dialog node's text, script, sound, or comment. Supports partial updates — only provided fields are changed. Note: conditions live on links (Active field), not nodes — use modify_gff_field for those.

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>",
      "nodeType": "<nodeType>",
      "nodeIndex": "<nodeIndex>"
    },
    "name": "edit_dialog_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoNew dialog text
soundNoNew sound resref
dialogYesDialog resref
scriptNoNew action script resref (runs when node plays)
commentNoNew builder comment
nodeTypeYesNode type: 'entry' (NPC line) or 'reply' (PC line)
nodeIndexYesIndex of the node in EntryList or ReplyList

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare idempotentHint=true; the description adds genuinely useful behaviour beyond that — that updates are partial rather than full replacement, which is the key safety property for a mutation tool. It still omits what the tool returns and whether the dialog/node must already exist, so it isn't exhaustive.

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, front-loaded with the verb and scope, then the partial-update contract, then the caveat. Nothing is repeated and every sentence carries information the agent needs.

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 7-parameter mutation tool with full schema coverage and no output schema, the description covers the essentials: scope, partial-update semantics, and the conditions caveat. Minor gaps remain around required preconditions and the effect/return of the edit, which keeps it from a 5.

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 every parameter already has documentation, and the description's field list (text, script, sound, comment) largely mirrors it. The one added nuance is the note that conditions are not node fields, which steers the agent away from a non-existent parameter, but no format or indexing details are added.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Edit an existing dialog node') and enumerates the editable fields (text, script, sound, comment), which immediately separates it from add_dialog_node. It also explicitly disclaims a neighbouring capability, pointing condition edits to modify_gff_field, so the agent can distinguish it from siblings without reading schemas.

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?

Gives a clear usage rule (partial updates, only supplied fields change) and an explicit exclusion routing link/Active condition edits to modify_gff_field. It does not explicitly contrast with add_dialog_node or state preconditions (e.g. node must already exist), so it falls just short of full when/when-not guidance.

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