{"uid":"cap_MPUPAfGsMusg1zmnwQ91f","slug":"writerslogic-permission-intersection-calculator-be5f8120","name":"WritersLogic Permission Intersection Calculator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/permission-intersection?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"user":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":300,"description":"Permissions held by the end user."},"denied":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":300,"description":"Explicit denials; they win over any grant."},"parent":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":300,"description":"Permissions held by the delegating agent."},"implies":{"type":"array","items":{"type":"object","required":["permission","grants"],"properties":{"grants":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":50,"minItems":1},"permission":{"type":"string","maxLength":200,"minLength":1}},"additionalProperties":false},"maxItems":100},"requested":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":300,"minItems":1,"description":"Permissions the delegate asks for."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qgf6B6Fnu8RBfOQ-oNWBP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the effective permissions a sub-agent may exercise by intersecting requested permissions with user-held and parent-agent-held permissions, applying explicit denials, and reporting which party blocks each denied permission.","exampleAgentPrompt":"Can you check whether my sub-agent can be granted 'write', 'read', and 'delete' permissions — the user holds ['read','write'] and the parent agent holds ['read','write','delete'], with 'admin' implying ['read','write','delete'], and there are no explicit denials?","exampleUseCases":[{"title":"Sub-agent privilege escalation check","prompt":"Before I spin up this sub-agent, verify its requested permissions ['write','delete','admin'] are within what the parent agent ['read','write','delete'] and user ['read','write'] hold — flag any escalation attempts."},{"title":"Multi-tier agent delegation audit","prompt":"My orchestrator agent holds ['read','publish','edit'] and the user holds ['read','edit']. The sub-agent is requesting ['read','edit','publish']. Can you compute whether all requested permissions are allowed, and tell me which party would block any that aren't?"},{"title":"Implied permission expansion for role-based delegation","prompt":"Check if a sub-agent requesting ['read','write'] can get those permissions, given that the user holds ['admin'] and the parent holds ['admin'], and 'admin' implies both 'read' and 'write'. There are no explicit denials."}],"resultDescription":"Returns a pass/fail verdict indicating whether all requested permissions are granted. For each denied permission, identifies which party (user, parent agent, or deny list) is responsible for the denial, and flags any permissions that represent a privilege escalation beyond what the parent agent holds. Also returns the full set of effective (expanded) permissions after applying implication rules transitively.","failureModes":["Requested array is empty — validation error","Permission name mismatches due to case sensitivity (exact string comparison)","Circular implication cycles in the implies array — tolerated but may produce unexpected expansions","Over-large arrays exceeding maxItems limits causing rejection","Missing required 'requested' field returns an error","All permissions denied when deny list covers all requested permissions"],"whenToPreferThis":"Use this endpoint when you need to enforce least-privilege delegation in a multi-agent system: specifically when a sub-agent requests permissions and you need to verify those requests don't exceed what either the end user or the parent agent holds, and when you need per-denied-permission attribution. Prefer this over manual set intersection logic when you also need transitive implication expansion (e.g. 'admin' grants 'read') or when you need explicit deny-list semantics that override all grants.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:11.494Z","isFirstParty":false,"canonicalSlug":"writerslogic-permission-intersection-calculator-be5f8120"}