Skip to main content
Glama
commerce-evidence-toolkit

commerce-evidence-toolkit

Commerce Evidence Toolkit

Three local, read-only checks for agents working with product data. The package wraps the same versioned comparison rules published in the Agentic Commerce Field Guide.

Version 0.1.0 · MIT licensed. Download the versioned release, or run the source as described below. Registry availability is separate from a GitHub release; consult the live registry for its current state.

What it does

Tool

Inputs

Result

review_product_record

One product object, optional supplied evidence, copy or mapped method

Selected-field review: clear or hold

compare_feed_snapshots

Explicit source and feed snapshots, item IDs, evidence references, timestamps and age policy

match, update_needed or hold

compare_dimensions

Same item and measurement basis, named length/width/height, units and tolerance

match, mismatch or hold

The checks do not fetch references, authenticate evidence, contact a merchant, change a feed, place orders or send telemetry. A match is not provider acceptance, live product truth, physical fit or compatibility. This is a selected local review contract, not a complete provider schema validator. Hold results are evidence decisions, not protocol failures.

Related MCP server: Amazon Ads Simulator MCP

Install the versioned bundle

Download commerce-evidence-toolkit-0.1.0.mcpb and SHA256SUMS from the v0.1.0 release. Check the archive against its published SHA-256 checksum. The bundle contains the server and production dependencies; Node.js 22 or later is required.

Use your compatible client's MCPB import flow, or extract the archive to a directory and configure the absolute path to its server/index.mjs using the JSON example below. MCPB support varies by client. Protocol tests do not establish certification by any desktop app.

A Node package archive is also included in the release. Installing that archive requires npm to install its dependencies. It has not been published to npm.

Run from source

Requires Node.js 22 or later and npm. Dependency installation uses the network; the three comparison operations run locally after installation.

npm ci --ignore-scripts
npm test
node server/index.mjs

The final command starts an MCP server over standard input/output. It waits for a compatible client; it is not a browser URL. Do not print debug messages to stdout, which carries the protocol.

For a compatible client that accepts an MCP JSON configuration, replace the path below with the absolute location of your checkout:

{
  "mcpServers": {
    "commerce-evidence": {
      "command": "node",
      "args": ["/absolute/path/agentic-commerce-field-guide/server/index.mjs"]
    }
  }
}

Client configuration locations differ. This example declares the transport and executable; it does not claim every assistant automatically installs or invokes the server.

Try a complete input

The files in examples/ are complete tool arguments, not bare internal records. The three starter examples below are fictional and use frozen times where relevant.

Tool

Arguments file

Expected example result

compare_dimensions

examples/dimensions.json

match

compare_feed_snapshots

examples/feed-snapshots.json

update_needed

review_product_record

examples/product-record.json

clear after explicit mapping

Ask your client to call the named tool with that file's JSON object. Every successful response includes structured content with toolVersion, a canonical documentation URL and the full result. Each core result retains its own ruleset version and evidence limitations. Incomplete accepted inputs return holds; malformed envelopes and excessive requests return protocol tool errors. The wrapper caps serialized requests at 200,000 UTF-8 bytes and nesting at 25 levels; individual checks impose narrower limits.

Dimension values are positive decimal strings and explicit units (in, cm, mm, m); tolerance is a nonnegative decimal string in millimetres. Do not silently rename depth to length, treat diameter as two axes, or substitute package measurements. Product-record review covers selected positive USD fields; feed freshness is a selected current USD snapshot contract. References are caller assertions and are never fetched.

One observed comparison

examples/observed-dimensions.json contains the HOLMERUD 40541421 dimensions observed on public US and GB product pages for the September 24 study. It returns match at the declared 2 mm display threshold and mismatch at zero. Fractional inch displays are represented exactly as decimals. The tool does not fetch or authenticate the linked sources. This threshold is not a manufacturing or installation tolerance. The study retains eight complete comparisons and 22 unresolved listings; it is not an industry error-rate estimate.

Verify and package

npm run verify:artifacts
npm test
node scripts/test-clean-install.mjs
npm run bundle

npm run bundle creates a local .mcpb archive with the production dependencies and a SHA-256 file under dist/. The Node package can be built with npm pack. A local package build is not an npm or MCP Registry publication.

The test suite compares all 40 fixture/method cases against their source rules (10 dimensions, 6 freshness, and 12 product records under 2 methods), checks error bounds and input immutability, and invokes all 40 over stdio with the TypeScript SDK client. The clean-install test installs the archive into a temporary directory and calls all three tools. A separate Python SDK client test calls all three examples and an incomplete-input hold. These are protocol tests with synthetic inputs, not independent users or desktop-app certification.

Evidence and scope

provenance.json records the source site commit, actual production download verification time, and SHA-256 for every file in artifacts/. The September 24 snapshot adds dimensions to the existing product-feed and measurement artifacts. Verification recomputes hashes and the earlier portability/freshness cases. Synthetic cases show rule behavior, not merchant error rates or model accuracy.

Primary tool documentation:

Please cite the relevant guide and this version or commit. CITATION.cff provides author metadata. To report a correction, open an issue with the tool version, a minimal non-sensitive input, expected result, actual result and supporting reference. Never post customer data or credentials.

Licensing

Original software, documentation, tests and fictional fixtures are available under the MIT License; see license scope. Third-party dependencies retain their own license notices in the packaged dependency directories. Linked specifications, source pages, images and trademarks are not relicensed by this repository.

Available Tools

3 tools
compare_dimensionsA
Read-onlyIdempotent

Compare supplied length, width and height using exact decimal unit conversion. Input requires schemaVersion 1.0, source and candidate with itemId, basis product/package, evidenceRef, and each axis as {value: decimal string, unit: mm/cm/m/in}; toleranceMm is an explicit decimal string. Same item, basis and named axes required. Unknowns yield hold. Does not establish physical fit or source truth. See examples/dimensions.json.

Inputs: input (required).

compare_feed_snapshotsA
Read-onlyIdempotent

Compare supplied source and feed snapshots for exact item IDs, current USD prices, sale state and availability. Requires schemaVersion 1.0, profile openai-native-stable, explicit asOf, maxAgeHours, capturedAt and evidenceRef. Unresolved evidence yields hold with no proposed changes. No fetches or feed writes. See examples/feed-snapshots.json.

Inputs: input (required).

review_product_recordB
Read-onlyIdempotent

Review one supplied product record using a selected canonical-field subset and positive USD prices. Optional mapping transforms only explicit supplied fields. Missing or conflicting facts remain on hold. Does not fetch URLs, verify GTIN assignment, or validate a complete provider upload.

Inputs: record (required), method, evidence.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a clearly distinct evidence operation: single-record review, dimensional comparison, and feed snapshot comparison. Any apparent overlap around USD prices is resolved by the object of comparison (one record vs. source/feed snapshots).

    Naming Consistency5/5

    All tools follow a consistent lowercase snake_case verb_noun pattern: review_*, compare_*. The repeated compare_ prefix is justified because the objects differ, and there are no mixed conventions or vague action names.

    Tool Count5/5

    Three tools is a tight but appropriate scope for a specialized evidence-validation toolkit. Each tool handles a distinct evidence type and earns its place, with no redundant or filler tools present.

    Completeness4/5

    Core evidence workflows are covered: canonical product-record review, dimensional comparison, and feed snapshot comparison. However, the toolkit explicitly omits external evidence operations such as URL fetching, GTIN verification, and provider upload validation, which would be minor gaps for some commerce evidence tasks.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      Enables agents to run read-only coverage and staleness checks on local folders and documents, reporting missing periods or mismatched figures without writes, deletes, or network calls.
      4
      Apache 2.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables read-only inspection of ad-bid recommendations, scenario analysis, and explanation of threshold decisions using synthetic fixtures, without requiring live ad accounts or credentials.
      -
    • A
      license
      C
      quality
      B
      maintenance
      Enables coding agents to inspect project snapshots, detect attribution gaps, generate consent-aware integrations, simulate journeys, verify lifecycle boundaries, calculate coverage, and reconcile conversion records.
      20
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables local, read-only checks of financial disclosure claims against fixed research snapshots, including cutoff queries, operating metric scope, cash-bridge arithmetic, claim tracing, and replayable evidence packets.
      MIT