{"uid":"cap_CGFwRjidbNpWcuDUPo3AI","slug":"tool-permission-diff-11c87416","name":"Tool Permission Diff","description":"Review permission changes before an agent release. Compare two explicit allow-only sets by tool, action and exact resource; report additions, removals and wildcard additions. Does not resolve IAM inheritance or wildcard containment, or authorize execution.","url":"https://www.mahastrategies.com/api/v1/micro/tool-permission-diff","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","before","after"],"properties":{"after":{"type":"array","maxItems":50,"minItems":0},"before":{"type":"array","maxItems":50,"minItems":0},"dataClass":{"enum":["public","synthetic"],"type":"string"}},"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":["tool-permission-diff"],"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":["21000"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.021","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.021/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.021","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.021","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JaoRW9S61VtcllEN9ar1k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.021","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two explicit allow-only permission sets (before/after) by tool, action, and exact resource, reporting additions, removals, and wildcard additions before an agent release.","exampleAgentPrompt":"Before I ship the new agent version, compare these two permission sets and tell me what changed — flag any additions, removals, or new wildcard permissions. The data is synthetic, and here are the before and after allow lists.","exampleUseCases":[{"title":"Pre-release agent permission audit","prompt":"I'm about to deploy a new version of my agent — can you diff these two permission sets and tell me exactly what tool actions or resources were added or removed, and flag any wildcard additions I should be worried about? Use synthetic data class."},{"title":"Detecting unexpected wildcard grants","prompt":"We updated our agent's allow-list last night and I want to make sure no wildcard permissions slipped in. Here are the before and after sets — compare them and highlight any wildcard additions specifically."},{"title":"Minimal-change policy verification","prompt":"Our security review requires we show only minimal permission changes between agent releases. Compare these before and after permission sets and give me a full report of every addition and removal so I can confirm nothing unexpected was granted."}],"resultDescription":"Returns a structured diff result object containing lists of added permissions, removed permissions, and wildcard additions, along with metadata including version, offerId, inputDigest, receiptDigest, amountBaseUnits, and a boundaries array. Does not resolve IAM inheritance, wildcard containment, or authorize execution.","failureModes":["Before or after arrays exceed 50 items — request rejected","Invalid dataClass value (must be 'public' or 'synthetic') — validation error","Malformed permission objects in before/after arrays — schema rejection","Empty or missing required fields — 400 error","Payment failure via x402 protocol — call not executed"],"whenToPreferThis":"Use this endpoint when you need a lightweight, deterministic, explicit diff of two allow-only permission sets prior to an agent release, and you do not need IAM inheritance resolution, wildcard containment analysis, or live authorization enforcement. Ideal for pre-deployment security checklists and audit trails where a simple addition/removal/wildcard report is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:25.149Z","isFirstParty":false}