Skip to main content
Glama
angelscript-mcp

angelscript-mcp

Rename a symbol

angelscript_rename_symbol
Destructive

Rename an AngelScript class, function, method, or field across all usages, previewing edits by default and writing them to disk when apply is enabled.

Instructions

Rename a script class, function, method or field everywhere it is used. By default this only previews the edits (apply=false). Set apply=true to write the files. Host API names cannot be renamed. Run angelscript_check afterwards.

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": {
      "symbol": "<symbol>",
      "new_name": "<new_name>"
    },
    "name": "angelscript_rename_symbol"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNofalse previews the edits, true writes them to disk.
symbolYesQualified name, bare name, or 'path/to/file.as:LINE'.
new_nameYesThe new identifier.
response_formatNo'markdown' (default) is compact text for reading. 'json' returns structured data.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=false, and the description usefully adds the preview-by-default safety mechanism and the host-API exclusion that would otherwise cause silent failures. It does not say what a preview returns, whether ambiguous matches abort the rename, or which files get touched.

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?

Four short, front-loaded sentences with no filler; the mutating default-vs-apply distinction leads immediately. Slightly terser phrasing on the follow-up step could tighten it further.

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 destructive rename with no output schema, the definition covers the safety profile, the host-API exclusion, and the verification follow-up. It stops short of describing the preview payload or failure modes, which an agent would want before committing a write.

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 the schema already explains apply, symbol formats, and response_format. The description restates the apply semantics without adding format detail or examples beyond what the schema provides.

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 description states a specific verb (rename) and resource set (script class, function, method, field) with the scope 'everywhere it is used', which is unmistakably distinct from sibling tools such as angelscript_find_symbol or angelscript_check.

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 operating conditions: preview is the default, apply=true commits, host API names are excluded, and angelscript_check should follow. What's missing is routing guidance for the pre-step (e.g., using angelscript_describe_symbol or find_references to confirm the target) before renaming.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.