Analytics Custom Field Create
analytics_custom_field_createCreates a reusable calculated metric or dimension for a client using Jepto's existing Formula field API. Call analytics_schema first and use exact field names in the formula. The returned field can then be used by analytics_query and report_card_create.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analytics_custom_field_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | METRIC or DIMENSION. Calculated metrics are the normal use case. | METRIC |
| label | No | Display label for the calculated field. | |
| formula | No | Formula expression (e.g. 'googleAds.cost / googleAds.clicks') or FormulaAST JSON. | |
| clientId | No | 16-character hex client id, as returned by client_list. | |
| isGlobal | No | Create the field at account scope instead of client scope. | |
| fieldType | No | NUMBER, CURRENCY, or PERCENTAGE. | NUMBER |
| aggregation | No | Optional aggregation such as SUM, AVG, or COUNT. | |
| dataSources | No | Optional source keys; inferred from formula when omitted. | |
| description | No | Human-readable explanation of the field. | |
| fieldFormat | No | Optional ValueFormat configuration. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||