Skip to main content
Glama
TrafficOX-com

TrafficOX MCP Server

Official

RTB statistics

get_rtb_stats
Read-only

Fetch RTB statistics grouped by country, category, browser, ISP, platform, domain, day, or hour for an account or one feed, with optional subdimensions and feed splits.

Instructions

RTB statistics grouped by a dimension — for the whole account, or for one feed when feed_id is given. Terms groupings return 10 rows unless size is set. subdimension adds a nested sub breakdown to every row (must differ from group_by); feed splits rows per RTB feed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ispNoISP names
fromNoRow offset
sizeNoRows per page (default 10)
formatYesAd format
feed_idNoLimit to one feed (hex or numeric id)
date_endNoRange end. RFC3339 (`2026-01-15T00:00:00Z`) or `2026-01-15`, UTC. Defaults to today. Max range 60 days, max lookback 90 days.
group_byYes
platformNo
sub_sizeNoSub-rows per row (default 20, max 100)
countriesNoISO country codes, e.g. ["US", "DE"]
mobile_osNoMobile OS names
categoriesNoTraffic categories
date_startNoRange start. RFC3339 (`2026-01-15T00:00:00Z`) or `2026-01-15`, UTC. Defaults to today. Max range 60 days, max lookback 90 days.
desktop_osNoDesktop OS names
subdimensionNo
source_domainsNoSource (referrer) domains
mobile_browsersNoMobile browser names
desktop_browsersNoDesktop browser names

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description still adds behavior the annotations do not: implicit row caps (10 rows for terms groupings unless `size` is set) and the nested sub-breakdown shape produced by subdimension. It omits pagination behavior for `from`/`size` and any rate/limit notes.

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?

Three tight sentences, front-loaded with the primary scope decision (account vs. feed) before the secondary grouping behavior. The only friction is the odd phrase 'Terms groupings', which is undefined jargon and costs a little clarity without adding much length.

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 an 18-parameter, no-output-schema analytics tool, it covers the non-obvious axes: grouping dimension, optional feed narrowing, nested subdimension, and default row counts. Filter parameters (countries, browsers, OS, ISPs, date ranges) rely entirely on the 83%-covered schema, which is acceptable, though the date-range limits live only in schema descriptions.

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

Parameters4/5

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

Adds real meaning beyond the schema: it explains that feed_id narrows to a single feed, that subdimension must differ from group_by and injects a nested `sub` block into each row, and that `feed` splits rows per RTB feed. These semantics for subdimension/group_by interaction are not derivable from the enum lists alone.

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 verb+resource (RTB statistics) and precise scope: account-wide, or narrowed to a single feed when feed_id is given. Clearly distinct from sibling readers like get_rtb_feed (single feed details) and get_balance_stats (different metric family), so an agent can select it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It conveys scope conditions (whole account vs. one feed via feed_id, terms groupings default to 10 rows), which implies usage context, but never says when to prefer this over alternatives such as get_order_stats, get_rtb_feed, or list_rtb_feeds. No explicit when-not or alternative routing is provided.

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