Skip to main content
Glama
Brucedh

AWS‑IReveal‑MCP

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
NameRequiredDescriptionDefault
aws_regionYes
analyzer_nameYes

Implementation Reference

  • 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)

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/Brucedh/aws-ireveal-mcp'

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