dynamodb_table_create
Create a DynamoDB table by specifying the table name, key schema, and attribute definitions. Designed for AWS MCP Server to streamline table setup via natural language commands.
Instructions
Create a new DynamoDB table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attribute_definitions | Yes | Attribute definitions for table creation | |
| key_schema | Yes | Key schema for table creation | |
| table_name | Yes | Name of the DynamoDB table |
Implementation Reference
- src/mcp_server_aws/server.py:187-193 (handler)The core execution logic for the 'dynamodb_table_create' tool, invoking boto3's create_table method with user-provided table_name, key_schema, and attribute_definitions.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" )
- src/mcp_server_aws/tools.py:119-139 (schema)Defines the Tool object including name, description, and inputSchema for 'dynamodb_table_create', specifying required parameters: table_name, key_schema, attribute_definitions.Tool( 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"] }
- src/mcp_server_aws/server.py:136-140 (registration)Registers all AWS tools (including 'dynamodb_table_create' via get_aws_tools()) with the MCP server through the list_tools decorator.async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()