Skip to main content
Glama

search_scripts

Read-onlyIdempotent

Search all NWScript (.nss) source files for a text pattern with optional case-sensitive matching to locate code or references.

Instructions

Search across all NWScript (.nss) source files for a text pattern.

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": {
      "pattern": "<pattern>"
    },
    "name": "search_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternYesText or pattern to search for
caseSensitiveNoCase-sensitive search (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds useful scope (all .nss files) but says nothing about whether the pattern is literal or regex, behavior on no matches, or any result limits, so it adds only modest value beyond the annotations.

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?

A single front-loaded sentence with the resource scope stated before the action target; nothing is redundant. It is arguably too terse rather than wasteful, which keeps it just below top marks.

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 simple two-parameter, read-only, no-output-schema tool with full schema coverage, the description conveys enough to call it correctly. The only meaningful omission is pattern-syntax semantics (literal vs. regex), a minor gap given the annotation and schema support.

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 both parameters (pattern, caseSensitive with its default) are already documented, which sets the baseline at 3. The description adds no clarification of pattern syntax (literal substring vs. regular expression), arguably the most important ambiguity for this tool, so it does not exceed the baseline.

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 gives a specific verb (search) plus a precise resource and scope: NWScript (.nss) source files, and narrows it to a text pattern. That distinguishes it from sibling searchers like search_2da, search_tlk, or resman_search, though it does not explicitly name those alternatives.

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?

Usage is only implied: 'across all NWScript source files' suggests this is the broad script-text search, versus more targeted siblings such as find_dialog_scripts or search_by_resref. There is no explicit when-to-use/when-not or routing statement telling the agent when to prefer this over another search tool.

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