Skip to main content
Glama

build_report

Create a finished Excel report from spreadsheet data in one call: grouped, sorted summary metrics with live totals and chart, plus a filterable data sheet.

Instructions

Create a finished Excel report in one call: a Summary sheet (grouped metrics sorted by the first metric, a live-formula totals row, styled header, number formats, frozen header, chart) plus a filterable Data sheet.

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": {
      "source": "<source>",
      "output": "<output>",
      "group_by": "<group_by>",
      "metrics": "<metrics>"
    },
    "name": "build_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoOnly the top N groups (by the first metric).
sheetNoSheet name (or 0-based index). Default: first sheet.
titleNoReport / chart title.
whereNoOptional SQL filter, e.g. "Year = 2024".
outputYesReport file to create, e.g. 'sales_report.xlsx'.
sourceYesData file; for a specific sheet use 'book.xlsx#Sheet1' or the sheet parameter.
metricsYese.g. ['Revenue:sum', 'Units:avg', 'count'] (same syntax as aggregate).
group_byYesSummary rows, e.g. ['Region'].
overwriteNoReplace an existing report (a backup is kept).
chart_typeNoSummary chart.column
include_dataNoAdd a 'Data' sheet with the (filtered) rows.
number_formatNoNumber format for metrics, e.g. '#,##0.00' or '[$৳-845]#,##0.00' for BDT.#,##0.00

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint=false, destructiveHint=false, and idempotentHint=false, the description's job is to add context, and it does: it discloses the concrete side effects (a new .xlsx file containing two sheets, live formulas, a chart). It does not say whether the source file is left untouched or what happens when the output already exists without overwrite, but the overwrite parameter's own schema text covers the backup behavior. Solid disclosure for a build/mutate tool.

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 that leads with the verb and outcome, then unpacks the deliverables in a parenthetical list ordered by sheet. Nothing is filler. The nested parentheses and comma-separated feature list make it dense to parse in one pass, which keeps it just below top marks.

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 12-parameter, 4-required builder tool with no output schema, the description supplies the most important missing piece: the shape of the produced artifact, so the agent knows what it gets back without an output schema. Remaining gaps are modest — failure conditions (missing columns, unwritable path) and the source-file-immutability guarantee are unstated — but the schema covers most parameter-level behavior.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains all twelve parameters with examples, making 3 the baseline. The description adds one genuinely useful semantic detail the schema does not: sorting and the top-N cutoff are driven by the *first* metric, which clarifies the ordering contract between the metrics and top parameters. Beyond that it repeats the schema's content rather than extending it.

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 gives a specific verb and artifact ("Create a finished Excel report in one call") and enumerates exactly what the artifact contains: a Summary sheet with grouped metrics, a formula totals row, styling, chart, and a filterable Data sheet. That is far more informative than a name restatement. It stops short of a 5 because it never explicitly contrasts itself with siblings like aggregate or query, leaving the agent to infer that this is the 'do it all in one file' option.

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?

Usage is only implied: "in one call" hints that this replaces a multi-step aggregate-then-format-then-chart workflow, and the metrics parameter notes it uses "the same syntax as aggregate," which gestures at a sibling relationship. There is no explicit when-to-use / when-not-to-use guidance, no stated preconditions (e.g., source must be tabular), and no named alternatives for the case where the agent only wants computed values rather than a formatted file.

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