get_snapshot_summary
Retrieve a summary of AWS environment assessments including security checks, operational insights, and cost analysis from audit snapshots to identify compliance gaps and optimization opportunities.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot_id | Yes |
Implementation Reference
- src/aws_mcp_audit/server.py:130-134 (handler)The handler function for the 'get_snapshot_summary' tool, which retrieves and returns the meta and summary sections from a stored snapshot JSON file. Registered directly via the @mcp.tool decorator on the function definition.@mcp.tool def get_snapshot_summary(snapshot_id: str) -> Dict[str, Any]: p = os.path.join(snapshot_dir(DATA_DIR, snapshot_id), "snapshot.json") snap = read_json(p) return {"meta": snap.get("meta", {}), "summary": snap.get("summary", {})}
- src/aws_mcp_audit/server.py:130-130 (registration)The @mcp.tool decorator registers the get_snapshot_summary function as an MCP tool.@mcp.tool