Skip to main content
Glama
takleb3rry

Zitadel MCP

by takleb3rry

zitadel_create_project_role

Idempotent

Create a new role in a Zitadel project by defining a role key and display name, with optional group and project ID for RBAC setup.

Instructions

Create a new role in a Zitadel project. For the standardized RBAC model use the keys "admin" or "standard" (see zitadel_provision_user).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNoOptional role group for organization
roleKeyYesRole key. Standardized vocabulary: "admin" or "standard".
projectIdNoThe project ID (uses default project if omitted)
displayNameYesHuman-readable role name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • changedInput schema / properties / roleKey / description
      Previous value: -"Role key (e.g., \"admin\", \"app:finance\", \"app:timesheets\")"New value: +"Role key. Standardized vocabulary: \"admin\" or \"standard\"."
  2. First observedv1.0.2

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety/idempotency profile is covered. The description adds no behavioral context of its own — nothing about duplicate role keys, required permissions, or side effects — so it contributes almost nothing beyond the structured fields.

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

Conciseness5/5

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

Two tight sentences with the core action front-loaded and the key convention as supporting detail. No filler or redundancy.

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 simple create mutation with 100% schema coverage and annotations handling safety and idempotency, the description is adequate. It is still thin on failure behavior (e.g., duplicate roleKey in an idempotent tool), but the structured fields carry most of the load.

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 four parameters. The description's note about "admin"/"standard" keys merely repeats the schema's own roleKey description, adding no syntax or format detail beyond it; 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?

States a specific verb (Create) and resource (role in a Zitadel project), which clearly separates it from siblings like zitadel_list_project_roles. It does not explicitly name an alternative to differentiate further, but the purpose is unambiguous.

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?

The description gives a key-vocabulary convention ("admin" or "standard") and cross-references zitadel_provision_user, which implies when the standardized model applies. However, it never states when to create a custom role instead, nor any prerequisites or exclusions.

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