Skip to main content
Glama
Shopify Analytics MCP Server

Shopify Analytics MCP Server

by DrMatrixx

get_sales_by_geography

Retrieve a revenue breakdown by country, region, or city for a selected period, so you can identify which geographic markets drive sales.

Instructions

Get revenue breakdown by country, region, or city.

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_sales_by_geography"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default: 20)
periodNoDate range (default: last_30d)
group_byNoGeographic grouping (default: country)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and does very little with it. It does not state that the operation is read-only, does not describe the return shape (country/region/city rows with a revenue column), and says nothing about ordering, currency, aggregation rules, or empty-result behavior.

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 well-formed sentence with the resource and grouping dimensions front-loaded; nothing is wasted. It is arguably over-terse rather than padded, so brevity is not the problem.

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

Completeness2/5

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

With no output schema and no annotations, the description is the only place an agent could learn what comes back and how it is shaped, and it omits that entirely. For a three-parameter analytics tool, a caller still cannot tell what a response looks like or how rows are ordered.

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 three parameters (limit, period, group_by) are already documented with defaults and an enum. The description restates the group_by options but adds no meaning beyond the schema, which is the baseline case.

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 and resource ('Get revenue breakdown') plus the exact dimensions supported ('by country, region, or city'), which aligns with the group_by enum. It is distinguishable from get_sales_by_channel by the geographic scope, but the description never names or contrasts any sibling, so the differentiation is inferred rather than stated.

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, no mention of when to prefer get_sales_summary or get_sales_by_channel, and no prerequisites or exclusions. The intended use is only loosely implied by the phrase 'revenue breakdown by country, region, or city'.

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