Skip to main content
Glama

security_iam_policy

Read-only

AWS IAM policy security check — Offline audit of an AWS IAM identity, resource or trust policy (JSON). Flags full admin (Action * / Resource ), service-wide wildcards (iam:, kms:), Allow+NotAction/NotResource, privilege-escalation actions (CreatePolicyVersion, Attach/PutPolicy, CreateAccessKey, UpdateAssumeRolePolicy...), iam:PassRole on * with compute-creation combos, sensitive data actions on *, public Principal * without Condition, OIDC web-identity trust with no :sub condition, cross-account principals, duplicate Sids, old Version and size limits. Verdict PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK with score, grade and fixes. Params: policy= (JSON; also accepts get-policy-version / get-account-authorization-details wrappers and URL-encoded documents) or url= (raw or GitHub blob). Price: $0.006 USDC (Base, via x402).

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": "<policy>"
    },
    "name": "security_iam_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYes{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"*","Resource":"*"}]}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds genuinely useful context beyond that: it is offline, it returns a PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK verdict with score, grade and fixes, and it costs $0.006 USDC via x402 — a payment precondition an agent must know before calling. The check list is thorough but reads as marketing enumeration rather than behavioral disclosure.

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 and input modes are front-loaded, and the trailing params/price sentence is well placed. The long parenthetical catalogue of escalation actions is dense but each item is substantive; still, the single-paragraph block could be split for scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by stating the verdict tiers and that score, grade and fixes are returned. For a one-parameter tool it covers input forms, behavior, cost and output shape — everything needed to call it correctly, apart from the stray 'url=' mention.

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 100% for the single 'policy' parameter, so the baseline is 3. The description does add real meaning — accepted wrapper formats (get-policy-version, get-account-authorization-details) and URL-encoded documents — but it also advertises a 'url=' parameter that does not exist in the input schema, which could mislead an agent into passing an unsupported argument.

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: 'Offline audit of an AWS IAM identity, resource or trust policy (JSON)', then enumerates exactly what is checked. This makes it immediately distinguishable from the sibling security_* tools (apache/nginx/k8s/cert checks), which target entirely different artifacts.

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?

'Offline audit' establishes the key precondition — no AWS credentials or live account access required — and the params note tells the agent which input forms to supply (raw JSON, wrapper output, or a URL). It stops short of explicit when-not-to-use guidance or naming an alternative tool for adjacent tasks such as cert or header review.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources