Skip to main content
Glama

disassemble_script

Read-onlyIdempotent

Disassembles compiled NWScript (.ncs) bytecode from a script resref, revealing instructions for inspection and debugging.

Instructions

Disassemble compiled NWScript (.ncs) bytecode.

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": "disassemble_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
resrefYesScript resref without extension

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so safety is covered. Beyond that the description adds nothing — no indication of output shape (no output schema exists), whether disassembly can fail on non-compiled or missing resrefs, or how large a decompiled listing might be.

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?

One short sentence, front-loaded with the action and scoped by file extension. Nothing extraneous and nothing buried.

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 one-parameter read-only tool this is minimally adequate and annotations cover the safety profile. However, with no output schema the description should have sketched the return value (e.g., text disassembly) and one line on failure modes for a malformed or missing .ncs.

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?

There is a single required parameter with 100% schema description coverage ("Script resref without extension"), so the schema carries the semantics. The description adds no format examples or resolution notes, making the baseline 3 appropriate.

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 states a specific verb ("disassemble") and resource ("compiled NWScript (.ncs) bytecode"), so an agent can tell this apart from compile_script or read_script_source by the word "compiled." It stops short of explicitly naming the sibling it contrasts with, so it does not reach the top of the scale.

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?

No when-to-use or when-not-to-use guidance is given. The description does not say to prefer read_script_source for source files or compile_script for the reverse direction; the only signal is implied by the word "compiled," which is left for the agent to infer.

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