Skip to main content
Glama

dynamodb_item_get

Retrieve a specific item from a DynamoDB table by providing the table name and key attributes.

Instructions

Get an item from a DynamoDB table

Input Schema

NameRequiredDescriptionDefault
keyYesKey to identify the item
table_nameYesName of the DynamoDB table

Input Schema (JSON Schema)

{ "properties": { "key": { "description": "Key to identify the item", "type": "object" }, "table_name": { "description": "Name of the DynamoDB table", "type": "string" } }, "required": [ "table_name", "key" ], "type": "object" }

Implementation Reference

  • The core handler logic for the 'dynamodb_item_get' tool. It calls the boto3 DynamoDB client's get_item method with the provided table_name and key to retrieve the item.
    elif name == "dynamodb_item_get": response = dynamodb_client.get_item( TableName=arguments["table_name"], Key=arguments["key"] )
  • Tool schema definition including name, description, and input schema requiring 'table_name' (string) and 'key' (object). This defines the expected input structure for validation.
    Tool( name="dynamodb_item_get", description="Get an item from a DynamoDB table", inputSchema={ "type": "object", "properties": { "table_name": { "type": "string", "description": "Name of the DynamoDB table" }, "key": { "type": "object", "description": "Key to identify the item" } }, "required": ["table_name", "key"] } ),
  • Registers the tool list with the MCP server by returning get_aws_tools(), which includes the dynamodb_item_get tool from tools.py.
    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