query
Retrieves items from a DynamoDB table or index by partition key value, with optional sort key filtering and pagination controls.
Instructions
Returns items from a table or index matching a partition key value, with optional sort key filtering.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_name": "<table_name>",
"key_condition_expression": "<key_condition_expression>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | The maximum number of items to evaluate | |
| select | No | The attributes to be returned. Valid values: ALL_ATTRIBUTES, ALL_PROJECTED_ATTRIBUTES, SPECIFIC_ATTRIBUTES, COUNT | |
| index_name | No | The name of a GSI | |
| table_name | Yes | Table Name or Amazon Resource Name (ARN) | |
| region_name | No | The aws region to run the tool | |
| filter_expression | No | Filter conditions expression that DynamoDB applies to filter out data | |
| scan_index_forward | No | Ascending (true) or descending (false). | |
| exclusive_start_key | No | Use the LastEvaluatedKey from the previous call. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format). | |
| projection_expression | No | Attributes to retrieve, can include scalars, sets, or elements of a JSON document. | |
| key_condition_expression | Yes | Key condition expression. Must perform an equality test on partition key value. | |
| expression_attribute_names | No | Substitution tokens for attribute names in an expression. | |
| expression_attribute_values | No | Values that can be substituted in an expression. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format). |