Skip to main content
Glama

Read the sales trend

readSalesTrend
Read-onlyIdempotent

Daily revenue or order count over a period - for 'revenue trend', 'are sales going up', 'orders per day'. Zero-filled, aggregates only.

Only for a workspace with a store connected: listWorkspaces says which are stores.

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the range, YYYY-MM-DD, today at the latest; a range is two years at most
daysNoReporting window in days
fromNoFirst day of a custom range, YYYY-MM-DD. With `to`, it takes the place of `days`
metricNoWhich metric to chartrevenue
workspaceIdNoThe workspace, as listWorkspaces gives it (its id or slug). Leave it out when this connection reaches one workspace.

Output Schema

NameRequiredDescriptionDefault
metricYes
seriesYesOne point a day, oldest first, days without orders at 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish that this is a safe, read-only, idempotent operation. The description adds useful behavioral context beyond the annotations: results are zero-filled, aggregates only, and require a store-connected workspace.

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?

Two compact sentences, with the core purpose front-loaded and the prerequisite placed second. There is no redundant or wasted wording.

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

Completeness5/5

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

The description covers the key domain constraints for calling the tool, especially the store-connected prerequisite and aggregate/zero-filled behavior. With a full input schema and an output schema present, no further explanation of return values is needed.

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 documents all five parameters, including enums and date constraints. The description reinforces the revenue/orders choice and the period concept but does not add meaningful parameter syntax beyond 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?

The description states a specific resource and measure: daily revenue or order count over a period, with example user intents. It is clearly distinct from most sibling tools, but it does not explicitly contrast itself with nearby analytics tools such as readPerformance or readCustomerStats.

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?

It gives concrete use cases ('revenue trend', 'are sales going up', 'orders per day') and a clear prerequisite: only for workspaces with a connected store, checked via listWorkspaces. It lacks explicit when-not-to-use guidance or named alternatives for adjacent analytics questions.

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