Skip to main content
Glama
nataliemona

Mode Analytics MCP Server

by nataliemona

get_run_results

Fetches results from a Mode Analytics report run, defaulting to the latest run. Limits rows per query to avoid context overflow, with options to adjust limits or fetch all rows.

Instructions

Get results from a report run. Defaults to the latest run.

Each query's rows are truncated to max_rows_per_query by default so a single call can't blow past the agent's context window. When a query was truncated, the result includes truncated: true and row_count: <total> so you know to re-call with a higher limit (or null) if you need all rows.

Args: report_token: The report token. run_token: Specific run token. If omitted, uses the latest succeeded run. max_rows_per_query: Max rows to return per query. Default 500. Pass null to fetch every row — can be very large (hundreds of MB) for dashboards with long time-series or wide cross-tabs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_tokenNo
report_tokenYes
max_rows_per_queryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/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 burden and largely meets it: it discloses the default truncation at max_rows_per_query, the presence of truncated: true and row_count in results, and warns that null can produce hundreds of MB. Permission/auth requirements and pagination beyond truncation are not covered.

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?

The core behavior — default to latest run, truncation, how to detect and overcome it — is front-loaded in the first two paragraphs. The Args block is somewhat redundant with the schema, but each entry still earns its place by adding semantics the schema lacks.

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?

An output schema exists, so return values need not be enumerated, yet the description still names the key truncation fields an agent must act on. Combined with the default-run behavior and the size warning for large fetches, nothing needed to invoke this correctly is missing.

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 description coverage is 0%, so the description must compensate, and it does for run_token (specific run vs. latest succeeded) and max_rows_per_query (default 500, null to fetch everything). report_token is only glossed as 'The report token,' which adds nothing beyond the schema.

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?

States a specific verb and resource ('Get results from a report run') and clarifies the default scope ('Defaults to the latest run'). It is clearly distinguishable in spirit from siblings like list_report_runs and get_report, but it never names or contrasts them explicitly, so an agent must infer the boundary.

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 context for when to omit run_token (latest succeeded run) versus supplying a specific one, and explicitly says to re-call with a higher limit or null when truncated. It does not, however, state when to prefer this over list_report_runs or get_report, so exclusions are absent.

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