Skip to main content
Glama

set_area_properties

Idempotent

Change a Neverwinter Nights area's lighting, fog, music, ambient sounds, weather, skybox, and day/night cycle using its resref.

Instructions

Modify area properties: lighting, fog, music, ambient sounds, weather, skybox, day/night cycle. Music/ambient values are IDs from ambientmusic.2da / ambientsound.2da.

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_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYesArea resref
skyBoxNoSkybox ID (0=none, 1=grass, etc.)
isNightNoSet area to nighttime
musicDayNoDay music ID (from ambientmusic.2da)
windPowerNoWind power (0=calm, 1=light, 2=strong)
chanceRainNoRain chance % (0-100)
chanceSnowNoSnow chance % (0-100)
musicNightNoNight music ID
fogClipDistNoFog clip distance (float)
musicBattleNoBattle music ID
sunFogColorNoSun fog color (dword, RGB packed)
moonFogColorNoMoon fog color (dword, RGB packed)
sunFogAmountNoSun fog amount (0-255)
ambientSndDayNoDay ambient sound ID (from ambientsound.2da)
dayNightCycleNoEnable day/night cycle
moonFogAmountNoMoon fog amount (0-255)
ambientSndNightNoNight ambient sound ID
chanceLightningNoLightning chance % (0-100)
sunAmbientColorNoSun ambient color (dword, RGB packed)
sunDiffuseColorNoSun diffuse color (dword, RGB packed)
ambientSndDayVolNoDay ambient volume (0-100)
moonAmbientColorNoMoon ambient color (dword, RGB packed)
moonDiffuseColorNoMoon diffuse color (dword, RGB packed)
ambientSndNightVolNoNight ambient volume (0-100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

C2.9/5.0
Behavior2/5

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

The only annotation is idempotentHint=true, so the description carries almost the full behavioral burden for a 24-parameter mutation. It never says whether omitted properties are left untouched or reset to defaults, what is overwritten/destroyed, what permissions or state are required, or what happens on an invalid area resref. The only real behavioral addition is naming the 2DA tables that supply music/ambient IDs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the purpose front-loaded and the data-source hint trailing. The category list is somewhat redundant with the 24 schema properties, but it works as a scannable overview rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 24-parameter setter with no output schema and only an idempotency annotation, the description is too thin: partial-update semantics, required preconditions, and failure behavior are all absent. Those are the exact details an agent needs before issuing a broad mutation that touches lighting, weather, and audio at once.

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 is already documented, including the ambientmusic.2da/ambientsound.2da sources that the description repeats. The description adds no encoding or unit detail beyond the schema (e.g., how packed RGB dwords or string-typed numeric fields should be formatted).

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+resource ("Modify area properties") and enumerates the concrete property families it covers (lighting, fog, music, ambient sounds, weather, skybox, day/night cycle), which lets an agent tell it apart from script-related siblings like set_area_scripts. It stops short of explicitly contrasting itself with any named sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no statement of prerequisites (must the area exist / be loaded, does a module need to be open?), and no mention of alternatives for other area-editing tasks. The agent must infer usage entirely from the tool name and property list.

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