Skip to main content
Glama

getTrafficReport

Retrieve Shopify website traffic and visitor analytics for a date range, including sessions, unique visitors, page views, bounce rate, and traffic source breakdowns.

Instructions

Get website traffic and visitor analytics

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "startDate": "<startDate>",
      "endDate": "<endDate>"
    },
    "name": "getTrafficReport"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateYesEnd date (YYYY-MM-DD)
metricsNo
startDateYesStart date (YYYY-MM-DD)
dimensionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

C2.4/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 behavioral burden, and it discloses almost nothing. It doesn't state that results are read-only aggregates, how metrics aggregate by the selected dimensions, whether data is scoped to a shop or date-limited, or what a response looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with no filler is fine in form, but here the brevity is under-specification rather than efficiency. It is front-loaded with the correct verb but stops before any information that would help invocation.

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?

A four-parameter analytics tool with no annotations and no output schema needs the description to explain metric/dimension semantics and default behavior, and it does none of that. An agent could call it with valid-enum values and still get results it does not know how to interpret.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: startDate and endDate are described, but the metrics and dimensions arrays have only enum values with no explanation of what each metric means or how dimension grouping changes the output. The description adds no meaning beyond the schema and does not compensate for the undocumented half.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

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

The description names a verb and a resource ("Get website traffic and visitor analytics"), which is enough to know it's a reporting tool. It does not distinguish this from nearby reports such as getConversionReport, getMarketingReport, or getCustomerAnalytics, so the agent cannot tell which report answers which question.

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 prerequisites or the required date range, and no routing to alternatives. The only clue that a date range is mandatory lives in the schema, not the description.

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