Query and submit Custom KPI data — user-defined indicators organized into datasets, collected through campaigns, and assigned to facilities via assignments. Each dataset groups related KPIs (e.g. “ESG Social Metrics”), campaigns are time-boxed data collection rounds sent to assigned facilities, and values are the submitted responses.
Get one Custom KPI definition with full detail — formula, unit, value type, and linked dataset. Use list_custom_kpis first to discover available KPI IDs.Parameters:
Parameter
Type
Required
Default
Description
dataset_id
string
Yes
—
UUID of the KPI dataset
kpi_id
string
Yes
—
UUID of the KPI
organization_id
string
No
default org
Organization UUID
Example response:
{ "id": "kpi-1a2b3c4d-...", "dataset_id": "ds-5e6f7a8b-...", "dataset_name": "ESG Social Metrics", "dataset_description": "Core social indicators for annual reporting", "name": "Employee Satisfaction Score", "description": "Overall satisfaction rating from annual survey", "unit": null, "value_type": "select", "required": true, "sort_order": 2, "created_at": "2025-01-15T10:00:00", "updated_at": null}
List data collection campaigns for a specific KPI dataset. Each campaign represents a time-boxed reporting period with a submission deadline.Parameters:
The assigned facility (null for org-level assignments)
data_owner_email
Contact email for the person responsible for data submission
data_owner_user_id
Platform user ID of the data owner (null if external)
Example prompts:
"List all our KPI datasets""What KPIs are assigned to our Barcelona factory?""Show me the KPI definitions in the ESG Social Metrics dataset""Show submitted values for the Q1 2025 ESG campaign""Which facilities are assigned to report on dataset ds-456?""What's the employee turnover rate submitted by each facility?"
Submit values for a Custom KPI campaign. Each entry targets a specific KPI and provides the appropriate value type (numeric, text, date, or select option).Parameters:
Parameter
Type
Required
Default
Description
dataset_id
string
Yes
—
UUID of the KPI dataset
campaign_id
string
Yes
—
UUID of the campaign to submit values for
values
object[]
Yes
—
List of value entries (see below)
facility_id
string
No
—
UUID of the facility (if KPI is facility-scoped)
organization_id
string
No
default org
Organization UUID
Value entry fields:
Field
Type
Description
kpi_id
string
Required. UUID of the KPI
value_numeric
number
For numeric KPIs (e.g. 42.5)
value_text
string
For text KPIs
value_date
string
For date KPIs (YYYY-MM-DD)
option_id
string
For select-type KPIs — UUID of the chosen option
Each entry must include kpi_id and exactly one value field matching the KPI’s type. Use get_kpi_campaign_values to see which KPIs are expected, and list_kpi_assignments to find the correct facility_id.
Example prompts:
"Submit a value of 12.5% for the employee turnover KPI in the Q1 campaign""Report Barcelona office water consumption as 1250 cubic meters for dataset ds-456""Fill in the ESG social metrics campaign with the latest facility data"
Values are submitted permanently. Double-check KPI IDs and values before submitting — use get_kpi_campaign_values to verify what’s expected.