Skip to main content
Glama

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

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. It does well on semantics (denials win over grants, exact string comparison with no wildcards, transitive expansion of implies) and hints at output ('says for each denied permission which party lacks it'), but it never states that this is a pure side-effect-free computation, nor does it describe the response shape for granted permissions, and the text is cut off mid-sentence ('expanded transitively wit'), leaving the implication rules incomplete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The formula-style lead is well front-loaded, but the second sentence restates the same formula in prose ('the permissions it requested, intersected with what the end user holds and what its parent agent holds, minus any explicit deny list') without adding new information. The trailing truncation further weakens an otherwise tight structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter, no-annotation, no-output-schema tool, the core computation rules are covered, but the return value is only partially implied and the safety profile (read-only, deterministic) is never stated. The truncated final sentence leaves the transitivity rules underexplained for the parameter that most needs it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80%, so the baseline is 3, and the description exceeds it: it establishes the evaluation order (requested ∩ user ∩ parent, then minus denied) and explains that 'implies' entries are caller-declared grants expanded transitively, which the bare schema does not convey. It still does not clarify what 'parent' means operationally beyond 'delegating agent' or how duplicate/overlapping permissions are treated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line states a precise computation over named inputs: 'requested ∩ user ∩ parent, minus explicit denials', and the second sentence clarifies it is the effective permission set of a delegated sub-agent. An agent knows exactly what the tool computes, though it never names or contrasts with a sibling such as permission-delta.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the domain framing (computing what a sub-agent may actually do before delegation), but there is no explicit 'use this when' or 'use X instead' guidance. The description does not say what to do if you only need a diff rather than an intersection, leaving routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources