Agent that retrieves the schema (field names and types) for a given table
List all fields from a given table, including enum values when known.
Playground
Log inLog in to try this tool. The request uses your session.
POST
item
table_namerequired
Name of the table to get schema for. Wildcard not allowed.
Credits
Fixed cost per item requested. Reading a table's schema is a metadata lookup and scans none of its data.
These usage SKUs can be charged on a call.
SKU
Credits
Description
Tool call
1 per request
Charged once per successful item.
Schemas
item is what you send, config how the tool behaves,
and the response is what you get back.
Item
object
Properties
table_namestringrequired
Name of the table to get schema for. Wildcard not allowed.
Example
{
"table_name": "string"
}
Response
object
Properties
table_namestringrequired
Name of the table
fieldsarrayrequired
List of field definitions with name, type, and enum values when known. A field name containing `{a|b|...}` groups is a compact notation for several columns sharing the same type and mode: expand every group (cartesian product) to get the real column names, e.g. `x__{a|b}__{c|d}` stands for `x__a__c`, `x__a__d`, `x__b__c` and `x__b__d`. Use the expanded names in SQL, never the braces.
Set when this table only serves part of its history: data before this date is no longer served, here or anywhere else in Botify, and a query asking for it comes back empty. Absent when the whole table is served.
Known discrete values for this field. Each entry has value, name, and optional extra; for name columns, entries only carry value. Absent when the field is not an enum.