Skip to main content
Glama
Shopify Analytics MCP Server

Shopify Analytics MCP Server

by DrMatrixx

get_sales_by_channel

Retrieve and compare revenue by sales channel such as Online Store, Shop app, and POS for a chosen period, so you can identify which channels drive sales.

Instructions

Get revenue breakdown by sales channel (Online Store, Shop app, POS, etc.).

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

Input Schema

NameRequiredDescriptionDefault
periodNoDate range (default: last_30d)
compare_toNoComparison: previous_period, previous_year, none (default: none)

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?

With no annotations supplied, the description carries the full disclosure burden, and it only implies read-only via the verb 'Get'. It never states the aggregation granularity (daily vs. period total), whether revenue is gross or net of refunds/discounts, or how compare_to alters the response — all material for interpreting results correctly.

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 front-loaded sentence with no wasted wording, appropriately sized for a two-optional-parameter read tool. The trailing 'etc.' is slightly loose but not harmful.

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?

For a simple aggregation tool with 100% schema coverage and no output schema, the description is minimally viable. It is missing metric definitions and aggregation granularity, which an agent needs to present revenue figures accurately.

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%, and the schema itself documents period (default last_30d) and compare_to (previous_period, previous_year, none). The description adds no syntax, format, or semantics 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Get revenue breakdown by sales channel') and parenthesizes concrete channel examples (Online Store, Shop app, POS), so an agent knows exactly what data comes back. It stops short of distinguishing itself from siblings like get_sales_summary or get_sales_by_geography, but the resource is unambiguous enough to separate them.

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 channel breakdown is preferable to get_sales_summary or run_shopifyql, no prerequisites, and no exclusions. The intent is only weakly inferable from the title of the resource being fetched.

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