Skip to main content
Glama

Where sales came from

traffic_sources
Read-only

Revenue and orders grouped by UTM source/medium/campaign, with conversion rate. Sales with no attribution roll up as "Direct" rather than being dropped. Also visitorSources: people (not page loads) by channel (Search, Social, AI assistants like ChatGPT and Claude, Email, Paid, Referral, Direct) and by source, each with the revenue its visits brought and revenue per visitor, from visitor tracking on the seller's checkouts and tracked websites (since).

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

Input Schema

NameRequiredDescriptionDefault
monthsNoHow many months back, 1-36. Default 12.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds genuinely useful behavior context beyond the annotations: unattributed sales are grouped as 'Direct' rather than dropped, visitor figures count people rather than page loads, and coverage is limited to tracking installed on checkouts and tracked websites since a given point. That tracking-coverage caveat is the kind of operational detail an agent would otherwise have to discover by trial.

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?

The first sentence is well front-loaded, but the second sentence is a long run-on that packs channels, source breakdown, revenue per visitor, tracking scope, and the 'since' qualifier into one breath. Every clause carries information, yet the structure makes it hard to parse quickly.

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 read-only analytics tool with no output schema, the description is largely complete: it explains the grouping dimensions, the attribution fallback, the visitor-level metrics, and the data source limitations. Missing are any indication of result shape or whether both datasets are always returned together, which would help an agent interpret the response.

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 both parameters (months, account) are fully documented in the schema, including range, default, and the 'leave it out for your own account' rule. The description adds nothing about parameters, which is acceptable given the schema already carries the load.

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 names the resource (revenue and orders grouped by UTM source/medium/campaign, plus visitorSources by channel and source) and what is measured (conversion rate, revenue per visitor). The purpose is clear, but the tool covers two distinct datasets in one run-on sentence, which blurs the core identity. Siblings like buyer_journey or affiliate_dashboard_link are not distinguished.

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 explicit statement of when to call this tool versus related tools such as buyer_journey, affiliate_dashboard_link, or funnel_stats. The only usage-like information is an internal handling rule ('sales with no attribution roll up as Direct'), which is about output semantics, not about when to choose this tool.

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.