Skip to main content
Glama

compare_reports

Read-only

Compares two inline Search Visibility report.json objects and lists changes, with reasons for null results and inputs excluded from comparison.

Instructions

Compare two inline Search Visibility report.json objects (from build_report or the CLI). Changes are null, with reasons, when collection conditions differ or are not recorded. Inputs that are not compared are listed in notCompared.

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": {
      "before": "<before>",
      "after": "<after>"
    },
    "name": "compare_reports"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterYes
beforeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnlyHint=true and openWorldHint=false, so the safety profile is done. The description adds real behavior beyond that: changes are reported as null with reasons when collection conditions differ or are not recorded, and uncompared inputs surface in notCompared. It does not cover malformed/invalid JSON handling, which would be the remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action, then the degradation behavior, then the side-channel output. No filler and nothing repeated.

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?

There is no output schema and the parameters are undocumented, so the description carries the full burden. It explains the degenerate case (nulls with reasons) and notCompared, but leaves the normal successful result shape (what a 'change' looks like) unspecified.

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?

With 0% schema description coverage and nested object parameters, the description does meaningful work by establishing that inputs are inline objects, not file paths or report IDs. However, it never describes the expected structure of before/after, what the required baseline object must contain, or whether either may be a partial 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 verb and resource: compare two inline Search Visibility report.json objects, and names the producer (build_report or the CLI). This is clearly a read-only diff operation and distinct from build_report, though it never explicitly contrasts itself with analyze_observations or the audit siblings.

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

Usage Guidelines3/5

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

The mention of build_report/CLI as the input source implies the workflow (build first, then compare), which is implied usage. There is no explicit when-to-use vs when-not guidance, no note on whether the two objects must come from comparable runs, and no alternative named.

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