Skip to main content
Glama

get_report_data

Read-only

Assemble a report's live data (KPIs, charts, tables) for a period, pulled from the connected sources exactly as the app does. datePreset and comparePreset default to the report's saved config; widgetIds (from get_report) limits the result to chosen widgets, which matters for large tables (a 500-row table alone can run to about 90,000 characters); brandFilter reads query-based widgets as branded or non-branded only. A widget that could not be read for the period is null, with the reason in _meta.unavailable. Third-party text (URLs, domains, page titles, search queries) is named in untrustedContent. Notes on donuts, sparklines, margins of error, memory-sourced answers, Peec AI counts and report filters arrive in howToRead.

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": {
      "reportId": "<reportId>"
    },
    "name": "get_report_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
reportIdYesThe report id.
widgetIdsNoOnly these widgets (ids from get_report). Omit for the whole report.
datePresetNoDate range, e.g. "last_month", "last_7_days", "last_28_days" (any last_N_days), "quarter_to_date", "last_quarter", "year_to_date", "custom_YYYY-MM-DD_YYYY-MM-DD". An unknown value is refused.
brandFilterNoBranded or non-branded only, for the widgets that count search queries or keywords, as if each had that filter. Omit for the widgets as saved.
comparePresetNoComparison, e.g. "none", "previous_period", "previous_year".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / datePreset / description
      Previous value: -"Date range, e.g. \"last_month\", \"last_7_days\", \"last_30_days\", \"quarter_to_date\", \"last_quarter\", \"year_to_date\", \"custom_YYYY-MM-DD_YYYY-MM-DD\"."New value: +"Date range, e.g. \"last_month\", \"last_7_days\", \"last_28_days\" (any last_N_days), \"quarter_to_date\", \"last_quarter\", \"year_to_date\", \"custom_YYYY-MM-DD_YYYY-MM-DD\". An unknown value is refused."
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed1 schema field changed
    • changedInput schema / properties / brandFilter / description
      Previous value: -"Read the report's widgets that count search queries or keywords (Search Console and the other sources that can split them) for branded (naming the client's brand terms) or non-branded ones only, as if each widget had that filter; each such widget's aiNote states the terms, and Google's anonymized queries are in neither group. A widget whose figures cannot be split by query comes back null with its code in _meta.unavailable. Omit for the widgets as saved."New value: +"Branded or non-branded only, for the widgets that count search queries or keywords, as if each had that filter. Omit for the widgets as saved."
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses failure behavior (unreadable widgets return null with the reason in _meta.unavailable), output size risk (~90,000 characters for a 500-row table), untrusted-content flagging, and the howToRead notes field. This is exactly the behavioral context annotations cannot carry.

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?

Front-loaded with purpose, then parameters, then return-shape behavior; nearly every clause carries information. The final howToRead sentence is a dense enumeration that could be tightened, but nothing is redundant.

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?

With no output schema, the description takes on return-value disclosure and does so thoroughly: null widgets, _meta.unavailable, untrustedContent, and howToRead. Combined with the size warning and defaults, an agent has everything needed to call it and interpret the result.

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, but the description adds real meaning: datePreset and comparePreset fall back to the report's saved config, widgetIds is capped and best used to avoid oversized payloads, and brandFilter only affects query/keyword-counting widgets.

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 and resource: 'assemble a report's live data (KPIs, charts, tables) for a period,' pulled from connected sources. This is clearly distinct from get_report, which is referenced as the source of widget ids, so an agent can tell the two apart without opening a schema.

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 clear usage conditions: widgetIds limits results to chosen widgets, omit for the whole report, and the ids come from get_report. It also warns that large tables are expensive in characters. It stops short of an explicit 'use X instead when' exclusion, but the context is sufficient to pick correctly.

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