{"uid":"cap_OrHAcoStv3z8t9aUV13vq","slug":"maha-policy-version-comparison-3f223f2c","name":"Maha Policy Version Comparison","description":"Review a structured policy revision before release. Compare up to 40 caller-supplied clauses per version by stable ID, text and scope; report additions, removals and changes. Checks declared chronology, not legal effect, applicability or compliance.","url":"https://www.mahastrategies.com/api/v1/micro/policy-version-comparison","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","policyId","beforeVersion","afterVersion","beforeSequence","afterSequence","before","after"],"properties":{"after":{"type":"array","maxItems":40,"minItems":0},"before":{"type":"array","maxItems":40,"minItems":0},"policyId":{"type":"string","maxLength":80},"dataClass":{"enum":["public","synthetic"],"type":"string"},"afterVersion":{"type":"string","maxLength":80},"afterSequence":{"type":"integer","maximum":1000000,"minimum":0},"beforeVersion":{"type":"string","maxLength":80},"beforeSequence":{"type":"integer","maximum":1000000,"minimum":0}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["policy-version-comparison"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["17000"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.017","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.017/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.017","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.017","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8F2BcE66cou3b-o5IITYw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.017","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two versions of a structured policy by clause ID, text, and scope to report additions, removals, and changes between them.","exampleAgentPrompt":"Before we publish the updated privacy policy, compare version '2024-Q1' (sequence 4) against the new '2024-Q2' (sequence 5) for policy ID 'privacy-policy-main' — I'll provide up to 40 clauses from each version labeled by stable clause ID and scope, using public data class, so you can report exactly which clauses were added, removed, or changed.","exampleUseCases":[{"title":"Pre-release policy diff review","prompt":"We're about to release an updated terms-of-service policy. Compare the 'v2.1' draft (sequence 21) against the current live 'v2.0' (sequence 20) for policy ID 'tos-main' using public data — give me a full breakdown of which clauses were added, removed, or had their text changed."},{"title":"Compliance audit of policy revision","prompt":"For our compliance audit, diff policy ID 'data-retention-policy' between version 'rev-5' (sequence 5) and 'rev-6' (sequence 6) using public data class, so I can see exactly which of our 30 clauses changed in scope or wording before we sign off."},{"title":"Clause deletion detection in HR policy","prompt":"Check our HR policy update before it goes live — compare 'hr-policy-2023' (sequence 12) with 'hr-policy-2024' (sequence 13) for policy ID 'hr-conduct', and flag any clauses that were quietly removed or had their text modified across our 25 clauses."}],"resultDescription":"Returns a structured comparison report identifying which clauses were added, removed, or modified between the two specified policy versions, based on stable clause IDs, text content, and scope declarations. Also includes an offer ID, version label, input and receipt digests for audit traceability, and the amount charged.","failureModes":["Missing required fields (policyId, beforeVersion, afterVersion, sequences, or clause arrays) returns a validation error","Clause arrays exceeding 40 items per version are rejected","Invalid dataClass enum value (not 'public' or 'synthetic') returns an error","Mismatched or inverted sequence numbers may cause unexpected ordering results","Malformed clause objects with missing stable IDs may produce incomplete diff results","Payment failure or insufficient USDC balance prevents execution"],"whenToPreferThis":"Use this endpoint when you need a deterministic, structured diff of two policy versions by clause-level stable IDs before release or handoff — it is not a legal interpretation or compliance checker, just a precise clause-level change detector. Prefer it over generic text-diff tools when clauses have stable IDs and you need structured addition/removal/change categorization with an audit receipt.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:44:02.106Z","isFirstParty":false}