Skip to main content
Glama

Query Insights report

query_insights_report
Read-onlyIdempotent

Execute saved report queries using the same formulas and scope compiler as the Insights UI. Optionally override dates, comparison, filters, or breakdown. Returns structured rows and individual query errors. Check integration status for external sources; missing data is not measured zero. Use these results to answer questions or create a native artifact with create_artifact. Reading or querying does not create a report or artifact. For multi-step Replo work, call skills with name "replo".

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

Input Schema

NameRequiredDescriptionDefault
scopeNoOverride selected report defaults. Filters replace the default filter list; omitted fields retain the report's defaults.
queryIdsNoQuery IDs from get_insights_report. Omit to run all queries (at most 30 per call).
reportIdYesReport file ID from list_insights_reports, or the final UUID in its Insights URL.
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / projectId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / reportId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description does add real value beyond that: it discloses partial-failure semantics (per-query errors are returned alongside successful rows) and a data-absence caveat (missing data is not zero). It stops short of describing volume, latency, or pagination behavior for a call that can run up to 30 queries at once.

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?

Purpose and override behavior are front-loaded in the first two sentences, and every later sentence carries a distinct caveat or routing instruction. The trailing Replo/skills pointer is on-topic but slightly tacked on; otherwise there is no filler.

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?

No output schema exists, and the description compensates by naming the return shape (structured rows plus individual query errors). For a tool with a deeply nested optional scope object, a short note on when per-query errors should trigger a retry or partial-result handling would close the last gap.

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 75%, so the baseline is about 3, and the description adds genuinely useful semantics by stating that scope.filters REPLACES the report's default filter list while omitted fields retain defaults, and that omitting queryIds runs all queries capped at 30. It does not explain dateRange preset/comparison interplay or breakdown limit behavior, which the schema only partially covers.

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 ("Execute saved report queries") plus the mechanism (same formulas and scope compiler as the Insights UI), and explicitly separates itself from create_artifact and report creation. An agent can tell this apart from get_insights_report (which supplies the query IDs) and create_artifact 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 Guidelines5/5

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

Gives concrete routing: use results to answer questions or build an artifact via create_artifact, defer multi-step Replo work to skills, and verify integration status before trusting external-source data. It also sets a negative expectation ("Reading or querying does not create a report or artifact"), which heads off the most likely misuse.

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