Skip to main content
Glama

iam_role_trust_policy_update

Destructive

Replace an IAM role's trust policy to change which principals can assume it; requires confirm=true.

Instructions

Replace an IAM role's trust policy (dict or JSON), changing who may assume it; 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": {
      "role_name": "<role_name>",
      "policy_document": "<policy_document>"
    },
    "name": "iam_role_trust_policy_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
role_nameYes
policy_documentYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark this as destructive and open-world, but the description adds meaningful context: it fully replaces the trust policy, changes who may assume the role, and requires confirm=true. It does not discuss reversibility or required permissions, but it goes beyond the annotations in a useful way.

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?

The description is a single compact sentence with the operation front-loaded. The parenthetical format note and confirm requirement are included without filler.

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 three-parameter destructive mutation with an output schema, the description covers the core action, security impact, and confirmation gate. It is mostly complete, though explicit guidance on alternatives and permission requirements could improve it.

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?

With 0% schema description coverage, the description partially compensates by saying policy_document accepts a dict or JSON and that confirm must be true. It does not explain the trust policy document structure or role_name constraints, so the parameter guidance remains incomplete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: replace an IAM role's trust policy. The phrase 'changing who may assume it' clarifies the effect, and the trust-policy scope distinguishes it from role CRUD and attached-policy siblings.

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?

Usage is implied by the specific operation, and the confirm=true prerequisite is a useful usage constraint. However, it does not explicitly say when to use this instead of related policy or role tools, nor does it state when not to use 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