Skip to main content
Glama

ordercloud.orders.generateReport

Generate an order report for a direction and date range, returning aggregated totals and status breakdowns from matching orders and worksheets.

Instructions

Search orders in a date range, fetch worksheets, and return aggregated metrics (totals, status breakdown)

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": {
      "direction": "<direction>"
    },
    "name": "ordercloud.orders.generateReport"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoFilter by order status
toDateNoEnd date (ISO 8601 or YYYY-MM-DD)
fromDateNoStart date (ISO 8601 or YYYY-MM-DD)
pageSizeNoMax orders to include
directionYesOrder direction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses that the tool performs a composite multi-step operation (search, then fetch worksheets, then aggregate), which is genuinely useful, but it omits the critical caveat that pageSize caps how many orders are aggregated (max 100), so metrics may be partial, and it does not state that the operation is read-only or what happens on large date ranges. This ambiguity about result completeness is significant for a reporting tool.

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 compact sentence that front-loads the operation and then states the output, with no filler or redundant restatement of the tool name.

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?

Because there is no output schema, the description usefully names the return shape (totals, status breakdown). However, for a 5-parameter aggregation tool with no annotations, it leaves the pagination-versus-aggregation interaction and read-only nature unexplained, so an agent cannot be sure whether the metrics cover all matching orders or only the first pageSize.

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 each parameter is already documented in the schema, and the description adds no syntax, defaults, or format guidance beyond mentioning the date range. The baseline of 3 applies when the schema does the heavy lifting.

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 uses specific verbs and resources ("Search orders", "fetch worksheets", "return aggregated metrics") and names the returned content (totals, status breakdown), which distinguishes it from plain sibling reads like ordercloud.orders.search or ordercloud.orders.getWorksheet. It stops short of explicitly naming those siblings as alternatives, so it is clear but not maximally differentiated.

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: an agent can infer this is the tool for aggregate reporting rather than raw order listing, but the description never states when to prefer it over ordercloud.orders.search or when to call getWorksheet directly. No exclusions or prerequisites are given.

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

Deploy Server

Other Tools