custom_metrics_write
Create, update, or delete custom analytics metrics for an agent, defining keys, types, options, and descriptions so you can track specific agent data.
Instructions
Create, edit or delete a custom analytics metric on an agent. Actions: create (metric needs key + type + description; type enum also needs options), update (metricId + metric with only the fields to change; changing type can make old data inconsistent), delete (metricId; historical data stays but the metric stops being tracked). Metric: { key, type: number|boolean|enum|string, options?, description? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | compact (default) = light mode: long text is cut and bulky blobs are replaced by a size marker. full = complete API response. | |
| action | Yes | ||
| metric | No | ||
| agentId | Yes | ||
| metricId | No | Required for update / delete. |