Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

upsert_excel_table_rows

Destructive

Update existing rows in a native Excel table and append rows for missing key values, enabling synchronized table data in one upsert operation.

Instructions

Update matching rows in a native Excel table and append missing keys.

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>",
      "table_name": "<table_name>",
      "key_column": "<key_column>",
      "rows": "<rows>"
    },
    "name": "upsert_excel_table_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYes
dry_runNo
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
key_columnYes
sheet_nameNo
table_nameYes
include_changesNo
allow_structure_changeNo
expected_structure_tokenNo

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

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, and the description is consistent with that. However, it discloses nothing about the safety machinery in the schema: dry_run preview, allow_structure_change, and expected_structure_token are all opt-in behaviors an agent must know about before mutating a workbook. For a destructive 9-param mutation, that is a major omission.

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; the core behavior leads. It is concise to the point of under-specification, but that is penalized in other dimensions rather than here.

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?

Nine parameters, 11% schema coverage, no output schema, and a destructive annotation — the description supplies none of the guardrail or key-matching context an agent needs to call this safely. Substantially incomplete for the tool's complexity.

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 11% — only filepath is documented. The description alludes to key-based matching but never names key_column, and says nothing about rows shape, dry_run, sheet_name, include_changes, allow_structure_change, or expected_structure_token. With 8 of 9 parameters undocumented, the description fails to compensate.

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+resource pair ('Update matching rows in a native Excel table') and adds the upsert twist ('append missing keys'), which meaningfully separates it from append_excel_table_rows and update_rows_by_key. It stops short of naming those siblings explicitly, so an agent must infer the distinction from the word 'upsert'.

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 upsert semantics imply when to use it (mixed insert/update workloads), but there is no explicit when-not or pointer to append_excel_table_rows / update_rows_by_key for the pure-append or pure-update cases. Usage is inferable rather than stated.

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