Skip to main content
Glama

iam_policy_create

Destructive

Creates a customer-managed IAM policy from a JSON or dictionary document, requiring explicit confirmation and returning the new policy's ARN.

Instructions

Create a customer-managed policy from a document (dict or JSON); needs confirm=true. Returns the new policy with its ARN.

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": {
      "policy_name": "<policy_name>",
      "policy_document": "<policy_document>"
    },
    "name": "iam_policy_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
confirmNo
descriptionNo
policy_nameYes
policy_documentYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the mutation risk is covered upstream. The description adds the confirm gate and the return shape ('the new policy with its ARN'), but does not disclose required IAM permissions or the irreversibility of policy creation.

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 followed by the gating requirement and result. The return-value clause is somewhat redundant given an output schema exists, but nothing else is wasted.

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 destructive, open-world mutation with five undocumented parameters, the description covers the critical confirm gate and document format but omits the path scoping and description parameters, and gives no hint about the consequences of creating a policy.

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 0% across five parameters, so the description must carry the load and does so only partially: it clarifies that policy_document accepts a dict or JSON string and that confirm must be true. It leaves path, description and policy_name undocumented beyond their titles.

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 ('Create a customer-managed policy from a document') and names the input type, which separates it from iam_policy_version_create and iam_inline_policy_put. It stops short of explicitly routing to those siblings, so it is clear but not fully differentiated.

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 one concrete prerequisite ('needs confirm=true'), which is actionable usage guidance, but says nothing about when to prefer this over iam_policy_version_create for updating a document or iam_inline_policy_put for inline policies. Usage is implied by the name rather than stated.

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

Deploy Server

Other Tools