Skip to main content
Glama

iam_inline_policy_delete

Destructive

Deletes an inline IAM policy from a specified user, group, or role after explicit confirmation to remove unintended access.

Instructions

Delete an inline policy from a user, group or role; 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": {
      "principal_type": "<principal_type>",
      "principal_name": "<principal_name>",
      "policy_name": "<policy_name>"
    },
    "name": "iam_inline_policy_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
policy_nameYes
principal_nameYes
principal_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the destructive nature is known. The description adds real value by disclosing the confirm=true gate, which is not visible in annotations. It does not say what happens when confirm is omitted/false, whether the removal revokes permissions immediately, or that the deletion is irreversible.

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?

A single sentence, front-loaded with the action and scope, with the confirm prerequisite appended at no extra length. Nothing 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?

An output schema exists, so return values need not be described, and the confirm gate is covered. For a destructive IAM mutation with four undocumented params, though, it should say what error occurs on missing confirmation and confirm that the named principal and inline policy must already exist.

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 compensate; it partially does by enumerating the three principal types and stating the confirm requirement, but principal_name (name vs. ARN vs. path) and policy_name semantics are left undocumented.

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 an inline policy') and scopes it to the three principal kinds (user, group, role), which separates it from cluster siblings like iam_policy_delete or iam_role_delete. It stops short of explicitly saying it targets inline policies only as opposed to managed ones, so differentiation relies on the word 'inline' alone.

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 only usage guidance is the prerequisite 'needs confirm=true', which is genuinely actionable. There is no statement of when to choose this over iam_inline_policy_put or iam_policy_detach, nor what condition (e.g., policy exists, removal of permissions intended) should trigger it.

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