Skip to main content
Glama

Read Casbin policy

rbac_policy_get
Read-onlyIdempotent

Read Casbin policy to retrieve canonical CSV authorization rules with explicit allow or deny effects. Use it to inspect current RBAC rules before validating and persisting a full replacement.

Instructions

Read Casbin policy

Returns canonical CSV authorization rules in the policy field, including explicit allow or deny effects. Use rbac_policy_replace to validate and persist a complete replacement rather than editing individual rules.

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": "rbac_policy_get"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
policyYesCasbin CSV: p, subject, resource, action, object, allow|deny; g, subject, role. Built-in roles remain installed. Validation errors name policy and the line. Replacement must preserve unrestricted administration for an enabled account or verified active OIDC group identity without denies.
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "policy": {
      +      "description": "Casbin CSV: p, subject, resource, action, object, allow|deny; g, subject, role. Built-in roles remain installed. Validation errors name policy and the line. Replacement must preserve unrestricted administration for an enabled account or verified active OIDC group identity without denies.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "policy"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing the return shape (CSV rules with allow/deny effects) and the constraint that individual rules cannot be edited in place. It says nothing about permissions required or scope of the policy returned, so it is good but not rich.

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?

Two sentences, front-loaded with the resource and the return format, then the alternative route. The opening phrase merely restates the title, which is a small redundancy, but nothing else is wasted.

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 an output schema present, the description need not enumerate return values, and it still characterizes the key field. Annotations cover the safety profile. The only gap is that it doesn't say whose or which policy scope is read, which for a cluster-level RBAC tool could matter.

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, so there is no parameter meaning to convey and the baseline is 4. The description correctly avoids inventing filter or scope arguments that do not exist.

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 ('Read Casbin policy') and says exactly what comes back: canonical CSV authorization rules in the policy field with explicit allow/deny effects. It is clearly a read of RBAC policy, though it does not contrast with any other get-style sibling (none of the listed siblings is an RBAC reader), so sibling differentiation rests on the referenced rbac_policy_replace.

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

Usage Guidelines4/5

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

It gives explicit routing guidance: use rbac_policy_replace to validate and persist a complete replacement rather than editing individual rules. That tells the agent both when to read here and what not to attempt with this tool, but there is no explicit statement of when a policy read is warranted versus other inspection tools.

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