Skip to main content
Glama

Daily revenue and spend

get_series
Read-onlyIdempotent

Daily revenue and spend over the current period. byWeekday averages revenue per day of the week with how many of those days the span held: for 'which day sells most' read at least the last 90 days and quote it, never work it out. For one channel's revenue on a day, QUOTE platformRevenueByChannel: each platform's own claim per day, the figure the Plataforma trend chart draws. revenueByChannel is Nuira's own position-based credit from measured touchpoints (revenue with no paid touch under direct), a second opinion — quote it only when asked how Nuira attributes. Use when the question is about when something changed, about a trend or spike, or about one channel on a given day. spend is that day's total ad spend. For totals over the whole period use get_summary (all channels) or get_channels (per channel). Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.

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

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
fromNoFirst day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."New value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
    • changedInput schema / properties / to / description
      Previous value: -"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."New value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
  2. Changed2 schema fields changed
    • addedInput schema / properties / from / description
      Added value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."
    • addedInput schema / properties / to / description
      Added value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the read-only/idempotent/no-destructive profile, and the description adds genuinely new behavior: the default period resolution (operator's on-screen period, else last 30 days), the constraint that dates may never be after today, and an instruction to quote rather than compute byWeekday derived figures. It does not discuss pagination or limits, but for a 2-param read tool this is strong added context.

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?

Purpose is front-loaded, but the middle is dense and meandering, with emphasis shouts ('QUOTE', 'MUST', 'never work it out') and a long attribution digression. The default-period rule is restated in the description and again in both schema parameters, so a portion of the text does not earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-optional-parameter read tool with no output schema, the description covers selection criteria, alternatives, default-period behavior, date-span rules, and the meaning of the returned metric fields. An agent has enough to call this correctly and interpret the result without further context.

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?

Schema coverage is 100%, so the baseline is 3; the description adds a rule the schema does not state — that a named month, week, or two dates from the operator MUST be passed here or the tool silently reads the default period. The both-or-neither and never-after-today semantics are repeated from the schema rather than extended.

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?

Opens with a specific verb+resource+scope: 'Daily revenue and spend over the current period', and names the fields returned (byWeekday, platformRevenueByChannel, revenueByChannel, spend). It also distinguishes itself from get_summary and get_channels for whole-period totals. The purpose statement is somewhat buried under metric-interpretation rules, which slightly blurs the one-line answer.

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

Usage Guidelines5/5

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

Explicit when-to-use: 'when the question is about when something changed, about a trend or spike, or about one channel on a given day.' Explicit alternatives with their conditions: get_summary for all-channel totals, get_channels for per-channel totals. Also rules for which metric field answers which question and when to quote revenueByChannel only for attribution questions.

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