Skip to main content
Glama
WilliamSmithEdward

xlide-excel-word-powerpoint-access-office-vba-mcp

Rename module

xlide_rename_module
DestructiveIdempotent

Rename a VBA module in an Office file (not document modules like ThisWorkbook) and save changes. Procedure calls are not rewritten; search for the old name first.

Instructions

Renames a VBA module everywhere its name is stored, and saves the file. Calls to the module's procedures elsewhere in the project are not rewritten; search for the old name first with xlide_search_modules. Document modules such as ThisWorkbook and Sheet1 cannot be renamed, because the host owns them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_nameYesNew name. A valid VBA identifier.
file_pathYesAbsolute path to the Office file.
module_nameYesModule to rename.
allow_protectedNoPermit saving a password-protected VBA project. Set true only after the user agrees.
allow_invalidate_signatureNoPermit saving a change that removes the VBA project's digital signature, where applicable. Set true only after the user agrees.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.2
    • changedInput schema / properties / allow_invalidate_signature / description
      Previous value: -"Ask the user first."New value: +"Permit saving a change that removes the VBA project's digital signature, where applicable. Set true only after the user agrees."
    • changedInput schema / properties / allow_protected / description
      Previous value: -"Ask the user first."New value: +"Permit saving a password-protected VBA project. Set true only after the user agrees."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare the mutation/destructive profile, and the description adds a genuinely non-obvious behavioral trait: procedure calls elsewhere in the project are NOT rewritten, so a rename can break references. It also states that the file is saved and that host-owned document modules are immutable.

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 sentences, each front-loaded with the operation, the reference-rewrite caveat, and the document-module restriction. No filler.

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

Completeness5/5

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

For a mutating rename with an output schema present, the description covers the surprising semantics (unrewritten call sites), the save side effect, the prerequisite search step, and the hard restriction. Nothing needed to call it safely is missing.

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%, including the safety-gated allow_protected and allow_invalidate_signature flags, so the schema carries parameter meaning. The description adds nothing about argument syntax or constraints beyond what the schema documents — the baseline 3 for fully-covered schemas.

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?

States a specific verb and resource ('Renames a VBA module') plus the precise scope ('everywhere its name is stored, and saves the file'), which distinguishes it from xlide_write_module, xlide_edit_module, and xlide_delete_module in the sibling list.

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?

Gives a concrete prerequisite ('search for the old name first with xlide_search_modules') and a clear exclusion ('Document modules such as ThisWorkbook and Sheet1 cannot be renamed, because the host owns them'). It does not, however, contrast rename against edit_module/write_module, which could also change a module name.

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