dynamodb_batch_execute
Execute multiple PartiQL statements in a single batch with specified parameters, simplifying DynamoDB operations for streamlined data management.
Instructions
Execute multiple PartiQL statements in a batch
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | Yes | List of parameter lists for each statement | |
| statements | Yes | List of PartiQL statements to execute |
Implementation Reference
- src/mcp_server_aws/server.py:333-339 (handler)Executes the batch_execute_statement operation on DynamoDB client using the provided list of PartiQL statements and their corresponding parameters.elif name == "dynamodb_batch_execute": response = dynamodb_client.batch_execute_statement( Statements=[{ 'Statement': statement, 'Parameters': params } for statement, params in zip(arguments["statements"], arguments["parameters"])] )
- src/mcp_server_aws/tools.py:423-446 (schema)Defines the input schema for the tool, specifying arrays of statements and parameters.Tool( name="dynamodb_batch_execute", description="Execute multiple PartiQL statements in a batch", inputSchema={ "type": "object", "properties": { "statements": { "type": "array", "description": "List of PartiQL statements to execute", "items": { "type": "string" } }, "parameters": { "type": "array", "description": "List of parameter lists for each statement", "items": { "type": "array" } } }, "required": ["statements", "parameters"] } ),
- src/mcp_server_aws/server.py:136-140 (registration)Registers the tool by including it in the list returned by list_tools via get_aws_tools().async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()