Skip to main content
Glama

iam_policy_delete

Destructive

Delete a customer-managed IAM policy after confirmation; enable cascade to detach it from users, groups, and roles and remove non-default versions first.

Instructions

Delete a customer-managed policy; needs confirm=true. With cascade=true it first detaches it from every user, group and role and deletes its non-default versions, listing each step.

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_arn": "<policy_arn>"
    },
    "name": "iam_policy_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
cascadeNo
confirmNo
policy_arnYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is carried by structured data. The description earns credit for spelling out what cascade actually destroys — detaching from every user, group and role and removing non-default policy versions. It does not say what happens when the policy is still attached and cascade is false, which is the main behavioral question left open.

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?

Three compact clauses, front-loaded with the action, then the safety gate, then the escalating mode. Every clause carries information; the final phrase 'listing each step' is slightly compressed but still meaningful about output behavior.

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?

An output schema exists, so return values need no explanation, and the destructive annotation covers risk disclosure. Given a three-parameter destructive tool, the description covers the critical decisions; only the ARN format and the failure mode when the policy is attached without cascade are missing.

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 coverage is 0%, so the description must carry the parameters, and it explains both booleans substantively: 'confirm' is a mandatory gate, and 'cascade' expands the operation with enumerated side effects. The required 'policy_arn' is left unexplained — no hint that it is a full ARN or where to obtain it.

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?

The description opens with a specific verb+resource: 'Delete a customer-managed policy'. The qualifier 'customer-managed' implicitly scopes it against siblings like iam_inline_policy_delete and iam_policy_version_delete, though it never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a hard prerequisite ('needs confirm=true') and explains the two operating modes — plain delete versus cascade=true — so an agent can pick the right invocation. It stops short of naming alternatives or explicitly stating when a plain delete would fail because attachments exist.

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