# WritersLogic Permission Intersection Calculator

> WritersLogic Permission Intersection Calculator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/permission-intersection?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-permission-intersection-calculator-be5f8120
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MPUPAfGsMusg1zmnwQ91f

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-permission-intersection-calculator-be5f8120 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-permission-intersection-calculator-be5f8120/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
