Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

apply_formula

Destructive

Validate and write a formula into an Excel cell, then verify its serialized text before saving. Rejects unsafe functions, lossy text, and protected workbook saves.

Instructions

Apply a validated formula and verify its serialized text before saving. Maximum 8192 UTF-16 units; lossy text and unsafe functions are refused. Does not calculate formulas. Protected XLSX loss blocks the save.

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": {
      "filepath": "<filepath>",
      "sheet_name": "<sheet_name>",
      "cell": "<cell>",
      "formula": "<formula>"
    },
    "name": "apply_formula"
  }
}

Input Schema

NameRequiredDescriptionDefault
cellYes
formulaYes
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
sheet_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • addedInput schema / properties / filepath / description
      Added value: +"Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing."
  2. First observedv0.8.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the lone destructiveHint annotation, the description discloses hard constraints (8192 UTF-16 unit cap), refusal conditions (lossy text, unsafe functions), and a failure mode (protected XLSX loss blocks the save). It confirms the write/save behavior consistent with destructiveHint rather than contradicting it; only return behavior is unaddressed.

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?

Four short sentences, zero filler, and the core action plus verification step is front-loaded. Each sentence carries a distinct constraint or exclusion that an agent needs before calling.

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?

For a destructive, four-required-parameter write tool with no output schema and low schema coverage, the description covers validation and refusal behavior well but omits the expected validation prerequisite tool, target-cell semantics, and what is returned after a successful save.

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 coverage is only 25%, with just filepath documented in the schema. The description adds real meaning for the formula parameter (size limit, lossy text and unsafe-function rejection) but says nothing about cell or sheet_name semantics, leaving half the required inputs unexplained in both places.

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: applies a formula to a cell and verifies its serialized text before saving. The clause 'Does not calculate formulas' meaningfully separates it from calculation-oriented siblings such as explain_formula_cell or inspect_formula, though no sibling is named explicitly.

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?

'Apply a validated formula' implies a prerequisite validation step, and 'does not calculate formulas' implies a different tool for evaluation. However, no alternative is named and no explicit when-to-use/when-not statement is given, so the agent must infer routing from implications.

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