Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_macros

Read-onlyIdempotent

Inspect .xlsm/.xlsb workbooks to detect VBA macros, report module sizes and likely module names, and return a short safety note.

Instructions

Use this when you need to inspect an xlsm/xlsb workbook for VBA macro presence, module size, and likely module names, with a short safety note.

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": {
      "file_path": "<file_path>"
    },
    "name": "xlsx_macros"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the .xlsx / .xlsm / .xlsb file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv4.3.1
    • removedInput schema / properties / file_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Absolute path to the .xlsx / .xlsm / .xlsb file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv3.2.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered structurally. The description adds what it reports (module size, probable module names) but the trailing "with a short safety note" is unexplained — an agent cannot tell what that note contains or when it appears.

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 a clear trigger clause and no filler. The trailing "with a short safety note" is tacked-on and vaguer than the rest, which slightly dilutes the otherwise tight phrasing.

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 single-parameter read-only inspection tool with no output schema, the description adequately conveys the return content (macro presence, module size, module names). The only real gap is the undefined "safety note", which leaves part of the expected response opaque.

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?

Only one parameter, and the schema description covers it at 100%, including the important instruction to pass the path as-is without reading or base64-encoding the file. The description adds nothing about the parameter beyond what the schema already states, so baseline 3 applies.

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?

States a specific verb (inspect) and resource (xlsm/xlsb workbook) and names the concrete outputs: VBA macro presence, module size, and likely module names. That is enough to separate it from generic profiling siblings like xlsx_describe, though it never says so explicitly.

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?

Opens with an explicit trigger, "Use this when you need to inspect...", scoped to macro-enabled formats. It gives no when-not conditions or named alternatives (e.g., for plain .xlsx workbooks), so it stops short of full routing guidance.

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