Skip to main content
Glama

Create summary table

create_summary_table
Destructive

Group rows and aggregate columns into a static summary table, similar to a pivot table, using sum, average, count, min, or max, and write results as cells.

Instructions

Group rows and aggregate columns, like a pivot table, writing the result as cells.

The result is a static table (not an Excel PivotTable) and does not update when the source changes. Only numeric values are summed, averaged or compared; 'count' counts non-empty cells. Formula cells are not evaluated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to an .xlsx, .xlsm, .xltx or .xltm file. Relative paths are resolved in the server's workbook directory when one is configured; otherwise use an absolute path.
sheetYesWorksheet name, e.g. 'Sheet1'.
valuesYesHeader names to aggregate.
group_byYesHeader names to group by.
target_cellNoA single cell in A1 notation, e.g. 'B2'.A1
source_rangeYesA cell or rectangular range in A1 notation, e.g. 'A1:D20'.
target_sheetYesWorksheet name, e.g. 'Sheet1'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the output is static and does not update when the source changes, only numeric values are summed/averaged/compared, count counts non-empty cells, and formula cells are not evaluated. It does not state that existing content at target_cell/target_sheet is overwritten, which is the one behavioral gap.

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

Conciseness5/5

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

Three sentences, front-loaded with the core operation, then the static/non-updating caveat, then the aggregation semantics. No filler and every sentence carries distinct information.

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?

An output schema exists, so return values need no explanation, and the description covers the aggregation behavior and the staleness trait thoroughly. It is slightly short of complete because it omits what happens to pre-existing content at the target location and any required conditions on the source range.

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?

Schema coverage is 100%, so the baseline is 3; the schema already documents path, sheet, source_range, target_cell, target_sheet, group_by and values. The description nevertheless adds real meaning about the 'values' aggregation semantics — which aggregation functions apply to numeric vs non-empty cells and that formulas are ignored — clarifying behavior the enum alone does not convey.

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 ('Group rows and aggregate columns... writing the result as cells') with an analog ('like a pivot table') that makes the operation immediately graspable. It clearly distinguishes the tool from siblings such as create_table and create_chart by specifying that it produces a static aggregated result rather than a table object or a visual.

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 description implies the use case (grouping and aggregating into a summary) and clarifies it is not an Excel PivotTable, which hints at when to prefer it. However, it never states when to use this versus create_table, write_range, or a live pivot, nor does it mention prerequisites such as existing source data. Usage is inferable but not spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.