Skip to main content
Glama

iam_policy_version_delete

Destructive

Deletes a non-default version of a managed IAM policy only after explicit confirmation, helping preserve the default policy version.

Instructions

Delete a non-default version of a managed policy; needs confirm=true.

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>",
      "version_id": "<version_id>"
    },
    "name": "iam_policy_version_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
policy_arnYes
version_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructive and open-world behavior, so the description's added value is the constraint that only non-default versions can be deleted plus the explicit confirm=true gate. It does not say whether deletion is reversible or what happens if the version is referenced by an attached policy, but the key safety guard is disclosed.

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?

One compact sentence with the destructive action first and the precondition last; no filler and nothing to trim.

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 and annotations carrying the risk profile, the definition covers the essential extras an agent needs: the non-default restriction and the confirmation requirement. Only the failure modes for default versions or in-use versions are left implicit.

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%, so the description must carry the load. It explains the confirm flag's purpose (a safety gate, not just a boolean) but adds nothing about policy_arn or version_id beyond their self-evident identifiers, leaving half the parameters undocumented in prose.

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 ('Delete a non-default version of a managed policy'), and the 'non-default' qualifier meaningfully separates it from iam_policy_delete and iam_policy_version_set_default without naming them.

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 'non-default version' restriction and the confirm=true prerequisite imply when the tool applies, but the description never names an alternative action or explains what to do for a default version (e.g. set another default first).

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