Skip to main content
Glama

set_area_scripts

Idempotent

Assigns event scripts (OnEnter, OnExit, OnHeartbeat, OnUserDefined) to a Neverwinter Nights area's ARE file; pass an empty string to clear a script.

Instructions

Set event scripts on an area's ARE file. Pass empty string to clear a script.

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": {
      "area": "<area>"
    },
    "name": "set_area_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYesArea resref
onExitNoOnExit script resref
onEnterNoOnEnter script resref
onHeartbeatNoOnHeartbeat script resref
onUserDefinedNoOnUserDefined script resref

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?

Annotations only declare idempotentHint=true; the description adds the clearing semantics and identifies the ARE file as the write target, which is useful. However it leaves the key behavioral question of partial updates unanswered: whether an omitted script parameter preserves the existing script or clears it, which materially changes the effect of a call.

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 short sentences, zero filler, with the primary action stated first and the clearing rule immediately after. Every sentence contributes information.

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 five-parameter mutation with no output schema, the definition covers the write target and the clear convention but omits partial-update behavior and any note on what the tool returns or whether the area must be unopened. Adequate to invoke, not complete enough to predict the result confidently.

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 defining what an empty string means for the script resref parameters — semantics the schema does not convey. It still says nothing about the required `area` parameter beyond what the schema documents.

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?

"Set event scripts on an area's ARE file" names a specific verb and resource, and the mention of ARE file scopes it to areas rather than modules. It stops short of explicitly contrasting with the sibling set_module_scripts, but an agent can infer the area vs. module distinction from the wording.

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 description gives one actionable usage rule — pass an empty string to clear a script — which is genuinely helpful. It does not say when to choose this tool over set_module_scripts or set_area_properties, nor whether partially specified calls are valid.

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