Skip to main content
Glama

Diff deploy

diff_deploy

Use when a staging or preview deploy should match production, or a migrated site its old one: it compares the pages of both origins and answers only the pages that are missing, changed or look different. Free up to 100 pages per client address per day, no key needed.

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": {
      "previewUrl": "<previewUrl>",
      "productionUrl": "<productionUrl>"
    },
    "name": "diff_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsNoPages to compare, each starting with /; skips discovery.
maxPagesNoWithout paths: pages discovery compares, default 10.
checkModeNofull (existence, content and visual, the default), text-only (no screenshots) or existence-only.
thresholdNoVisual diff tolerance as a fraction from 0 (exact) to 1: 0.05 means 5%. The web app takes a percentage; the API does not.
previewUrlYesThe preview or staging site (full URL), compared as Site B.
maxPriceUsdNoSpend cap in USD: a job priced above it is refused before any challenge.
productionUrlYesThe production site (full URL), compared as Site A.
viewportWidthNoCapture width in px.
idempotencyKeyNoRetry key: under a prepaid balance, the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the first jobId.

Output Schema

NameRequiredDescriptionDefault
okNo
codeNo
errorNo
jobIdNo
sampleNo
statusNo
paymentNo
jobTokenNo
followUpsNo
regressionsNo
pagesChargedNo
pagesCheckedNo
regressionCountNo
allowanceRemainingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Optional opaque string a retry repeats: under a prepaid balance the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the jobId of the first call."New value: +"Retry key: under a prepaid balance, the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the first jobId."
    • changedInput schema / properties / maxPriceUsd / description
      Previous value: -"Optional spend cap in USD. A job priced above it is refused before any challenge, so an auto-paying client is never asked for more."New value: +"Spend cap in USD: a job priced above it is refused before any challenge."
  2. Changed1 schema field changed
    • addedOutput schema / properties / followUps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations declare a non-read-only, open-world, non-destructive operation; the description adds real context beyond them: results are filtered to only problem pages, and there is a free quota of 100 pages per client address per day with no key required. It stops short of saying the run is asynchronous and needs polling, which the presence of wait_for_comparison implies.

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 the triggering scenario before the mechanics, and the quota caveat last. No wasted clauses; each sentence carries distinct information.

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 a 100%-covered 9-parameter schema and an output schema, the description needn't restate parameters or return values, and it covers purpose, quota and result filtering. The one omission is that the tool submits a job rather than returning an immediate diff, which matters for a 9-parameter comparison call.

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?

Schema description coverage is 100%, so every parameter including checkMode, threshold and maxPages is already documented in structured data. The description only echoes the '100 pages' figure and adds no format or interaction detail beyond the schema, so the baseline of 3 applies.

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 concrete verb and resource: it compares the pages of two origins (preview vs production) and returns only missing, changed or look-different pages. The scenario framing (staging vs production, migrated site vs old one) makes the operation unmistakable, though it never names a sibling like check_page to delineate the boundary.

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?

Opens with an explicit when-to-use: 'Use when a staging or preview deploy should match production, or a migrated site its old one.' That is a clear triggering condition, but there is no when-not guidance and no alternative tool is named when a single-page check would suffice.

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