dynamodb_describe_ttl
Retrieve Time to Live (TTL) configuration for a DynamoDB table to manage data expiration and storage optimization.
Instructions
Get the TTL settings for a table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Name of the DynamoDB table |
Implementation Reference
- src/mcp_server_aws/server.py:208-211 (handler)The core handler logic for the 'dynamodb_describe_ttl' tool. It retrieves the DynamoDB client and calls describe_time_to_live with the provided table_name argument.elif name == "dynamodb_describe_ttl": response = dynamodb_client.describe_time_to_live( TableName=arguments["table_name"] )
- src/mcp_server_aws/tools.py:386-399 (schema)Defines the tool's metadata, description, and input schema for validation, specifying that 'table_name' is required.Tool( name="dynamodb_describe_ttl", description="Get the TTL settings for a table", inputSchema={ "type": "object", "properties": { "table_name": { "type": "string", "description": "Name of the DynamoDB table" } }, "required": ["table_name"] } ),
- src/mcp_server_aws/server.py:136-140 (registration)The MCP server handler that lists all available tools, including 'dynamodb_describe_ttl' via get_aws_tools().async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()
- src/mcp_server_aws/tools.py:450-454 (registration)Combines S3 and DynamoDB tools, including the 'dynamodb_describe_ttl' tool from get_dynamodb_tools().def get_aws_tools() -> list[Tool]: return [ *get_s3_tools(), *get_dynamodb_tools() ]