Skip to main content
Glama

iam_role_create

Destructive

Create an IAM role with a trust policy specifying who may assume it, configure max session duration, and require confirm=true to provision the new role.

Instructions

Create an IAM role with a trust policy (dict or JSON) saying who may assume it; needs confirm=true. max_session_duration is 3,600 to 43,200 seconds. Returns the new role.

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>",
      "assume_role_policy": "<assume_role_policy>"
    },
    "name": "iam_role_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
confirmNo
role_nameYes
descriptionNo
assume_role_policyYes
max_session_durationNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true) the description discloses the confirm gate, the valid session-duration range, and the return payload. It does not say what happens when role_name collides with an existing role or which IAM permissions are needed, which is the remaining gap for a destructive, open-world mutation.

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?

Three compact clauses, front-loaded on what the tool creates and what the required input means, with the confirm requirement and the duration bound forming a natural second beat. No filler and nothing repeated from the schema.

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 'Returns the new role' is a sufficient nod to the result and no return-value detail is owed. However, for a six-parameter destructive mutation the definition leaves collision behavior, required permissions, and three parameters unexplained, so it is adequate rather than complete.

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 carries the full burden and it compensates for only half the surface: it explains assume_role_policy accepts a dict or JSON string, requires confirm=true, and bounds max_session_duration. It says nothing about path, description, or role_name constraints, leaving three of six parameters undocumented in both places.

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?

States a specific verb and resource ('Create an IAM role') plus the defining input ('with a trust policy (dict or JSON) saying who may assume it'), which cleanly separates it from iam_role_get, iam_role_list, iam_role_delete and even iam_role_trust_policy_update without needing to name 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?

It gives one real prerequisite — confirm=true — which prevents a silent no-op, and it constrains max_session_duration to 3,600–43,200 seconds. It offers no explicit when-not-to-use guidance and does not point at iam_role_trust_policy_update for later trust-policy edits, so routing is only implied.

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