Tools
The write tools accept a
condition_expression, such as attribute_not_exists(pk); when it is false nothing is written.
Safety
- Read-only at the source. Give the read role only
GetItem,Query,Scan,DescribeTableandListTables. Danube also refuses the write tools on aread_onlyconnection before calling AWS. - Scan is capped at 100 items by default. Scan reads and bills every item it passes, even ones a filter drops, so prefer Query on a key or index for large tables.
- Numbers beyond what JSON represents exactly (above 2^53) come back as strings so no digit is lost.
Example prompts
- “Describe the
orderstable: keys, indexes and how big it is.” - “Get the order with
pk = customer#42andsk = order#0007.” - “Query the
status-indexfor items with statuspayment_failed, newest first, 20 at most.” - “Set
statustorefundedon ordercustomer#42 / order#0007, only if it is currentlypayment_failed.”
