Skip to main content
Glama

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
NameRequiredDescriptionDefault
parametersYesList of parameter lists for each statement
statementsYesList of PartiQL statements to execute

Implementation Reference

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

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