Skip to main content
Glama

Preview a report

preview_report
Read-only

Run a report the user asked for, such as "invoiced per month this year against last year" or "most profitable jobs this financial year by manager", and answer each block's figures. It saves nothing: show the user what it found, adjust, then save_report. A report is blocks, each one figure, chart or table. A block reads sql (one SELECT, as run_sql runs it: the most flexible, any calculation, across sources), a resource (describe_resources; a sum or count by up to two columns, as summarize_records reads it) or a question (discover_questions; the curated reads, such as profit per job). Each block answers its layout: width, its share of the row, and note, when it has one. A block that cannot run says why in place of figures.

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": {
      "report": "<report>"
    },
    "name": "preview_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
reportYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / report / properties / blocks / items / properties / arguments / properties
      Added value: +{}
    • addedInput schema / properties / report / properties / blocks / items / properties / filters / properties
      Added value: +{}
    • addedInput schema / properties / report / properties / blocks / items / properties / labels / properties
      Added value: +{}
    • addedInput schema / properties / report / properties / blocks / items / properties / units / properties
      Added value: +{}
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description reinforces this with "It saves nothing," which is the key behavioral fact for a preview tool. It adds non-schema behavior in "A block that cannot run says why in place of figures," though it does not discuss size limits, latency, or failure modes beyond that.

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 the primary action and the no-save constraint, then unpacks the block model in a logical order. The parenthetical cross-tool references make sentences dense and slightly run-on, but nearly every clause carries information an agent needs.

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 describing what the caller sees (figures per block, an explanation in place of figures when a block cannot run). For a deeply nested 12-block schema it gives enough orientation, though it does not cover limits or partial-failure aggregation across blocks.

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?

Top-level coverage is nominally 0%, but the nested schema is densely self-documented; the description earns credit for supplying the conceptual model (report → ordered blocks → sql|resource|question as mutually exclusive sources) and for cross-referencing how each source is interpreted elsewhere. It adds the semantic frame rather than repeating individual field docs.

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 concrete verb and resource ("Run a report... and answer each block's figures") and immediately differentiates the sibling that persists ("It saves nothing... then save_report"). The block model (each block is a figure, chart or table) lets an agent picture the request shape 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 Guidelines5/5

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

Explicitly frames the workflow: preview, show the user, adjust, then save_report. It also routes each block variant to the right sibling (sql → run_sql, resource → describe_resources, question → discover_questions) plus describe_resources for the curated path, so an agent knows which alternative fills which part.

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