Skip to main content
Glama

generate_policy_assignment

Generate Azure Policy assignment Bicep — references common built-in policies by name or accepts a custom definition ID

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": {
      "assignmentName": "<assignmentName>",
      "policyName": "<policyName>"
    },
    "name": "generate_policy_assignment"
  }
}

Input Schema

NameRequiredDescriptionDefault
locationNoRegion (required for assignments with identity)
scopeKindNorg | subscription | management-group (default rg)
policyNameYesBuilt-in policy short name OR full definition resourceId
assignmentNameYesAssignment name
enforcementModeNoDefault | DoNotEnforce (audit-only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully signals that the tool emits Bicep source rather than deploying anything, but it never states the return form (text, file path, artifact) or whether any Azure credentials or API calls are involved.

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?

A single front-loaded sentence with no filler; the resource and the two name-resolution modes come first. Density is appropriate, though a slight structural break between purpose and parameter note would aid scanning.

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?

For a five-parameter generator with fully documented schema but no output schema, the definition adequately covers what the tool produces at a high level. The gap is the absence of any statement about the shape or destination of the generated Bicep, which an agent needs before invoking.

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 five parameters including scopeKind values and enforcementMode. The description only restates the policyName built-in-vs-resourceId duality, adding essentially no new parameter meaning beyond the schema.

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 (generate) and specific resource (Azure Policy assignment Bicep), so its scope is unambiguous against generic generator siblings. It does not name or differentiate itself from adjacent siblings like generate_rbac_assignment, so it falls just short of a 5.

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 clause about built-in names vs custom definition IDs implies the two usage scenarios, but there is no explicit when-to-use or when-not guidance relative to other generate_* tools. The agent must infer that this is the tool for policy-assignment Bicep specifically.

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.