Skip to main content
Glama

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
NameRequiredDescriptionDefault
attribute_definitionsYesAttribute definitions for table creation
key_schemaYesKey schema for table creation
table_nameYesName of the DynamoDB table

Implementation Reference

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

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