Skip to main content
Glama

dynamodb_item_put

Add or update an item in a DynamoDB table by specifying the table name and item data.

Instructions

Put an item into a DynamoDB table

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_nameYesName of the DynamoDB table
itemYesItem data to put

Implementation Reference

  • The core handler logic for the 'dynamodb_item_put' tool within the handle_dynamodb_operations function. It invokes the DynamoDB client's put_item method using the provided table_name and item arguments.
    elif name == "dynamodb_item_put":
        response = dynamodb_client.put_item(
            TableName=arguments["table_name"],
            Item=arguments["item"]
        )
  • The input schema definition for the 'dynamodb_item_put' tool, specifying required parameters: table_name (string) and item (object).
    Tool(
        name="dynamodb_item_put",
        description="Put an item into a DynamoDB table",
        inputSchema={
            "type": "object",
            "properties": {
                "table_name": {
                    "type": "string",
                    "description": "Name of the DynamoDB table"
                },
                "item": {
                    "type": "object",
                    "description": "Item data to put"
                }
            },
            "required": ["table_name", "item"]
        }
    ),
  • The list_tools handler registration that returns the list of AWS tools from get_aws_tools(), which includes the 'dynamodb_item_put' tool with its schema.
    @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