Skip to main content
Glama

dynamodb_batch_get

Retrieve multiple items from DynamoDB tables in a single operation to reduce API calls and improve data fetching efficiency.

Instructions

Batch get multiple items from DynamoDB tables

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_itemsYesMap of table names to keys to retrieve

Implementation Reference

  • Executes the dynamodb_batch_get tool by calling batch_get_item on the DynamoDB client with the provided request_items from arguments.
    elif name == "dynamodb_batch_get":
        response = dynamodb_client.batch_get_item(
            RequestItems=arguments["request_items"]
        )
  • 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"]
        }
    ),
  • Registers all AWS tools, including dynamodb_batch_get, by returning the list from get_aws_tools() in response to list_tools requests.
    @server.list_tools()
    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