Skip to main content
Glama

dynamodb_table_create

Create a new DynamoDB table by specifying table name, key schema, and attribute definitions for AWS database setup.

Instructions

Create a new DynamoDB table

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_nameYesName of the DynamoDB table
key_schemaYesKey schema for table creation
attribute_definitionsYesAttribute definitions for table creation

Implementation Reference

  • Executes the dynamodb_table_create tool by calling the AWS DynamoDB create_table API with the provided table_name, key_schema, and attribute_definitions, using pay-per-request billing.
    if name == "dynamodb_table_create":
        response = dynamodb_client.create_table(
            TableName=arguments["table_name"],
            KeySchema=arguments["key_schema"],
            AttributeDefinitions=arguments["attribute_definitions"],
            BillingMode="PAY_PER_REQUEST"
        )
  • Defines the Tool object including input schema validation for dynamodb_table_create.
        name="dynamodb_table_create",
        description="Create a new DynamoDB table",
        inputSchema={
            "type": "object",
            "properties": {
                "table_name": {
                    "type": "string",
                    "description": "Name of the DynamoDB table"
                },
                "key_schema": {
                    "type": "array",
                    "description": "Key schema for table creation"
                },
                "attribute_definitions": {
                    "type": "array",
                    "description": "Attribute definitions for table creation"
                }
            },
            "required": ["table_name", "key_schema", "attribute_definitions"]
        }
    ),
  • Registers all AWS tools, including dynamodb_table_create, via the MCP server.list_tools() handler by returning get_aws_tools().
    @server.list_tools()
    async def list_tools() -> list[Tool]:
        """List available AWS tools"""
        logger.debug("Handling list_tools request")
        return get_aws_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