Version 4.43 or later needs to be installed to add the server automatically
Tools
| Name | Description |
|---|---|
dynamodb_data_model_schema_converter | Retrieves the DynamoDB Data Model Schema Converter Expert prompt. This tool returns a specialized prompt for converting DynamoDB data models (dynamodb_data_model.md) into schema.json - a structured JSON representation used for generating type-safe entities and repositories. By default, also includes instructions for generating usage_data.json with realistic sample data. The prompt guides through: - Reading and parsing dynamodb_data_model.md files - Converting table designs, GSIs, and access patterns into structured JSON format - Validating generated schemas using the dynamodb_data_model_schema_validator tool - Iteratively fixing validation errors (up to 8 iterations) - Generating usage_data.json with realistic sample data from markdown tables (unless generate_usage_data=False) - Creating isolated output folders with schema.json (and optionally usage_data.json) When to set generate_usage_data=False: - User explicitly asks for "schema only", "just schema", "without usage data", "without examples" - User wants to skip sample data generation - User only needs the schema structure for validation or review |
dynamodb_data_model_validation | Validates and tests DynamoDB data models against DynamoDB Local. Use this tool to validate, test, and verify your DynamoDB data model after completing the design phase. This tool automatically checks that all access patterns work correctly by executing them against a local DynamoDB instance. WHEN TO USE: - After completing data model design with dynamodb_data_modeling tool - When user asks to "validate", "test", "check", or "verify" their DynamoDB data model - To ensure all access patterns execute correctly before deploying to production WHAT IT DOES: 1. If dynamodb_data_model.json doesn't exist: - Returns complete JSON generation guide from json_generation_guide.md - Follow the guide to create the JSON file with tables, items, and access_patterns - Call this tool again after creating the JSON to validate 2. If dynamodb_data_model.json exists: - Validates the JSON structure (checks for required keys: tables, items, access_patterns) - Sets up DynamoDB Local environment (Docker/Podman/Finch/nerdctl or Java fallback) - Cleans up existing tables from previous validation runs - Creates tables and inserts test data from your model specification - Tests all defined access patterns by executing their AWS CLI implementations - Saves detailed validation results to dynamodb_model_validation.json - Transforms results to markdown format for comprehensive review WHAT TO DO ON SUCCESSFUL COMPLETION: After validation completes, you MUST present the user with TWO options: 1. Deploy to AWS: Call `generate_resources` tool with resource_type='cdk' to create a CDK app for provisioning tables 2. Generate Python code: Call `dynamodb_data_model_schema_converter` to convert the model to schema.json, then generate code The user can choose one or both options. If they choose CDK first, you can still generate Python code afterward. |
generate_data_access_layer | Generate Python code for a data access layer to interact with your DynamoDB tables. š“ PREREQUISITE: Before calling this tool, you MUST first call `dynamodb_data_model_schema_converter` to generate schema.json from dynamodb_data_model.md. This tool ONLY accepts schema.json. TYPICAL WORKFLOW: 1. Complete data modeling with `dynamodb_data_modeling` tool (creates dynamodb_data_model.md) 2. Validate with `dynamodb_data_model_validation` tool (optional but recommended) 3. Optionally deploy infrastructure with `generate_resources` tool (resource_type='cdk') 4. Convert to schema: Call `dynamodb_data_model_schema_converter` tool (creates schema.json) 5. Generate code: Call this `generate_data_access_layer` tool with the path to schema.json This tool generates a complete data access layer from your schema including: - Type-safe entity classes with field validation using Pydantic - Repository classes with optimistic locking and error handling for all operations - Fully implemented access patterns - Working usage examples with realistic sample data (if usage_data_path provided) |
generate_resources | Generates resources from a DynamoDB data model JSON file (dynamodb_data_model.json). This tool generates various resources based on the provided `dynamodb_data_model.json` file. Currently supports generating a CDK app for deploying DynamoDB tables. Supported resource types: - cdk: CDK app for deploying DynamoDB tables. Generates a CDK app that provisions DynamoDB tables and GSIs as defined in `dynamodb_data_model.json`. WHEN TO USE: - After completing data model validation with `dynamodb_data_model_validation` tool - When user asks to "deploy", "create CDK app", "generate CDK", or "provision infrastructure" - When user wants to deploy their DynamoDB tables and GSIs to AWS using a CDK app WHEN NOT TO USE: - Before completing data model validation with `dynamodb_data_model_validation` tool - Before having created the `dynamodb_data_model.json` file - When user only wants to generate Python code without deploying infrastructure WHAT TO DO ON SUCCESSFUL COMPLETION: After CDK generation completes, you MUST ask the user if they want to: 1. Deploy the CDK app now (provide deployment instructions) 2. Generate Python data access layer code to interact with the tables (call `dynamodb_data_model_schema_converter` then `generate_data_access_layer`) |