Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

update_rows_by_key

Destructive

Update existing spreadsheet rows by matching a named key column, with optional dry-run and change reporting to keep .xlsx edits controlled.

Instructions

Update existing table rows using a named key column.

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>",
      "key_column": "<key_column>",
      "updates": "<updates>"
    },
    "name": "update_rows_by_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
updatesYes
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
header_rowNo
key_columnYes
sheet_nameYes
include_changesNo
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.4/5.0
Behavior2/5

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

The annotations already declare destructiveHint=true, but the description does not explain what is destroyed or overwritten, how unmatched keys are handled, what dry_run does, or what include_changes and expected_structure_token control. For an 8-parameter destructive mutation, this leaves important behavior opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The sentence is concise and front-loaded, but it is too thin for a destructive tool with eight parameters. Conciseness is achieved at the cost of necessary detail.

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?

Given eight parameters, low schema coverage, destructive behavior, and no output schema, the description is not complete enough. It omits key semantics around updates structure, dry-run behavior, change reporting, and structure-token validation.

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

Parameters1/5

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

Schema description coverage is only 13%, and the description explains only the concept of a key column. It adds no meaning for updates, filepath, sheet_name, header_row, dry_run, include_changes, or expected_structure_token, leaving most parameters undocumented.

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 states a specific verb ('Update') and resource ('existing table rows') with the key mechanism ('using a named key column'). However, it does not distinguish this tool from nearby siblings such as upsert_excel_table_rows or apply_table_patch.

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 explicit guidance on when to use this tool versus alternatives, no mention of prerequisites, and no exclusions. The agent must infer its role from the name and sibling list.

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