Skip to main content
Glama

Product performance

get_product_performance
Read-onlyIdempotent

Headline catalogue figures for the current period: product revenue, units sold, average order value, gross margin and how many SKUs are out of stock, each with the change against the previous period. Use first for any question about how the catalogue as a whole is doing. Gross margin comes back null when supplier costs are missing for some of the sales — say the margin is unknown rather than reporting it as zero. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.

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": "get_product_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
fromNoFirst day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."New value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
    • changedInput schema / properties / to / description
      Previous value: -"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."New value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
  2. Changed2 schema fields changed
    • addedInput schema / properties / from / description
      Added value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."
    • addedInput schema / properties / to / description
      Added value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/closed-world, yet the description adds substantive behavior: gross margin returns null when supplier costs are missing and must be reported as unknown rather than zero, and the default period resolves to the operator's on-screen period else the last 30 days. It does not describe return shape beyond the metric list, but no output schema exists to conflict with.

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?

Front-loaded with the returned metrics, then usage, then parameter rules, so an agent can stop reading early if it only needs purpose. The default-period rule is stated twice (once as parameter guidance, once as a warning about named months), which is mild redundancy justified by it being the main failure mode.

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?

With no output schema, the description competently covers what comes back (five named metrics plus a prior-period delta) and the one ambiguous value (null margin). For a two-optional-param read tool the remaining gaps, such as currency, rounding or granularity, are minor.

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 the two field descriptions already carry the inclusive YYYY-MM-DD format, the both-or-neither rule and the default-period fallback. The description largely restates that schema text; its only genuine addition is the routing rule that operator-named periods MUST be sent here rather than relying on the default.

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 resource (catalogue-level performance) and enumerates the exact metrics returned: revenue, units sold, average order value, gross margin, out-of-stock SKU count, each with period-over-period change. The phrase 'headline catalogue figures ... as a whole' separates it from drill-down siblings like get_product_momentum or get_product_trends without needing their 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?

'Use first for any question about how the catalogue as a whole is doing' gives an explicit entry-point rule, and the MUST-send rule for named months/weeks/date pairs is a clear usage condition. It stops short of naming a specific alternative to use for drill-down questions, so the agent must infer where to go next.

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