Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

create_pivot_table

Destructive

Summarize Excel data into a checked pivot-style table by grouping rows, optional columns, and aggregated values from one locked workbook version; replace existing outputs only when explicitly allowed.

Instructions

Create a checked pivot-style summary from one locked workbook version.

Source/output limit: 250000 cells each. Exact integer results must round-trip;
computed floats use standard-writer precision. Existing output requires
replace_existing=True; case-insensitive name collisions are refused.

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>",
      "data_range": "<data_range>",
      "rows": "<rows>",
      "values": "<values>"
    },
    "name": "create_pivot_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYes
valuesYes
columnsNo
agg_funcNosum
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
data_rangeYes
sheet_nameYes
replace_existingNo

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.3/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true, so the description carries the load and does add real behavior: 250,000-cell source/output ceilings, integer round-trip and float precision semantics, and refusal of case-insensitive name collisions. It stops short of saying what an existing output is replaced with (sheet vs. workbook scope), which is the main gap for a destructive tool.

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?

Four tight sentences, front-loaded with purpose before limits and then the replace rule. Some phrasing such as 'checked' and 'standard-writer precision' is jargon that costs a little clarity for the space it takes.

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

Completeness2/5

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

For an 8-parameter, 5-required destructive tool with no output schema, the description covers limits and replace semantics but omits the meaning of the core shaping parameters (rows, values, columns, agg_func). An agent could still misfire on how the pivot is composed.

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 13%, with just filepath documented, so the description must compensate and largely does not. It clarifies replace_existing's conditional use but leaves rows, values, columns, agg_func (default 'sum', no supported-function list), data_range, and sheet_name uninterpreted.

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: 'Create a checked pivot-style summary from one locked workbook version.' That is clearly distinguishable from create_chart or create_table, though it never names a sibling to route against.

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?

Gives one concrete invocation rule, 'Existing output requires replace_existing=True,' which implies when the flag matters. However, nothing says when to choose this over aggregate_table or query_table, and no when-not guidance is offered.

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