Skip to main content
Glama

rush_iam_audit

Audit cloud SDK calls and Terraform policies for wildcard permissions, then synthesize minimal least-privilege IAM policies with actionable findings and a summary.

Instructions

Audit cloud SDK calls in code, inspect Terraform HCL2 policies for wildcards, and synthesize minimal least-privilege IAM policies. Returns {status, findings[], summary}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
allow_slowNo
allow_buildNo
allow_browserNo
allow_networkNo
allow_downloadNo
allow_cache_writeNo
output_policy_fileNo
allow_artifact_writeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNo
toolNo
engineNo
statusNo
metricsNo
summaryNo
findingsNo
metadataNo
artifactsNo
duration_msNo
review_kindNo
engine_versionNo
review_providerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changedv0.2.2
    • addedInput schema / properties / allow_artifact_write
      Added value: +{
      +  "default": false,
      +  "title": "Allow Artifact Write",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / allow_browser
      Added value: +{
      +  "default": false,
      +  "title": "Allow Browser",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / allow_build
      Added value: +{
      +  "default": false,
      +  "title": "Allow Build",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / allow_cache_write
      Added value: +{
      +  "default": false,
      +  "title": "Allow Cache Write",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / allow_download
      Added value: +{
      +  "default": false,
      +  "title": "Allow Download",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / allow_network
      Added value: +{
      +  "default": false,
      +  "title": "Allow Network",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / allow_slow
      Added value: +{
      +  "default": false,
      +  "title": "Allow Slow",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / output_policy_file
      Added value: +{
      +  "default": "",
      +  "title": "Output Policy File",
      +  "type": "string"
      +}
    • addedInput schema / properties / path
      Added value: +{
      +  "format": "path",
      +  "title": "Path",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "path"
      +]
    • changedInput schema / title
      Previous value: -"mcp_rush_iam_auditArguments"New value: +"__call__Arguments"
    • addedOutput schema / $defs
      Added value: +{
      +  "Finding": {
      +    "description": "One issue from any engine. total=False because not all engines\npopulate every field (e.g. heuristics may lack `rule`).",
      +    "properties": {
      +      "column": {
      +        "title": "Column",
      +        "type": "integer"
      +      },
      +      "evidence": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Evidence"
      +      },
      +      "fingerprint": {
      +        "title": "Fingerprint",
      +        "type": "string"
      +      },
      +      "fix": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Fix"
      +      },
      +      "freshness": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Freshness"
      +      },
      +      "line": {
      +        "title": "Line",
      +        "type": "integer"
      +      },
      +      "message": {
      +        "title": "Message",
      +        "type": "string"
      +      },
      +      "patch": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Patch"
      +      },
      +      "path": {
      +        "title": "Path",
      +        "type": "string"
      +      },
      +      "provenance": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Provenance"
      +      },
      +      "remediation": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Remediation"
      +      },
      +      "rule": {
      +        "title": "Rule",
      +        "type": "string"
      +      },
      +      "rule_id": {
      +        "title": "Rule Id",
      +        "type": "string"
      +      },
      +      "severity": {
      +        "enum": [
      +          "info",
      +          "warn",
      +          "error"
      +        ],
      +        "title": "Severity",
      +        "type": "string"
      +      },
      +      "suggested_fix": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Suggested Fix"
      +      }
      +    },
      +    "title": "Finding",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / artifacts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Artifacts"
      +}
    • addedOutput schema / properties / duration_ms
      Added value: +{
      +  "default": null,
      +  "title": "Duration Ms",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / engine
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Engine"
      +}
    • addedOutput schema / properties / engine_version
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Engine Version"
      +}
    • addedOutput schema / properties / findings
      Added value: +{
      +  "default": null,
      +  "items": {
      +    "$ref": "#/$defs/Finding"
      +  },
      +  "title": "Findings",
      +  "type": "array"
      +}
    • addedOutput schema / properties / metadata
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Metadata"
      +}
    • addedOutput schema / properties / metrics
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Metrics"
      +}
    • addedOutput schema / properties / raw
      Added value: +{
      +  "anyOf": [
      +    {},
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Raw"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "title": "Result",
      -  "type": "string"
      -}
    • addedOutput schema / properties / review_kind
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "heuristic",
      +        "llm"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Review Kind"
      +}
    • addedOutput schema / properties / review_provider
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Review Provider"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "default": null,
      +  "enum": [
      +    "ok",
      +    "warn",
      +    "fail",
      +    "error",
      +    "skipped"
      +  ],
      +  "title": "Status",
      +  "type": "string"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "default": null,
      +  "title": "Summary",
      +  "type": "string"
      +}
    • addedOutput schema / properties / tool
      Added value: +{
      +  "default": null,
      +  "title": "Tool",
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"mcp_rush_iam_auditOutput"New value: +"ToolResult"
  2. First observedv0.3.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states that the tool audits and synthesizes policies and returns a specific shape, but it does not disclose side effects such as writing an output policy file, whether it is read-only, or whether it requires network/sandbox permissions (despite many allow_* parameters). The return shape is helpful but insufficient for behavioral transparency.

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?

Two sentences with no fluff, and the main purpose is front-loaded before the return shape. It is efficient, though slightly under-specified for the tool's complexity; still, for what it contains, the structure is tight.

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

Completeness2/5

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

Given 9 parameters, zero parameter documentation, no usage guidance, and no annotations, the description is incomplete. It does state the return shape, but doesn't explain parameter semantics, invocation context, or side effects. An agent would need to guess how to correctly call this tool for a meaningful audit.

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

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description does not explain any of the 9 parameters. It doesn't mention that 'path' is required, what 'output_policy_file' controls, or what the 'allow_*' booleans mean. The description adds no meaning beyond the raw schema titles.

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 names specific actions (audit cloud SDK calls, inspect Terraform HCL2 for wildcards, synthesize least-privilege IAM policies) and a clear resource domain (IAM). This is detailed enough that an agent can distinguish it from generic siblings like rush_security or rush_iac without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance on when to choose this tool over alternatives, no prerequisites, and no exclusions. It merely states the purpose; the agent must infer when it is appropriate. There is no reference to sibling tools or contexts where this tool is or isn't preferred.

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