{"uid":"cap_xBY2CvLjFpEFDhjqpulhD","slug":"signalharness-structured-diff-4cf495c1","name":"SignalHarness Structured Diff","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/structured_diff/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":["object","array","string","number","boolean","null"]},"before":{"type":["object","array","string","number","boolean","null"]}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"added":[{"path":"example","value":{}}],"changed":[{"path":"example","after":{},"before":{}}],"removed":[{"path":"example","value":{}}],"summary":{"added":0,"total":0,"changed":0,"removed":0},"unchangedCount":0},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"structured_diff","executionId":"example-execution","startedAtMs":0,"amountAtomic":"10000","resultSha256":"eef31d0cecdd1ad7e4ac279ba4b65b39356fb5a7ebc208786b5441e79bdf9c88","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VeIP0LX_VOHXYaktibUi7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a structured semantic diff between two arbitrary JSON values, returning added, changed, and removed fields with a summary.","exampleAgentPrompt":"Can you diff these two JSON objects for me and tell me exactly what was added, changed, or removed? Before: {\"status\":\"active\",\"score\":10} and after: {\"status\":\"inactive\",\"score\":10,\"tier\":\"gold\"}.","exampleUseCases":[{"title":"Audit API response drift","prompt":"I got two different responses from an API endpoint — can you compare these two JSON payloads and tell me exactly which fields changed, which were added, and which disappeared?"},{"title":"Track config file changes","prompt":"Here are two versions of our app config — the one from last week and today's. Can you show me a structured breakdown of what was added, removed, or modified between them?"},{"title":"Detect data pipeline mutations","prompt":"I have a record before it went through our transformation pipeline and the output afterward. Can you run a structured diff and summarize how many fields were added, changed, or removed?"}],"resultDescription":"Returns a structured diff object with three arrays — added, changed, and removed — listing affected fields and their values, plus a summary object with counts for each category and an unchanged count. Also includes execution metadata such as payment receipt, request ID, and a SHA-256 hash of the result for verification.","failureModes":["Malformed or unparseable JSON in before/after fields returns an error","Both inputs being identical returns empty diff arrays with zero counts","Missing required before or after fields may result in a 400 error","Network timeout or service unavailability returns a failure status","Payment failure via x402 protocol prevents execution"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, structured breakdown of differences between two arbitrary JSON values — objects, arrays, or primitives — especially when you need machine-readable output (added/changed/removed arrays) rather than a human-readable text diff. Prefer it over generic LLM-based comparison when you need reliable counts, field-level granularity, and a verifiable result hash. Best for auditing, change detection pipelines, and automated monitoring scenarios.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:52:50.655Z","isFirstParty":false}