Skip to main content
Glama

compare_preview

Renders a chart with real Power BI model data at the reference aspect ratio, returning side-by-side reference and render images, critique, and a structural diff to verify visual fidelity.

Instructions

Render with real model data at the reference aspect ratio and return reference/render side by side, critique and a structural diff. The calling agent may supply reference_structure; semantic reference properties otherwise remain unknown. Writes no report.

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": {
      "connectionId": "<connectionId>",
      "spec": "<spec>",
      "bindings": "<bindings>",
      "reference_image": "<reference_image>"
    },
    "name": "compare_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYes
maxRowsNo
bindingsYes
reportDirNo
connectionIdYes
reference_imageYes
reference_structureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.2

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does deliver real signal: it discloses the return payload (side-by-side image, critique, structural diff) and a key side-effect fact ('Writes no report'). It also flags an epistemic limit — semantic reference properties are unknown unless the caller supplies reference_structure. It says nothing about connection requirements, cost/latency of rendering real model data, or failure behavior.

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?

Three short sentences, front-loaded with the action and output, then the caveat, then the side-effect note. Every sentence carries information; the clipped phrasing ('Writes no report.') is efficient rather than padding. Slightly telegraphic in places, but no waste.

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

Completeness3/5

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

The output shape and the no-write guarantee are covered, which matters for a complex 7-parameter tool with nested bindings and no output schema. However, the caller still has no guidance on how to build spec or bindings, what reportDir does given the no-report claim, or how maxRows affects the render — gaps an agent must close by trial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must compensate and largely does not. It gives meaning to reference_structure (optional, unlocks semantic properties) and reference_image (reference aspect ratio), but connectionId, bindings, spec, maxRows and reportDir get no explanation at all — notably reportDir, which sits oddly against 'Writes no report'.

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 action and deliverable set: render with real model data at the reference aspect ratio, then return reference/render side by side, a critique and a structural diff. That is concrete enough to distinguish it from a plain render or a plain diff. It stops short of naming which sibling it replaces (diff_visual, preview_visual), so sibling differentiation is implied rather than stated.

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

Usage Guidelines2/5

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

Usage is only inferable from the phrase 'at the reference aspect ratio' and the required reference_image — the agent must guess that this is the tool for judging a spec against a reference. There is no explicit when-to-use, no when-not, and no routing to diff_visual or preview_variants for lighter-weight checks.

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