Skip to main content
Glama

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
NameRequiredDescriptionDefault
request_itemsYesMap of table names to keys to retrieve

Implementation Reference

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

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