Skip to main content
Glama

Evaluate an authorization tuple

permission_check
Read-onlyIdempotent

Evaluate authorization tuples to determine if a subject can perform an action on a resource; check your own permissions or another identity when RBAC read access permits.

Instructions

Evaluate an authorization tuple

A caller can inspect its own permissions. Evaluating another subject requires administrative rbac read authorization.

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": {
      "body": "<body>"
    },
    "name": "permission_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequired resource, action and object strings specify the authorization tuple. Optional subject selects another identity, such as `user:<account>`; omission evaluates the caller.

Output Schema

NameRequiredDescriptionDefault
allowedYes
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $defs / CanRequest
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "action": {
      -      "enum": [
      -        "create",
      -        "read",
      -        "reveal",
      -        "update",
      -        "delete",
      -        "export",
      -        "*"
      -      ],
      -      "type": "string"
      -    },
      -    "object": {
      -      "type": "string"
      -    },
      -    "resource": {
      -      "type": "string"
      -    },
      -    "subject": {
      -      "description": "Optional subject; checking another subject requires rbac read permission.",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "resource",
      -    "action",
      -    "object"
      -  ],
      -  "type": "object"
      -}
    • addedInput schema / $defs / CanRequest_depth16
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "action": {
      +      "enum": [
      +        "create",
      +        "read",
      +        "reveal",
      +        "update",
      +        "delete",
      +        "export",
      +        "*"
      +      ],
      +      "type": "string"
      +    },
      +    "object": {
      +      "type": "string"
      +    },
      +    "resource": {
      +      "type": "string"
      +    },
      +    "subject": {
      +      "description": "Optional subject; checking another subject requires rbac read permission.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "resource",
      +    "action",
      +    "object"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / body / $ref
      Previous value: -"#/$defs/CanRequest"New value: +"#/$defs/CanRequest_depth16"
    • addedInput schema / properties / body / description
      Added value: +"Required resource, action and object strings specify the authorization tuple. Optional subject selects another identity, such as `user:<account>`; omission evaluates the caller."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "allowed": {
      +      "type": "boolean"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "allowed"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, so the description does not need to repeat safety traits. It adds valuable behavioral context by disclosing the authorization prerequisite for evaluating another subject, which goes beyond the annotations.

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

Conciseness4/5

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

The description is two short sentences and front-loads the purpose. The first line repeats the title, which is minor redundancy, but there is no unnecessary filler.

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

Completeness4/5

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

For a one-parameter read-only tool with full schema coverage, an output schema, and annotations, the description is sufficiently complete. It covers the key authorization caveat for other-subject evaluation, leaving return-value details to the output schema.

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

Parameters3/5

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

With 100% schema description coverage, the schema already documents the body fields including the optional subject. The description largely duplicates the schema's note about rbac read permission and adds no new parameter meaning, so baseline 3 applies.

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 description states a specific verb and resource: 'Evaluate an authorization tuple,' making the core operation clear. It does not explicitly differentiate from sibling tools, but the evaluation semantics distinguish it from the get/list siblings contextually.

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?

It clarifies that a caller can inspect its own permissions and that evaluating another subject requires administrative rbac read authorization. This implies usage scope but does not give explicit when-to-use guidance relative to alternatives, though no direct alternative exists among the listed siblings.

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

Deploy Server

Other Tools