Skip to main content
Glama

iam_password_policy_set

Destructive

Set or replace an account's IAM password policy, including length, complexity, reuse, and expiry rules; requires confirm=true, and omitted settings reset to defaults.

Instructions

Replace the account's password policy; needs confirm=true. Settings left out return to their defaults. Returns the resulting policy.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "iam_password_policy_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
hard_expiryNo
require_numbersNo
require_symbolsNo
max_password_ageNo
minimum_password_lengthNo
password_reuse_preventionNo
require_lowercase_charactersNo
require_uppercase_charactersNo
allow_users_to_change_passwordNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already flag destructive=true and readOnly=false, so safety is partly covered. The description adds information beyond the annotations: the confirm gate and, crucially, that omitted fields reset to defaults, which quantifies the destructive blast radius. It omits permission or authorization requirements and any mention of irreversible effects on the account.

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, each front-loaded with the most consequential information (replace, confirm, defaults reset) before the return note. No filler, though 'Returns the resulting policy' is partly redundant given an output schema exists.

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 10-parameter destructive mutation with an output schema, the description covers the essentials: confirm gate, replace semantics, default-reset behavior, and response shape. The remaining gap is per-field semantics for the nine optional settings, which is significant but secondary to the covered destructive behavior.

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 coverage is 0% across 10 parameters, so the description must carry the load. It explains 'confirm' and the critical null-means-default semantics that governs the other nine settings, but it adds no per-parameter meaning, such as units for max_password_age or the meaning of password_reuse_prevention.

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 uses a precise verb and resource, 'Replace the account's password policy', which lets an agent distinguish this write/replace operation from the sibling read and delete tools (iam_password_policy_get, iam_password_policy_delete) and from the policy-version tools.

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 the precondition and gate explicitly ('needs confirm=true') and conveys the full-replacement model ('Settings left out return to their defaults'), which tells an agent it should read the current policy first. It stops short of naming an alternative tool, such as the getter, as the way to inspect existing settings.

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