Skip to main content
Glama

create_trap_blueprint

Creates a new trap trigger blueprint (.utt) with detection and disarm DCs, default square geometry, and optional cloning from a base trigger with overrides.

Instructions

Create a new trap trigger blueprint (.utt) with trap detection/disarm DCs and a default square geometry. Optionally clone from a base game trigger and apply overrides.

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>",
      "tag": "<tag>",
      "name": "<name>",
      "scriptOnEnter": "<scriptOnEnter>"
    },
    "name": "create_trap_blueprint"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagYesTrap tag
nameYesTrap display name
sizeNoTrigger square size in meters (default 4.0)
resrefYesNew trap blueprint resref
oneShotNoTrap fires once then disables (default true)
detectDCNoTrap detection DC (default 15)
disarmDCNoTrap disarm DC (default 15)
sourceResrefNoBase trigger to clone from (e.g. 'nw_yourfeet')
scriptOnEnterYesScript resref to run when PC enters the trap

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.6/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 behavioral burden. It usefully discloses that geometry defaults to a square and that cloning applies overrides on top of a base trigger, but it says nothing about overwrite behavior if the resref already exists, where the blueprint is persisted, or what happens when scriptOnEnter cannot be resolved.

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, front-loaded with the resource and file type, then the optional cloning behavior. Every phrase carries information and nothing is repeated from the schema verbatim.

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 nine-parameter creation tool with no annotations and no output schema, the definition covers purpose and cloning but omits what the call returns (new resref, blueprint object, path) and any failure modes. Adequate to start the call but incomplete for an agent that needs to verify or chain the result.

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, and the description earns an extra point by explaining override precedence: parameters override values inherited from sourceResref. That precedence rule is not expressed anywhere in the schema and materially affects how an agent fills the nine parameters.

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 and resource ('Create a new trap trigger blueprint (.utt)') and adds distinguishing attributes (detection/disarm DCs, default square geometry). It is clearly not the same as create_item_blueprint or create_creature_blueprint, though it does not explicitly contrast itself with those siblings.

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 clause 'Optionally clone from a base game trigger and apply overrides' gives implied guidance on when to use sourceResref versus creating from scratch. There is no statement of prerequisites, when not to use the tool, or how it relates to the sibling create_* blueprint tools.

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