Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

explain_formula_cell

Read-only

Traces a formula cell's direct references, upstream formula chain, and downstream dependents to help users understand and debug spreadsheet calculations.

Instructions

Explain a formula cell's direct references, upstream formula chain, and downstream dependents.

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

Input Schema

NameRequiredDescriptionDefault
cellYes
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
max_depthNo
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

B3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description's burden is lower. It adds value by disclosing the analysis scope (direct refs plus upstream and downstream traversal), which is genuine context beyond the annotation. It says nothing about traversal cost on large workbooks, how cycles are handled, or what the explanation output looks like.

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 no filler, and the three analysis outputs are listed in a logical order. It is arguably undersized for a four-parameter traversal tool, but nothing in it is wasteful.

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?

With no output schema, the description must carry return-value information, and it does partially by naming the three result categories. It still leaves max_depth behavior, cycle handling, and output shape unspecified, which is a meaningful gap for a graph-traversal explainer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% – only filepath carries documentation. The description never mentions cell, sheet_name, or max_depth, so it fails to compensate. max_depth is especially consequential (it bounds the upstream chain walk) and is completely unexplained in both schema and description.

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?

The description names a specific verb (Explain) and resource (formula cell) and enumerates the three things it returns: direct references, upstream formula chain, downstream dependents. That is far more informative than the bare name. It does not, however, contrast itself against close siblings such as inspect_formula, analyze_range_impact, or detect_circular_dependencies, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus the many adjacent inspection tools in the sibling list. No prerequisites, no exclusions, and no alternative is named. The agent is left to guess between this and inspect_formula or detect_circular_dependencies.

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