Skip to main content

Elastic Data Tools

Query custom elastic datasets — user-defined data structures with flexible schemas for tracking any type of operational data beyond the standard emission categories. Each dataset has its own field definitions and records, and can optionally extend a native Dcycle entity (facilities, vehicles, etc.).

list_datasets

List all elastic datasets for the organization. Parameters: Example response:
Key response fields:

get_dataset

Get a dataset by ID with its full field definitions (schema). Parameters: Example response:

query_dataset

Query records from a dataset with pagination, optional sorting, and optional filtering. Parameters:
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
A clause referencing an unknown field, an operator not allowed for the field’s type, or an uncoercible value is silently ignored (no error). Call get_dataset first so you use real field keys and valid operators.
Example response:
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:
Example prompts:

Workflow

  1. Discover datasetslist_datasets (or list_project_datasets for a project) to see available datasets and record counts; list_dataset_groups for how they’re organized
  2. Understand schemaget_dataset to see field keys, data_types, and options (needed to build filters/sort)
  3. Query recordsquery_dataset with filters/sort to retrieve and narrow the data; use get_dataset_record for a single record by ID
  4. Cross-reference — If entity_type is set, use the corresponding tool (e.g. list_facilities) to link records to native entities

Custom KPIs

KPI definitions that can be built on elastic datasets

Files

File uploads that can populate elastic datasets