Skip to main content
Glama
artemkozlenkov

Azure Infrastructure MCP Server

create_role_assignment

Assign an Azure RBAC role to a user, group, or service principal, optionally scoped to a resource group or specific resource.

Instructions

Create a new role assignment (RBAC).

Args: principal_id: Object ID of the principal (user, group, or service principal) role_definition_name: Role name (e.g., 'Contributor', 'Reader', 'AcrPull') resource_group: Resource group scope (optional, uses subscription if not provided) scope: Full resource scope (optional, overrides resource_group)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
principal_idYes
role_definition_nameYes
resource_groupNo
scopeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. It correctly indicates the tool creates an RBAC assignment, implying mutation. However, it does not disclose side effects (e.g., permissions required, idempotency, overwrite behavior) or error conditions.

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?

The description is concise, with a one-sentence purpose followed by a bulleted list of parameters. No redundant information; each line adds value.

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 does not need to explain return values. It covers the essential purpose, all parameters, and the relationship between resource_group and scope. Could mention required permissions, but overall complete.

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?

Schema description coverage is 0%, but the description compensates by explaining each parameter: principal_id as 'Object ID of the principal (user, group, or service principal)', role_definition_name with examples, and clarifying the optional scope parameters. This adds significant meaning beyond the schema.

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?

The description clearly states 'Create a new role assignment (RBAC).' The verb 'Create' and resource 'role assignment' are specific. It distinguishes from siblings like 'delete_role_assignment' and 'list_role_assignments_for_principal'.

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 provides parameter explanations but does not explicitly state when to use this tool vs alternatives, nor does it mention prerequisites or when not to use it. Usage is implied through context of creating role assignments.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/artemkozlenkov/azops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server