Skip to main content
Glama
nwn-dm-mcp
by tim4net

dm_spawn

Queues a server-side bridge action to spawn a creature or object from a template resref, optionally at a location and with tags, by writing a pending row to the action queue.

Instructions

Queue a server-side bridge action: spawn a template resref (optionally at a location, with a tag). Writes one 'pending' row to bridge_action_queue.

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>"
    },
    "name": "dm_spawn"
  }
}

Input Schema

NameRequiredDescriptionDefault
resrefYes
locationNo
actor_tagNo
target_tagNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 burden and does disclose a genuine behavioral fact: this writes one 'pending' row to bridge_action_queue, so the agent learns the effect is deferred and side-effecting rather than immediate. It says nothing about permissions, validation of the resref, what happens if the bridge is disconnected, or whether queued actions can be cancelled or duplicated.

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?

Two sentences, zero filler, with the action and its effect front-loaded ahead of the optional-argument aside. Every clause carries information the agent needs.

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 four-parameter mutation with no annotations and no output schema, the description covers the core mechanism (enqueue a pending action) but leaves the return value, timing semantics, and the actor_tag/target_tag distinction unexplained. It is minimally adequate but has clear gaps.

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 coverage is 0%, so the description must compensate for all four parameters. It clarifies resref as a template reference and location as positional, but it only says 'with a tag' despite there being two distinct parameters, actor_tag and target_tag, leaving the agent unable to tell which tag means what.

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: 'Queue a server-side bridge action: spawn a template resref'. The queueing framing plus the write target distinguishes it clearly from siblings like dm_jump or dm_say, which act on players rather than templates, though no sibling is named explicitly.

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 'Queue' implies this is asynchronous and does not act immediately, which is meaningful usage context, and 'optionally at a location' signals the required-versus-optional split. However, it never states when to choose this over a direct action or what preconditions (e.g. a valid existing template, an active bridge connection via dm_connect) must hold.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.