Skip to main content
Glama

dynamodb_item_scan

Scan items in a DynamoDB table using filter expressions to retrieve specific data. This tool helps query and analyze table contents by applying custom search criteria.

Instructions

Scan items in a DynamoDB table

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_nameYesName of the DynamoDB table
filter_expressionNoFilter expression
expression_attributesNo

Implementation Reference

  • Handler implementation for the dynamodb_item_scan tool: builds scan parameters from arguments and executes dynamodb_client.scan()
    elif name == "dynamodb_item_scan": scan_params = {"TableName": arguments["table_name"]} if "filter_expression" in arguments: scan_params["FilterExpression"] = arguments["filter_expression"] if "expression_attributes" in arguments: attrs = arguments["expression_attributes"] if "names" in attrs: scan_params["ExpressionAttributeNames"] = attrs["names"] if "values" in attrs: scan_params["ExpressionAttributeValues"] = attrs["values"] response = dynamodb_client.scan(**scan_params)
  • Input schema and Tool definition for dynamodb_item_scan, specifying parameters like table_name, filter_expression, and expression_attributes
    Tool( name="dynamodb_item_scan", description="Scan items in a DynamoDB table", inputSchema={ "type": "object", "properties": { "table_name": { "type": "string", "description": "Name of the DynamoDB table" }, "filter_expression": { "type": "string", "description": "Filter expression" }, "expression_attributes": { "type": "object", "properties": { "values": { "type": "object", "description": "Expression attribute values" }, "names": { "type": "object", "description": "Expression attribute names" } } } }, "required": ["table_name"] } ),
  • Tool registration via the list_tools handler, which returns get_aws_tools() including the dynamodb_item_scan tool definition 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