Skip to main content
Glama

Run Standard Report

run_standard_report
Read-only

Run one standard report by name (list_standard_reports lists them and the arguments each takes) and return its rows. Pass only the arguments that report lists; any other is refused. Examples: report=top_selling_items with topN=10 and periodDays=30; report=sales_margin with periodDays=90; report=inventory_position with sortBy=runway. At most 200 rows.

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": {
      "report": "<report>"
    },
    "name": "run_standard_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNotop_n: how many items.
limitNolimit: maximum rows.
metricNometric: units or revenue.
periodNoperiod: week, month or quarter (dead stock); day, week or month (matrix).
reportYesThe report's name from list_standard_reports, e.g. top_selling_items.
sortByNosort_by: runway or on_hand (inventory position).
groupByNogroup_by: warehouse or sku (total or category for the summary).
dateBasisNodate_basis: placed (default), completed or paid.
numPeriodsNonum_periods: how many periods the matrix shows.
periodDaysNoperiod_days: trailing window in days.
horizonDaysNohorizon_days: planning or runway horizon in days.
categoryNameNocategory_name: only items in this category.
warehouseNameNowarehouse_name: an exact warehouse name.
revenuePeriodDaysNorevenue_period_days: trailing revenue window (stockout risk).
excludeRawMaterialsNoexclude_raw_materials: leave out production materials.

Output Schema

NameRequiredDescriptionDefault
rowsNo
reportNo
summaryNo
rowCountNo
truncatedNo
executedAtNo
savedReportIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description only needs to add operational detail — and it does: unknown arguments are rejected outright and the result is capped at 200 rows. The refusal behavior and row ceiling are things an agent cannot learn from the annotations. What is missing is what happens on an invalid report name or how to page past the 200-row cap.

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?

Three tight sentences, front-loaded with the action and the discovery pointer, then the argument constraint, then examples. Nothing is wasted, though the example string is dense and slightly hard to scan as a single run-on clause.

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 15-parameter, one-required-argument tool with a full output schema and read-only annotations, the description supplies the missing pieces: how to find valid arguments, that the set is enforced, and the row ceiling. Pagination of that ceiling and error behavior for bad report names are the only gaps, and the output schema covers row structure.

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, but the description adds genuine cross-parameter meaning the schema cannot express: which arguments belong to which report (topN/periodDays for top_selling_items, periodDays for sales_margin, sortBy for inventory_position) and that the set is closed per report. That mapping is the crux of correctly invoking this tool with 15 optional parameters.

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 — 'Run one standard report by name ... and return its rows' — and immediately distinguishes itself from list_standard_reports, which is the enumeration tool. An agent can pick between the two without inspecting schemas.

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?

Explicitly routes the agent to list_standard_reports to discover report names and their accepted arguments, and warns that any argument not listed by that report is refused. Three concrete report/argument examples show typical pairings. It stops short of stating when to prefer run_saved_report or the analysis-specific siblings, but within its own family the guidance is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources