Skip to main content
Glama

Create Privilege

create_privilege

Create a new privilege: a named permission roles can grant. Arguments: key (permanent, upper-case, e.g. "REPORTS_VIEW" — code and flag rules compare it exactly) and description (what it allows). A new privilege is granted by no role until you add it with update_role (pass the full privilege list) or create_role. Same as bridge privilege create. What a role can do is only the app's default setup until you have read it here. Control access with a flag rule on a privilege (preferred) or on the role key, never with a hard-coded role check in app code. A privilege rule matches the whole key: privileges contains "REPORTS_VIEW" does not match REPORTS_VIEW_ALL. Before writing app code that consumes this, call get_integration_guide with topic=team and the framework the app uses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNoId of the Bridge app to act on for this call (see list_apps). Omit to use the current app.
keyYesPrivilege KEY: permanent, upper-case, e.g. "REPORTS_VIEW".
descriptionNoWhat people holding this privilege may do.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare the safety profile (not read-only, not idempotent, not destructive, closed-world), and the description adds genuinely new behavioral facts: the key is permanent, matching compares the whole key exactly ('REPORTS_VIEW' does not match REPORTS_VIEW_ALL), and the privilege starts ungranted. It does not cover permissions or rollback, but adds meaningful state-consequence context.

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?

Front-loaded with the definition of the resource, followed by argument notes and workflow guidance; every sentence carries information. It is a little sprawling at six sentences, with policy advice mixed into a tool description, but nothing is gratuitous.

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

Completeness5/5

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

For a three-parameter creation tool with no output schema, the description covers creation semantics, the ungranted default state, the follow-up calls needed to actually grant it, and a pointer to the integration guide. Nothing needed to call it correctly is missing.

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?

Schema description coverage is 100%, so the schema already documents all three parameters, and the baseline is 3. The description adds only marginal value beyond it (key permanence, exact-match comparison), largely restating the schema's example and casing rule.

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

Purpose5/5

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

States a specific verb and resource and defines what a privilege is ('a named permission roles can grant'), which distinguishes it from create_role, update_privilege and delete_privilege without opening any schema. An agent knows exactly what this call produces.

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

Usage Guidelines5/5

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

Explicitly routes the agent: a new privilege is granted by no role until added via update_role (with the full privilege list) or create_role, and it directs consumers to get_integration_guide with topic=team before writing app code. It also states the preferred access-control pattern (flag rule on a privilege) versus the anti-pattern (hard-coded role check).

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.