Skip to main content
Glama

WritersLogic developer agents

iam-minimize

IAM policy action minimizer: wildcards to the required action list — Takes an AWS IAM policy JSON and the exact list of actions a task needs (up to 300), and returns the policy with each Allow statement's Action narrowed to just those actions, plus what the original over-grants: wildcards, unused actions, Allow+NotAction, required actions no statement grants, and required actions an unconditional Deny blocks. For an agent that is about to attach or propose a policy

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>",
      "requiredActions": "<requiredActions>"
    },
    "name": "iam-minimize"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYesThe IAM policy document as a JSON object or JSON string. At most 60,000 characters.
knownActionsNoOptional catalog of real actions (from the AWS service reference JSON), used to count what each wildcard grants.
requiredActionsYesConcrete actions the task needs, e.g. s3:GetObject. No wildcards.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources