Propose a definition
propose_definitionPropose a team definition for a number (net_revenue = sum of amount where status is not refunded) when none exists. It is saved as a draft that an owner or editor approves in the app; until then agents don't get it, so tell the user it is waiting. If an approved definition with that name or the same calculation exists, nothing is proposed and you get it back: use it. Returns the value it gives today and the review link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_id": "<dataset_id>",
"name": "<name>",
"description": "<description>",
"fn": "<fn>"
},
"name": "propose_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fn | Yes | ||
| why | No | One sentence on why: what the user asked, or what you noticed in the data. The approver sees it. | |
| name | Yes | snake_case, e.g. net_revenue | |
| unit | No | ||
| where | No | Filters that are part of the definition, as in aggregate | |
| column | No | ||
| aliases | No | Other names people use (sales, turnover) | |
| direction | No | ||
| dataset_id | Yes | Dataset id from list_datasets, e.g. ds_ab12cd34ef56 | |
| description | Yes | In plain words, as the team would say it: what is counted and what is left out |