Skip to main content
Glama

iam_policy_validate

Read-only

Lints an IAM policy with Wasabi's ValidatePolicy and, when use_action, use_resource and use_service are given, evaluates it for the signer to return Allow or Deny. Use is_principal=false for resource policies.

Instructions

Lint a policy with Wasabi's ValidatePolicy and, given use_action, use_resource and use_service (iam, sts or s3), evaluate it for the signer. is_principal=true (default) for an identity policy (IsPrincipal is left out of the request, as Wasabi requires), false for a resource policy (sends IsPrincipal=false). Returns Wasabi's result as JSON in validation, plus evaluation (Allow or Deny, as Wasabi sends it) when the policy was evaluated. A Wasabi error is returned as an error with its code, message and any detail, never as a passing result.

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_document": "<policy_document>"
    },
    "name": "iam_policy_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
use_actionNo
use_serviceNo
is_principalNo
use_resourceNo
policy_documentYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the wire-level behavior: IsPrincipal is omitted for identity policies because Wasabi requires it, and IsPrincipal=false is sent for resource policies. It also states that Wasabi errors surface as errors with code/message/detail and are never reported as a passing validation, which is exactly the failure-mode context an agent needs to interpret results.

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?

Purpose is front-loaded in the first clause and every sentence carries information. The single dense paragraph is slightly run-on, with the evaluation behavior and error handling strung together in one block rather than separated, but nothing is 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?

An output schema exists, so the description did not need to enumerate return fields, yet it still clarifies that results arrive in `validation` plus `evaluation` (Allow/Deny) only when evaluated — useful for conditional-response reasoning. Remaining gaps are minor: no note on permissions required to call ValidatePolicy and no indication of whether an unevaluated result is possible when evaluation parameters are supplied.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, and it explains four of five parameters: is_principal's identity-vs-resource meaning and default, and use_action/use_resource/use_service as the evaluation inputs (with the iam/sts/s3 enumeration restated). It does not give the expected string form of use_action or use_resource (e.g., 's3:GetObject'), and policy_document is left uncharacterized.

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 opens with a specific verb+resource ('Lint a policy with Wasabi's ValidatePolicy') and adds a second, clearly delimited capability ('evaluate it for the signer'). It is obviously not a CRUD policy tool, so it separates cleanly from siblings like iam_policy_get, iam_policy_create, or iam_policy_attach.

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 rather than stated: linting/simulating a policy document suggests a pre-flight check before creating or attaching a policy, but the description never says 'use this before X' or 'do not use this to fetch an existing policy.' No alternative tool is named for the closest adjacent need (inspecting a stored policy).

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