Skip to main content
Glama

shop_analytics

Read-onlyIdempotent

Retrieve ShopNex store analytics for a chosen period: sales, orders, average order value, returning customer rate vs previous period, daily trends, top products, and unpaid/unfulfilled queues.

Instructions

Retrieve ShopNex store analytics overview (/api/v1/admin/analytics/overview): sales, order count, average order value, returning customer rate vs. the previous period, daily series, top 5 products, and unfulfilled/unpaid attention queues. Requires read_orders scope.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLength of the reporting window in whole days ending today (1-365, default 30).
timezoneNoIANA timezone used to slice daily boundaries (for example "UTC" or "Europe/Berlin").UTC

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the bar is lower. The description still adds real value by disclosing the required read_orders scope and by describing the shape of the result, including prior-period comparison and unfulfilled/unpaid attention queues, which the annotations do not convey.

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?

A single dense sentence that front-loads the action and resource, followed by the return contents and the scope requirement in order of importance. No filler, though the metric enumeration makes it longer than strictly minimal.

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 usefully enumerates what comes back, and it notes the required scope for a read tool on an admin endpoint. The only gap is guidance on when to choose this over sibling list tools, which is minor given the clear 'overview/aggregate' 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 description coverage is 100%, with both days and timezone fully documented in the schema (range, default, IANA format). The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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 verb (Retrieve) and resource (ShopNex store analytics overview), names the exact endpoint, and enumerates the returned metrics including comparison to the previous period and attention queues. That distinguishes it clearly from the sibling list-style tools such as list_orders or list_products.

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?

The description implies its use case by describing an aggregated overview with prior-period comparison, which contrasts implicitly with the raw list siblings. However, it never explicitly says when to prefer this over list_orders plus manual aggregation, and there are no stated exclusions or preconditions beyond the scope.

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