dynamodb_batch_get
Retrieve multiple items concurrently from one or more DynamoDB tables by specifying table names and keys in a single request, optimizing data fetching efficiency.
Instructions
Batch get multiple items from DynamoDB tables
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_items | Yes | Map of table names to keys to retrieve |
Implementation Reference
- src/mcp_server_aws/server.py:261-264 (handler)Executes the dynamodb_batch_get tool by calling boto3 DynamoDB client's batch_get_item method with the provided RequestItems from arguments.elif name == "dynamodb_batch_get": response = dynamodb_client.batch_get_item( RequestItems=arguments["request_items"] )
- src/mcp_server_aws/tools.py:324-355 (schema)Defines the input schema and metadata for the dynamodb_batch_get tool.Tool( name="dynamodb_batch_get", description="Batch get multiple items from DynamoDB tables", inputSchema={ "type": "object", "properties": { "request_items": { "type": "object", "description": "Map of table names to keys to retrieve", "additionalProperties": { "type": "object", "properties": { "Keys": { "type": "array", "items": { "type": "object" } }, "ConsistentRead": { "type": "boolean" }, "ProjectionExpression": { "type": "string" } }, "required": ["Keys"] } } }, "required": ["request_items"] } ),
- src/mcp_server_aws/server.py:136-140 (registration)Registers the dynamodb_batch_get tool (among others) by returning the list of AWS tools via get_aws_tools() in response to list_tools requests.async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()