accessanalyzer_get_analyzer
Retrieve detailed information about a specific AWS IAM Access Analyzer by name to review security findings and access policies.
Instructions
Retrieve details of a specific analyzer by name.
Parameters:
aws_region (str): The AWS region - use 'us-east-1' if not specified.
analyzer_name (str): The name of the analyzer to retrieve.
Returns:
str: JSON-formatted details of the analyzer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aws_region | Yes | ||
| analyzer_name | Yes |
Implementation Reference
- server.py:948-966 (handler)The @mcp.tool()-decorated handler function that implements the 'accessanalyzer_get_analyzer' tool. It fetches and returns JSON details of the specified IAM Access Analyzer using the boto3 accessanalyzer client.@mcp.tool() async def accessanalyzer_get_analyzer( aws_region: str, analyzer_name: str ) -> str: """ Retrieve details of a specific analyzer by name. Parameters: aws_region (str): The AWS region - use 'us-east-1' if not specified. analyzer_name (str): The name of the analyzer to retrieve. Returns: str: JSON-formatted details of the analyzer. """ client = boto3.client('accessanalyzer', region_name=aws_region) response = client.get_analyzer(analyzerName=analyzer_name) analyzer = response.get('analyzer', {}) return json.dumps(analyzer, indent=2, cls=DateTimeEncoder)