Skip to main content
Glama

get_revenue_drivers

Diagnostic tool for 'why did revenue change?' questions. Bundles headline metric deltas, product mix shifts, and pre-generated ranked hypotheses into one call — so you don't have to stitch signals together yourself and risk asserting causation. Each hypothesis includes: what signal supports it, what else would be true if it's correct, and which tool to call next to confirm or rule it out. Use when the merchant asks why revenue went up or down, what's driving performance, or what changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
storeNoFilter to a specific store domain.
_offsetNoPagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page.
endDateNoEnd date (YYYY-MM-DD). Defaults to yesterday.
startDateNoStart date (YYYY-MM-DD). Defaults to a 30-day window.
comparisonNoComparison window. Default: previous (equivalent prior period).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses that output is pre-generated ranked hypotheses, each containing a supporting signal, a falsifiability check ('what else would be true'), and a next-tool recommendation, plus an explicit caution against asserting causation. It doesn't cover auth, rate limits, or pagination, but the causal-safety framing is meaningful context.

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

Conciseness5/5

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

Four tight sentences, front-loaded with the core purpose and followed by return-structure detail and trigger conditions. Every sentence carries distinct information; nothing is redundant.

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?

For a tool with no output schema and no annotations, the description does the heavy lifting by explaining what the return contains (ranked hypotheses with supporting signals and next steps). Combined with fully-documented params, an agent has enough to call it correctly, though the absence of any safety/auth profile leaves a minor gap.

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 the schema already documents all five parameters (store, dates, comparison enum, pagination offset). The description adds no syntax or format detail beyond the schema, 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 diagnostic purpose ('why did revenue change?') and enumerates exactly what it bundles: headline metric deltas, product mix shifts, and ranked hypotheses. It clearly differentiates itself from siblings like get_metrics_comparison or get_anomalies by positioning as the consolidated causal-diagnosis tool rather than a raw signal source.

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?

Gives explicit trigger conditions — 'Use when the merchant asks why revenue went up or down, what's driving performance, or what changed.' This clearly frames the when-to-use context. It stops short of naming a specific alternative tool or stating when-not to use it, which keeps it from a 5.

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