Skip to main content
Glama

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
NameRequiredDescriptionDefault
table_nameYesName of the DynamoDB table

Implementation Reference

  • 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"] )
  • 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"] } ),
  • 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()
  • 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() ]

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/rishikavikondala/mcp-server-aws'

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