Skip to main content
Glama

Get a sales report

report_get
Read-onlyIdempotent

Download a synthetic HTML sales report for a given period. Period logic: omit all date fields to get yesterday's report; provide y only for a full-year report; y + m for a full-month report; y + m + d for a specific day. Returns an HTML summary including total revenue, number of orders, breakdown by department, VAT summary, and payment methods.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "report_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
dNoDay of month (1–31); omit for full-month report
mNoMonth (1–12); omit for full-year report
yNoYear (e.g. 2024); omit for current year

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description is not needed for the safety profile. It adds useful context beyond that: the output is a synthetic HTML report whose contents are enumerated (revenue, orders, department breakdown, VAT, payment methods) and the default behavior when no dates are supplied.

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?

Front-loaded with the action and resource, then a single compact sentence covering all four period modes, then the return contents. No wasted wording and easy to scan.

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?

There is no output schema, but the description compensates by listing what the HTML contains and how the period resolves. The only small gap is that it does not clarify whether the result is a file/link or inline HTML, given the 'Download' framing.

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 coverage is 100% and each field already documents its range and what omission means, so the baseline is 3. The description's combo logic (y+m+d layering) adds some meaning the individual field descriptions do not convey on their own, but it largely restates the schema.

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?

States a specific verb and resource: 'Download a synthetic HTML sales report' scoped to a period. The HTML/file framing implicitly distinguishes it from the async export and summary siblings, but no sibling is named or explicitly contrasted, so it falls short of the top mark.

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?

Gives an explicit decision rule for the tool's modes: omit all dates for yesterday, y alone for a year, y+m for a month, y+m+d for a day. It does not say when to choose this over sales_summary or export_sales_async, so it gives clear context without exclusions.

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