Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_stamp

Sign an Excel workbook with a tamper-evident cryptographic stamp that records check results, verification time, and content integrity.

Instructions

Use this when you need to sign a workbook with a cryptographic integrity-verification stamp — which checks it passed, when, tamper-evident.

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>",
      "checks": "<checks>"
    },
    "name": "xlsx_stamp"
  }
}

Input Schema

NameRequiredDescriptionDefault
checksYesArray of named checks, each with passed/failed/skipped status. These are the factual claims the stamp attests to.
out_pathNoOptional: write the stamped workbook to this absolute path. If omitted, the stamped bytes are returned in _meta.file_b64 only.
file_pathYesAbsolute path to the .xlsx file to stamp.
exclude_sheetsNoOptional: sheet names to exclude from the content hash. Use for scratch tabs that legitimately change without affecting attestation.
supervisor_versionNoOptional: xlsx-supervisor version string to include in the stamp's generated_by claim (e.g., "xlsx-supervisor@1.4.0").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv4.3.1
    • addedInput schema / properties / checks / description
      Added value: +"Array of named checks, each with passed/failed/skipped status. These are the factual claims the stamp attests to."
    • addedInput schema / properties / checks / items / properties / detail / description
      Added value: +"Optional explanation, especially for failed/skipped status."
    • removedInput schema / properties / checks / items / properties / detail / maxLength
      Removed value: -1024
    • addedInput schema / properties / checks / items / properties / id / description
      Added value: +"Stable check identifier (e.g., \"tieouts_consistent\")."
    • removedInput schema / properties / checks / items / properties / id / maxLength
      Removed value: -128
    • removedInput schema / properties / checks / items / properties / id / minLength
      Removed value: -1
    • addedInput schema / properties / checks / items / properties / name / description
      Added value: +"Human-readable check name."
    • removedInput schema / properties / checks / items / properties / name / maxLength
      Removed value: -256
    • removedInput schema / properties / checks / items / properties / name / minLength
      Removed value: -1
    • removedInput schema / properties / checks / maxItems
      Removed value: -200
    • removedInput schema / properties / checks / minItems
      Removed value: -0
    • addedInput schema / properties / exclude_sheets / description
      Added value: +"Optional: sheet names to exclude from the content hash. Use for scratch tabs that legitimately change without affecting attestation."
    • removedInput schema / properties / exclude_sheets / items / maxLength
      Removed value: -128
    • removedInput schema / properties / exclude_sheets / maxItems
      Removed value: -100
    • removedInput schema / properties / file_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Absolute path to the .xlsx file to stamp.",
      +  "type": "string"
      +}
    • removedInput schema / properties / generated_by
      Removed value: -{
      -  "properties": {
      -    "npm": {
      -      "maxLength": 128,
      -      "type": "string"
      -    },
      -    "supervisor": {
      -      "maxLength": 128,
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / out_path
      Added value: +{
      +  "description": "Optional: write the stamped workbook to this absolute path. If omitted, the stamped bytes are returned in _meta.file_b64 only.",
      +  "type": "string"
      +}
    • addedInput schema / properties / supervisor_version
      Added value: +{
      +  "description": "Optional: xlsx-supervisor version string to include in the stamp's generated_by claim (e.g., \"xlsx-supervisor@1.4.0\").",
      +  "type": "string"
      +}
    • removedInput schema / properties / workbook_handle
      Removed value: -{
      -  "maxLength": 128,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "checks"
      -]New value: +[
      +  "file_path",
      +  "checks"
      +]
  2. First observedv3.2.1

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare non-read-only, non-destructive behavior. The description adds useful behavioral context by explaining that the stamp is cryptographic, tamper-evident, and attests to checks with timing. However, it does not clarify side effects such as whether the original workbook is modified or a new stamped artifact is produced.

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?

The description is a single front-loaded sentence with no filler. The dash construction is slightly awkward, but the key action and purpose appear immediately.

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?

Given five parameters, rich schema descriptions, and annotations, the definition is adequate but not complete for an agent. It omits the relationship to xlsx_verify_stamp and does not explain the stamped output path behavior, though the input schema covers that parameter.

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 documents all five parameters thoroughly. The description reinforces the concept that checks are attested by the stamp but adds no syntax, format, or usage details beyond the schema 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?

States a specific verb and resource: signing a workbook with a cryptographic integrity-verification stamp. It also hints at the stamp's semantics (checks passed, timestamp, tamper-evidence). It does not explicitly distinguish the tool from the sibling verifier xlsx_verify_stamp, so it falls short of a 5.

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?

The opening 'Use this when you need to sign a workbook' gives a basic usage context, but it largely restates the action. It does not explain when to stamp versus when to verify an existing stamp with xlsx_verify_stamp, nor any prerequisites or exclusions.

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