Skip to main content
Glama

WritersLogic agent-infra

permission-intersection

Effective permissions of a delegated agent: requested ∩ user ∩ parent, minus explicit denials — Computes what a sub-agent may actually do: the permissions it requested, intersected with what the end user holds and what its parent agent holds, minus any explicit deny list, and says for each denied permission which party lacks it. Permission names are compared exactly (no wildcards); caller-declared implications (for example 'admin' grants 'read') can be given and are expanded transitively wit

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "requested": "<requested>",
      "user": "<user>",
      "parent": "<parent>"
    },
    "name": "permission-intersection"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesPermissions held by the end user.
deniedNoExplicit denials; they win over any grant.
parentYesPermissions held by the delegating agent.
impliesNo
requestedYesPermissions the delegate asks for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources