Skip to main content
Glama

HamroLink Business OS MCP Server

commerce.sales_report

Read-only

Aggregates historical store Orders into units sold, completed vs. cancelled orders, gross order value, received PAID revenue, pending revenue, and variant/size breakdowns.

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": "commerce.sales_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoOptional store Site ID
endDateNoOptional ISO end date
siteNameNoOptional store name
productIdNoOptional product ID filter
startDateNoOptional ISO start date
productNameNoOptional product name filter

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare read-only, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine value by naming the computed outputs (gross order value, received PAID revenue, pending revenue, variant/size breakdowns), which annotations cannot convey. However it omits operational behavior: default date window, whether all sites are aggregated when no siteId/siteName is given, and how the metric set behaves when filters 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.

Conciseness5/5

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

A single dense sentence that front-loads the verb and the returned metrics, with zero filler. Every clause maps to an actual output of the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does enumerate the metric groups, which is the right instinct. But for an aggregation tool with six optional filters and no required parameters, it should state what the default scope is when nothing is supplied; that gap matters for correct invocation.

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 all six parameters are already documented as optional filters, establishing the baseline of 3. The description adds nothing about parameter interaction, such as siteId vs siteName precedence or whether date bounds are inclusive, so it does not exceed 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 ("Aggregates") and a specific resource ("historical store Orders"), then enumerates the metrics produced. An agent can tell this is an analytical rollup rather than a raw order fetch, though it never names the sibling it differs from (e.g. commerce.order_list or analytics.get_summary).

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 when-to-use guidance at all: nothing says to prefer this over commerce.order_list for raw orders or over analytics.get_summary/bi.get_insights for other reporting. The agent must infer the division of labor from tool names alone.

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.