Skip to main content
Glama

load_module

Idempotent

Loads and indexes a Neverwinter Nights .mod file, resolving a filename from the user modules directory, so other tools can inspect or modify module content.

Instructions

Load and index a NWN module (.mod) file. Must be called before using other tools. If just a filename is given (e.g., 'mymod.mod'), it is resolved from the NWN_FOLDER_USER/modules/ directory.

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": {
      "modPath": "<modPath>"
    },
    "name": "load_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
modPathYesModule filename (e.g., 'mymod.mod') or absolute path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4.4/5.0
Behavior4/5

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

The only annotation is idempotentHint=true, so the description carries most of the disclosure burden, and it does add real context: the tool indexes the module, it is a mandatory prerequisite step, and bare filenames are resolved against NWN_FOLDER_USER/modules/. It stops short of describing failure behavior (missing file, reloading an already-loaded module) or whether anything on disk changes, which keeps it from a 5.

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 action, followed by the prerequisite constraint and then the path nuance. Nothing is redundant and no sentence could be dropped without losing meaning.

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 one-parameter tool with no output schema and only an idempotency annotation, the definition covers what the tool does, when it must run, and how the path is resolved. Remaining gaps are error and reload semantics, which are minor but would be useful for an agent recovering from a failed load.

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 modPath description already covers accepted forms. The description still adds value by naming the resolution directory for the filename-only case, which the schema does not state, telling the agent exactly how relative input is interpreted.

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?

The definition opens with a specific verb and resource ('Load and index a NWN module (.mod) file') and immediately separates this tool from every sibling by declaring it a prerequisite: 'Must be called before using other tools.' An agent can tell this apart from create_module or get_module_info without opening any schema.

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?

It gives explicit ordering guidance ('Must be called before using other tools') and explains the two valid ways to supply a path. It does not name specific alternative tools or say when-not to use it, but for a prerequisite loader that context is barely applicable, so a 4 fits.

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