Skip to main content
Glama

Resolve caller permissions and role inheritance

permissions_get
Read-onlyIdempotent

Resolve the current caller’s permissions and role inheritance, including OIDC group grants, to determine what access is allowed.

Instructions

Resolve caller permissions and role inheritance

Self-service: returns permissions for the current subject and its OIDC groups. Lists elsewhere are filtered per object.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "permissions_get"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
groupsYes
subjectYes
operationIdNo
permissionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Permission_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "action": {
      +          "type": "string"
      +        },
      +        "effect": {
      +          "enum": [
      +            "allow",
      +            "deny"
      +          ],
      +          "type": "string"
      +        },
      +        "object": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "resource",
      +        "action",
      +        "object",
      +        "effect"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "groups": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "permissions": {
      +      "items": {
      +        "$ref": "#/$defs/Permission_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "subject": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "subject",
      +    "groups",
      +    "permissions"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description only needs added context. It supplies real value by disclosing that results are derived from the subject plus its OIDC groups (i.e., inheritance is resolved) and that other list tools return filtered views — both affect how an agent interprets the response.

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 body is two short sentences, front-loaded with the self-service scope. The only waste is the opening line, which restates the title verbatim before the substantive content begins.

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?

With zero parameters, an output schema present, and full annotation coverage, the description only needs to explain scope and result derivation. It does both, leaving little an agent would still need to guess.

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?

The tool takes zero parameters, which is the baseline-4 case; there is nothing for the description to disambiguate. The description correctly frames the call as carrying no subject argument because it always targets the caller.

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: resolves permissions for the current subject, including inherited role/OIDC group permissions. 'Self-service' and 'current subject' implicitly separate it from siblings like database_role_get or current_user_get, though no sibling is named outright.

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?

'Self-service: returns permissions for the current subject' implies the when-to-use case (asking about your own effective permissions rather than another subject's). The note that 'lists elsewhere are filtered per object' hints at how this differs from list tools, but no explicit alternative or exclusion is stated.

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