Skip to main content
Glama
OmniNomadLLC

aws-audit-mcp

by OmniNomadLLC

audit_lambda_resource_policies

Read-only

Scan Lambda resource policies for overly broad invoke access. Flags wildcard or service principals lacking source conditions as risk findings.

Instructions

Audit Lambda function resource policies for overly broad invoke access.

Scans every Lambda function in the region (AWS_REGION or us-east-1 when the region argument is omitted) and inspects its resource policy, if any. An Allow statement with a wildcard principal ("" or {"AWS": ""}) and no SourceArn/SourceAccount condition is HIGH: anyone can invoke the function. A service principal (for example s3.amazonaws.com) without any source condition is MEDIUM: any account's use of that service can invoke it. Service principals scoped by a SourceArn or SourceAccount condition are normal and are not flagged.

Returns a dict {check, ok, findings, scanned} where ok is true only when no findings were produced, findings is a list of normalized finding dicts (detail includes the statement sid, the principal and whether a condition exists), and scanned is the number of functions examined.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regionNo
Behavior5/5

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

Beyond the readOnlyHint and non-destructive annotations, the description details scanning scope, region defaulting to AWS_REGION or us-east-1, severity classification logic for wildcard and service principals, and the exact conditions under which findings are produced. This is far more than the annotations alone provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is thorough yet economical. It front-loads the purpose, then provides scanning behavior, severity rules, and output format. No sentence is wasted, and the structure flows logically from purpose to invocation details to return value.

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 fully explains the return shape: a dict with check, ok, findings, and scanned keys, including details about finding normalization. The single optional parameter is also clarified. The tool is complex, but nothing necessary for correct invocation and interpretation is missing.

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

Parameters5/5

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

The schema only defines an optional region parameter with zero description coverage. The tool description compensates by explaining that the region argument defaults to AWS_REGION or us-east-1 when omitted, giving the agent the exact behavior needed to invoke it correctly.

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 begins with a specific verb and resource: 'Audit Lambda function resource policies for overly broad invoke access.' It clearly distinguishes this tool from its audit siblings by targeting Lambda resource policies and defining the exact scope of what is inspected.

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?

The description makes the audit context clear and explains the scanning behavior, but it does not explicitly state when to prefer this tool over alternatives such as audit_full_posture or audit_world_open_security_groups. Usage is implied rather than directly contrasted with siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OmniNomadLLC/aws-audit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server