Skip to main content
Glama

generate_rbac_assignment

Generate Azure RBAC role assignment Bicep. Looks up common roles by name; falls back to caller-provided GUID.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "principalId": "<principalId>",
      "roleName": "<roleName>",
      "scope": "<scope>"
    },
    "name": "generate_rbac_assignment"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYesResource ID to scope the assignment to (RG, subscription, or specific resource)
roleNameYesBuilt-in role name (e.g. 'Storage Blob Data Reader') OR a custom role GUID
scopeKindNorg | subscription | resource — only affects the output template structure
principalIdYesObject ID of the principal (managed identity, user, service principal)
principalTypeNoServicePrincipal | User | Group

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does disclose one meaningful behavior beyond the schema: role-name lookup with a GUID fallback path. It does not say whether Bicep is written to disk or returned as a string, whether generation is idempotent, or whether any auth/lookup can fail.

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 short sentences, front-loaded with the action and artifact, and the second sentence immediately clarifies role resolution. No filler, though the second clause is terse enough to border on cryptic.

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?

There is no output schema, and the description never says what the caller receives (Bicep text vs. a written file) or how scopeKind defaults. For a 5-parameter generator with zero annotations, that is a real gap.

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 coverage is 100%, so the schema already documents all five parameters, including scope, roleName, and scopeKind. The description's role-lookup/fallback note largely restates the roleName schema text, adding only marginal clarity.

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 and resource: 'Generate Azure RBAC role assignment Bicep.' The Azure/Bicep qualifier implicitly separates it from k8s or generic RBAC siblings, though no sibling is named explicitly.

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?

Usage is implied by the artifact type (Bicep for Azure RBAC), but there is no explicit when-to-use, when-not, or pointer to generate_rbac_config / generate_k8s_rbac / generate_policy_assignment as alternatives. The agent must infer the choice from the Azure scope.

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.