An open source Model Context Protocol (MCP) server that helps AI coding assistants quickly create baseline IAM policies by analyzing AWS SDK method calls in source code
Three tools with action-verb naming (generate_*, fix_*) and documented schemas. However, parameter descriptions are minimal or absent, and output schemas are not visible in the source code. Tool descriptions are present but brief (34-73 chars, below the 50-200 char baseline for LLM-optimized descriptions). No evidence of error handling patterns, validation guidance, or recovery instructions. The server appears functional but lacks the depth required for production-grade agent interactions.
Analyzes an AWS AccessDenied error message and generates a baseline IAM policy that would allow the operation to succeed
Analyzes source code to extract AWS SDK method calls and infer required IAM permissions
Generates a baseline IAM policy document based on detected AWS SDK calls or AccessDenied errors
Parameter descriptions are missing or insufficient. 'SourceFiles', 'Region', 'Account', and 'ErrorMessage' have descriptions, but they lack actionable guidance about format, constraints, or dependencies. E.g., 'Region' should specify valid AWS region format; 'Account' should indicate 12-digit numeric format; 'SourceFiles' should state supported languages (Python, Go, TypeScript per README) and file path requirements.
Output schemas are not documented in the source code. The test file shows tools being called and returning results, but the response structure is not visible. LLMs cannot plan follow-up calls or extract necessary fields (e.g., policy ARNs, generated statements) without knowing the output shape. This violates the schema documentation requirement.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 22 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 33 | - | v1 |
Tool descriptions are too brief (34-73 characters) to guide LLM selection. 'Analyzes application source code to generate baseline IAM policies for application roles' is clear but lacks context about when to use it vs. other tools, what prerequisite information is needed, or what the output contains. Baseline for LLM-optimized descriptions is 50-200 chars with WHAT/WHEN/PREREQUISITES clarity.
No error handling guidance. If 'generate_application_policies' fails to parse a source file (syntax error, unsupported language, unreadable file), the error response should guide the LLM: e.g., 'Failed to parse lambda.py, ensure it is valid Python and uses supported AWS SDK syntax. Supported languages: Python, Go, TypeScript.' Instead, no recovery patterns are visible in the tool definitions.
'fix_access_denied' has a WRITE risk classification but its description ('Applies a generated IAM policy to fix AccessDenied errors') does not explicitly state that this is a destructive operation with side effects on live AWS resources. The description must say: 'Modifies IAM policies in your AWS account, this is an irreversible operation. Ensure the policy has been reviewed before calling.' Agents need explicit knowledge of side effects.
Parameter 'Region' should be constrained to valid AWS regions (enum or regex pattern) or have a description listing examples: 'Valid values: us-east-1, us-west-2, eu-west-1, etc. See https://docs.aws.amazon.com/general/latest/gr/rande.html for full list.' Currently, the description 'AWS region for policy ARN construction' leaves the LLM guessing whether 'usa-east' or '1' are valid.
Parameter 'Account' lacks format specification. The description should state: 'AWS account ID as a 12-digit numeric string (e.g., 123456789012).' Current description 'AWS account ID for policy ARN construction' does not prevent the LLM from passing invalid formats like 'account-123' or '12345'.
Parameter 'SourceFiles' lacks supported language documentation. The README states support for Python, Go, and TypeScript, but the tool description does not. Parameter description should specify: 'Array of file paths to analyze. Supported file types: .py (Python), .go (Go), .ts/.js (TypeScript). Files must be readable and contain AWS SDK API calls.' This prevents LLMs from passing unsupported file types (e.g., .java, .rb).
No documentation of tool output or side effects. 'generate_application_policies' likely returns a policy document or set of statements, but the response structure is not documented. 'fix_access_denied' modifies AWS state, but no documentation clarifies whether it returns confirmation, policy ARN, or applied statement details. LLMs cannot chain tools without knowing output format.