Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

aggregate_table

Read-only

Compute grouped metrics over worksheet-shaped data or a native Excel table, using filters, sorting, and row limits to summarize spreadsheet records.

Instructions

Compute grouped metrics over worksheet-shaped data or a native Excel table.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
filtersNo
metricsNo
sort_byNo
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
group_byNo
row_modeNoarrays
sort_descNo
header_rowNo
sheet_nameNo
table_nameNo
infer_schemaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.5
    • addedInput schema / properties / row_mode / enum
      Added value: +[
      +  "arrays",
      +  "objects"
      +]
  2. 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."
  3. First observedv0.8.0

TDQS

C2.7/5.0
Behavior2/5

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

The readOnlyHint=true annotation is consistent with 'compute,' so there is no contradiction. Beyond safety, however, the description adds almost no behavioral context: it does not explain default aggregation behavior, how metrics or filters are structured, whether sheet_name and table_name are mutually exclusive, or what happens when grouping fields are absent.

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?

The single sentence is front-loaded and free of filler, so every word earns its place. Its terseness is appropriate for conciseness, although the missing detail is penalized under contextual completeness 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?

For a 12-parameter tool with only 8% schema description coverage and no output schema, this description is far too thin. It gives the broad purpose but leaves an agent unable to correctly populate most parameters or understand key behavioral distinctions without opening the schema and guessing.

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 8%, so the description must compensate for 12 largely undocumented parameters. It only indirectly implies group_by, metrics, and the worksheet-vs-table source choice; it says nothing about filters, sort_by, sort_desc, limit, row_mode, header_row, or infer_schema, nor about the object shapes expected for metrics and filters.

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 and resource: compute grouped metrics over worksheet-shaped data or a native Excel table. An agent can understand the core operation, but it does not distinguish this tool from siblings such as create_pivot_table, query_table, or bulk_aggregate_workbooks.

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 when-to-use or when-not-to-use guidance. The description never mentions alternatives or the conditions that select aggregate_table over query_table, create_pivot_table, or bulk_aggregate_workbooks, leaving routing entirely to inference.

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