Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

rehearse_table_join

Read-only

Validates a read-only all-match join between two Excel tables before combining data, checking key matches and flagging duplicate or lost measure amounts without creating joined rows.

Instructions

Read-only all-match join preflight; never choose keys or allocate amounts.

Sources are {table_name, optional sheet_name}. Exact typed scalar keys; blank
keys never match, no trimming/coercion/case folding. One numeric measure_field
on the LEFT is checked for duplication/loss separately, even if net delta is
zero. Null measures count as zero and are reported. Tables exclude native
totals; hidden/filtered rows remain included. 50000 cells/64 columns per table.
Not cross_workbook_lookup's first-match behavior or proof of business grain.
No joined rows are materialized. Reuse both supplied paths unchanged.

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": {
      "left_filepath": "<left_filepath>",
      "right_filepath": "<right_filepath>",
      "left_source": "<left_source>",
      "right_source": "<right_source>",
      "left_key": "<left_key>",
      "right_key": "<right_key>",
      "measure_field": "<measure_field>"
    },
    "name": "rehearse_table_join"
  }
}

Input Schema

NameRequiredDescriptionDefault
left_keyYes
join_typeNoleft
right_keyYes
left_sourceYes
right_sourceYes
sample_limitNo
left_filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
measure_fieldYes
right_filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.16.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations supply only readOnlyHint=true, and the description is consistent with it while adding substantial behavior: no joined rows are materialized, blank keys never match and no trimming/coercion/case folding is applied, null measures count as zero, native totals are excluded but hidden/filtered rows stay included, and there is a 50000 cells/64 columns per table cap. It also flags a non-obvious rule — the LEFT measure_field is checked for duplication/loss separately even when the net delta is zero — which an agent could not infer from any structured field.

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?

Front-loaded with the identity and the hardest constraint (no key selection, no allocation), and nearly every clause carries a distinct rule with no padding. The telegraphic fragment style ('Exact typed scalar keys; blank keys never match, no trimming/coercion/case folding') is dense but readable, though a few fragments would land faster as full sentences.

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

Completeness4/5

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

For a 9-parameter, nested-object join tool with no output schema, the description covers the semantics that matter: join matching rules, measure-checking behavior, row/cell limits, and the fact that nothing is materialized. What is missing is what the preflight actually hands back — sample_limit implies sampled evidence rows, but the description never says what a report contains or how join_type changes results, leaving an agent to infer the return shape.

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

Parameters4/5

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

With only 22% schema description coverage across 9 params, the description does real work: it defines the left_source/right_source shape as {table_name, optional sheet_name}, pins down key matching semantics (exact typed scalars, blank never match), and constrains measure_field to a single numeric measure on the LEFT. join_type and sample_limit are never mentioned, leaving two enum-bearing parameters underexplained beyond their schema titles and defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read-only all-match join preflight') and immediately bounds it ('never choose keys or allocate amounts'). It explicitly names the sibling it is not — 'Not cross_workbook_lookup's first-match behavior' — so an agent can separate rehearsal-by-all-match from lookup-by-first-match without opening either schema.

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

Usage Guidelines4/5

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

The 'preflight' framing plus 'Reuse both supplied paths unchanged' tells the agent this is a dry run on already-resolved inputs, and the exclusion of cross_workbook_lookup and 'proof of business grain' rules out two misuses. It never states a positive triggering condition (e.g. 'call before executing a join') or what to do when the preflight reports duplication, so it stops short of explicit when/when-not/alternatives.

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