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
| Name | Required | Description | Default |
|---|---|---|---|
| aws_region | Yes |
Implementation Reference
- server.py:687-701 (handler)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()
- server.py:616-620 (helper)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)