Skip to main content
Glama

Diff Seller AI-Discoverability Snapshots

diff_audit_snapshots
Read-onlyIdempotent

Compare two saved seller audit snapshots to measure visibility, rank, review growth, tier price, and competitor changes; supply snapshot IDs or a seller username to diff current and previous snapshots.

Instructions

Compare two saved seller audit snapshots to measure visibility changes, rank movement (positive = improved), review growth, tier price deltas, and competitor turnover. Provide either both explicit snapshot IDs (baselineSnapshotId + currentSnapshotId) OR sellerUsername (plus optional query) to diff the two most recent snapshots.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "diff_audit_snapshots"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoOptional exact query filter when auto-selecting snapshots by sellerUsername
sellerUsernameNoSeller username for auto-selecting the two most recent snapshots when explicit IDs are omitted
currentSnapshotIdNoNewer snapshot ID to compare against baselineSnapshotId
baselineSnapshotIdNoEarlier snapshot ID (returned by record_audit_snapshot) to use as baseline

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • addedInput schema / properties / baselineSnapshotId / description
      Added value: +"Earlier snapshot ID (returned by record_audit_snapshot) to use as baseline"
    • addedInput schema / properties / currentSnapshotId / description
      Added value: +"Newer snapshot ID to compare against baselineSnapshotId"
    • addedInput schema / properties / query / description
      Added value: +"Optional exact query filter when auto-selecting snapshots by sellerUsername"
    • addedInput schema / properties / sellerUsername / description
      Added value: +"Seller username for auto-selecting the two most recent snapshots when explicit IDs are omitted"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so safety is covered. The description adds meaningful behavior beyond them: the exact metrics computed, the sign convention ('positive = improved'), and the auto-selection rule of taking the two most recent snapshots. It omits edge-case behavior (only one snapshot on file, mismatched sellers, or an invalid ID), which keeps it from a 5.

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?

Two sentences, front-loaded with purpose and output dimensions, then the invocation modes. Every clause carries information: the metric list defines what the diff reports, and the sign convention prevents misreading rank deltas.

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?

With no output schema, the description properly carries the burden of explaining what comes back by enumerating the diff dimensions. It also covers both parameter modes. It falls slightly short on failure modes and on whether snapshots must belong to the same seller or query for a valid comparison.

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 coverage is 100%, so the baseline is 3, but the description adds something the schema cannot express: the either/or relationship between the ID pair and sellerUsername, which matters because no parameters are required and the schema has no oneOf constraint. It also clarifies that baseline is the earlier snapshot and current the newer, reinforcing the directional semantics.

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 ('Compare') and resource ('two saved seller audit snapshots') and then enumerates the measured dimensions: visibility changes, rank movement with sign convention, review growth, tier price deltas, and competitor turnover. An agent can tell this apart from record_audit_snapshot, which is explicitly named as the producer of the snapshot IDs.

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?

Explicitly presents the two invocation modes: both explicit snapshot IDs, or sellerUsername (plus optional query) to diff the two most recent. That is real guidance about how to call it. It stops short of saying when to prefer this tool over siblings like analyze_pricing_benchmarks, so it is clear context rather than full when/when-not routing.

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