list_datasets
List all elastic datasets for the organization.
Parameters:
Example response:
get_dataset
Get a dataset by ID with its full field definitions (schema).
Parameters:
Example response:
Field data types
Field data types
query_dataset
Query records from a dataset with pagination, optional sorting, and optional filtering.
Parameters:
Filter syntax (field_key:op:value)
Filter syntax (field_key:op:value)
Each
filters item is field_key:op:value. Operators allowed depend on the field’s data_type:Value encoding:
- Scalar ops:
amount:gt:100,status:eq:open bt/nb: JSON 2-array →amount:bt:[100,200]in/ni: JSON array →status:in:["open","closed"]- Shortcut
field_key:value(no op) = contains for text, exact otherwise *:value= free-text search across all fields
get_dataset first so you use real field keys and valid operators.Records are stored as JSONB — the
data object uses the field key values from the dataset schema. Call get_dataset first to understand what fields exist and their types. Reference-field cells hold the target record’s UUID (a refs map in the response resolves them to display text when present).get_dataset_record
Get a single record from a dataset by its ID (use query_dataset to find record IDs first).
Parameters:
Example response:
list_dataset_groups
List the organization’s dataset groups (folders that organize datasets in the UI).
Parameters:
Example response:
list_project_datasets
List the elastic datasets associated with a specific project.
Parameters:
Example response:
Write tools
Write tools are annotatedreadOnlyHint: false. The delete tools are also annotated destructiveHint: true, so AI assistants ask you before calling them.
create_dataset
Create an empty dataset. Add its columns with add_dataset_fields, then load rows with create_dataset_records.
update_dataset
Rename a dataset or change its description. Unset values are left untouched.
delete_dataset
Permanently delete a dataset together with all its fields and records. This cannot be undone.
add_dataset_fields
Add up to 200 fields (columns) to a dataset. Returns the dataset with its full field list.
Each field object takes:
update_dataset_field
Update one field. Only the arguments you pass change, and the field’s key never changes.
For a
select field, options.values must keep every value already in use. To rename a value, add the new one, update the records with update_dataset_record, then remove the old one.delete_dataset_field
Permanently delete a field and its value in every record of the dataset.
create_dataset_records
Create up to 100 records per call. Each record is an object keyed by field key (not display name), for example {"site": "Madrid", "amount": 120.5, "measured_on": "2026-01-31"}. Values are validated against each field’s type; a quantity_unit value is {"value": "12.5", "unit": "kg"}.
Rows are created one by one, so a bad row doesn’t block the rest:
update_dataset_record
Change values of one record. Only the given field keys change; a key set to null clears it.
delete_dataset_record
Permanently delete one record.
Example prompts:
Workflow
- Discover datasets —
list_datasets(orlist_project_datasetsfor a project) to see available datasets and record counts;list_dataset_groupsfor how they’re organized - Understand schema —
get_datasetto see fieldkeys,data_types, and options (needed to build filters/sort) - Query records —
query_datasetwithfilters/sortto retrieve and narrow the data; useget_dataset_recordfor a single record by ID - Cross-reference — If
entity_typeis set, use the corresponding tool (e.g.list_facilities) to link records to native entities - Build or change data —
create_dataset→add_dataset_fields→create_dataset_records;update_*to edit;delete_*only after confirming with the user
Related
CLI: My Categories
The same operations from the terminal with
dcy elasticCustom KPIs
KPI definitions that can be built on elastic datasets
Files
File uploads that can populate elastic datasets