Skip to main content
Glama

config_describe_recorder_status

Retrieve and display the current status of AWS Config recorders in a specified region for monitoring and troubleshooting purposes.

Instructions

Describe status of AWS Config recorder(s). Parameters: aws_region (str): The AWS region - use 'us-east-1' if not specified. Returns: JSON list of ConfigurationRecorderStatus objects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aws_regionYes

Implementation Reference

  • The main handler function for the 'config_describe_recorder_status' tool. Decorated with @mcp.tool() for automatic registration. It creates a boto3 config client, calls describe_configuration_recorder_status(), extracts statuses, and returns JSON string using DateTimeEncoder.
    @mcp.tool() async def config_describe_recorder_status(aws_region: str) -> str: """ Describe status of AWS Config recorder(s). Parameters: aws_region (str): The AWS region - use 'us-east-1' if not specified. Returns: JSON list of ConfigurationRecorderStatus objects. """ client = boto3.client('config', region_name=aws_region) resp = client.describe_configuration_recorder_status() statuses = resp.get("ConfigurationRecorderStatuses", []) return json.dumps(statuses, indent=2, cls=DateTimeEncoder)
  • server.py:687-687 (registration)
    The @mcp.tool() decorator registers this function as an MCP tool with the name derived from the function name 'config_describe_recorder_status'.
    @mcp.tool()
  • Helper class DateTimeEncoder used to serialize datetime objects to ISO strings in the JSON response of the tool.
    class DateTimeEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, datetime.datetime): return o.isoformat() # Convert datetime to ISO-format string. return super().default(o)

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