{"uid":"cap_If41xhL2SEuI13-dcpAvg","slug":"agent402-tools-openapi-diff-991d01a7","name":"agent402.tools OpenAPI Diff","description":"Compare two OpenAPI 3.x or Swagger 2.x documents and return a structured diff: added / removed / changed endpoints, with a conservative \"is any change breaking?\" flag. Breaking = an endpoint or required-2xx status was removed, a required parameter was added, an optional param became required, a param type changed, or a JSON body field became required. Pure CPU - deterministic, no network, no $ref dereferencing (resolve refs upstream if needed).","url":"https://agent402.tools/api/openapi-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"description":"OpenAPI/Swagger document (object or JSON string) for the new version"},"before":{"description":"OpenAPI/Swagger document (object or JSON string) for the previous version"}}},"responseSchema":{"type":"json","example":{"added":["POST /admin"],"changed":[],"removed":["GET /legacy"],"summary":{"added":1,"changed":0,"removed":1},"breaking":true,"breakingCount":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d1s3Vtf7XmCVtYHsgsmb1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two OpenAPI 3.x or Swagger 2.x documents and returns a structured diff of added, removed, and changed endpoints with a breaking-change flag.","exampleAgentPrompt":"Can you compare these two OpenAPI specs and tell me what changed — specifically whether any endpoints were removed or required parameters were dropped? Here's the old spec and the new spec.","exampleUseCases":null,"resultDescription":"A structured JSON diff listing added endpoints, removed endpoints, and changed endpoints between the two API specs, plus a boolean 'is breaking?' flag set to true if any endpoint or required 2xx status was removed or a required parameter was dropped.","failureModes":["Invalid JSON or non-OpenAPI document provided — parse error returned","Missing 'before' or 'after' field — validation error","Malformed Swagger 2.x or OpenAPI 3.x structure — schema validation failure","Payment not attached or insufficient — 402 Payment Required","Network timeout on large spec documents"],"whenToPreferThis":"Use this endpoint when you need a programmatic, structured breakdown of API changes between two versions — especially when you need a reliable breaking-change signal. Prefer this over manual diffing or generic text comparison when the inputs are valid OpenAPI/Swagger documents and you need machine-readable output distinguishing added, removed, and changed endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:56:27.080Z","isFirstParty":false}