fresh402_openapi_contract_diff
Use before an API integration update to review supported directional contract changes. Requires a real watch_id from free registration of unfiltered public JSON OpenAPI3.0/3.1; no url override or invented ID. Returns bounded operation/path, required-field, supported type/enum/null and effective authentication evidence with explicit review classifications. compare_to is previous(default) or baseline; previous_hash selects supported retained reference evidence. First call seeds supported baseline history. No YAML, external-reference fetching, endpoint execution or complete compatibility proof; limits and ambiguous cases require review. Preserve watch IDs across sessions. A local tool such as oasdiff may be preferable for larger/unsupported contracts; this hosted workflow maintains bounded observation state and original-result recovery. Paid price $0.020 USDC on Base mainnet (eip155:8453). Requires an x402-capable MCP payment client and funded native-USDC payer; ordinary MCP returns a payment challenge. Native MPP is optional only when root mpp_payments.enabled: official mppx, org.paymentauth/credential and a private recovery token. Prepaid uses X-Fresh402-API-Key plus params._meta["fresh402/prepaid"] {idempotency_key,tariff_version,max_credits}; inspect the authenticated quote. Never mix billing methods or automatically pay. Persist original proof/input/recovery material before authorizing; recover originals after uncertainty. Optional Circle Gateway requires root circle_gateway.enabled and its GatewayWalletBatched client; preserve pending originals, never mix providers. Protocol details: https://fresh402.com/docs#payments. Optional free trial: inspect /v3/agent-trial (unfunded EOA ownership signature, no CAPTCHA); Web tools also support the separate human trial at /v2/trial. Eligibility and shared capacity apply;429 may precede quota exhaustion. Send only X-Fresh402-Trial-Key plus a persisted Idempotency-Key per logical REST/MCP call; reuse the same tool/input/key for retained recovery. Exhaustion never authorizes a charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watch_id | Yes | Required existing watch ID: 'w_' plus 32 lowercase hexadecimal characters. Obtain it with free fresh402_register or POST /v1/register using the public JSON OpenAPI 3.0/3.1 URL and no selector or ignore rules. Reuses the saved URL; do not pass url here. YAML, non-OpenAPI documents and scoped/filtered watches are unsupported. Illustrative IDs must be replaced. | |
| compare_to | No | Optional mode: 'previous' (default) compares with the latest saved OpenAPI Contract Diff snapshot; 'baseline' uses its fixed saved baseline. Before contract history exists, the current registered watch state seeds the initial baseline. previous_hash overrides the mode. 'hash' appears only in results, not as an accepted input mode. | previous |
| previous_hash | No | Optional 64-character hexadecimal reference hash, case-insensitive. Prefer a hash returned by OpenAPI Contract Diff for this same watch, matching a retained contract snapshot or fixed baseline. The current registered core hash is also accepted as a fallback: without a matching contract snapshot, the fixed baseline (or registered state if no baseline exists) is used. Overrides compare_to; unavailable hashes return 404. Omit to use the selected mode. |