accessanalyzer_get_finding
Retrieve detailed JSON information about a specific AWS IAM Access Analyzer finding by providing region, analyzer ARN, and finding ID.
Instructions
Retrieve detailed information about a single finding.
Parameters:
aws_region (str): The AWS region - use 'us-east-1' if not specified.
analyzer_arn (str): The ARN of the analyzer.
finding_id (str): The ID of the finding to retrieve.
Returns:
str: JSON-formatted details of the finding.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aws_region | Yes | ||
| analyzer_arn | Yes | ||
| finding_id | Yes |
Implementation Reference
- server.py:1005-1025 (handler)The handler function decorated with @mcp.tool(), implementing the tool logic to retrieve a specific IAM Access Analyzer finding using the AWS boto3 SDK. The function parameters define the input schema via type annotations and docstring.@mcp.tool() async def accessanalyzer_get_finding( aws_region: str, analyzer_arn: str, finding_id: str ) -> str: """ Retrieve detailed information about a single finding. Parameters: aws_region (str): The AWS region - use 'us-east-1' if not specified. analyzer_arn (str): The ARN of the analyzer. finding_id (str): The ID of the finding to retrieve. Returns: str: JSON-formatted details of the finding. """ client = boto3.client('accessanalyzer', region_name=aws_region) response = client.get_finding(analyzerArn=analyzer_arn, id=finding_id) finding = response.get('finding', {}) return json.dumps(finding, indent=2, cls=DateTimeEncoder)