Use the read_table_rows tool to query data from a specific table. You can select specific columns, apply equality filters, set a limit on results, and define the sort order.
Arguments:
table_name (str): Name of the table.columns (str, default: "*"): Comma-separated list of columns to select.filters (Dict[str, Any], optional): Dictionary of column-value pairs for equality filtering (eq).limit (int, optional): Maximum number of rows to return.order_by (str, optional): Column to order results by.ascending (bool, default: True): Sort direction.
Returns: A list of dictionaries, where each dictionary represents a row.
# To get all users
read_table_rows(table_name="users")
# To get specific columns
read_table_rows(table_name="users", columns="id,name,email")
# To filter rows
read_table_rows(table_name="users", filters={"is_active": True})
# To limit results
read_table_rows(table_name="users", limit=10)
# To order results
read_table_rows(table_name="users", order_by="created_at", ascending=False)