query_table
Query a known auction data table with filters, sorting, field selection, and pagination to return exact item records.
Instructions
Query one known table with precise filtering, sorting, and field selection.
Use this when you already know the target table (from list_tables) and want
exact control — e.g. "the 10 most expensive Rolex watches sold since 2020"
becomes table="watches", filters on designer/sale_date, sort by
usd_price_decimal desc, limit 10. If you don't know which table holds the
item, use search (whole-market) instead; for aggregate figures (median,
percentiles) use market_stats.
Args: table: Table alias (call list_tables for the full set). "gems" = loose stones (use for gemstone valuations); "jewelry" = finished pieces. fields: List of column names to return (e.g., ["item_title", "vendor", "usd_price_decimal"]). If not specified, returns all columns. filters: List of filter conditions. Each filter is a dict with: - "field": column name - "op": operator — one of "eq", "neq", "gt", "gte", "lt", "lte", "like", "in", "not_in", "is_null", "is_not_null" - "value": the value to compare against Example: [{"field": "vendor", "op": "eq", "value": "Phillips"}, {"field": "usd_price_decimal", "op": "gte", "value": 50000}] sort_field: Column name to sort by (e.g., "usd_price_decimal" or "sale_date") sort_direction: "asc" or "desc" (default: "desc") limit: Maximum rows to return (default: 20, max: 500) offset: Number of rows to skip for pagination (default: 0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| table | Yes | ||
| fields | No | ||
| offset | No | ||
| filters | No | ||
| sort_field | No | ||
| sort_direction | No | desc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |