Attribute Task to Outcome
metrx_attribute_taskLink agent actions to measurable business outcomes for ROI tracking. Map tasks to revenue, cost savings, efficiency, or quality metrics.
Instructions
Link an agent task/event to a business outcome for ROI tracking. This creates a mapping between agent actions and measurable business results. Do NOT use for reading attribution data — use get_attribution_report or get_task_roi.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent UUID to attribute | |
| event_id | No | Optional: specific event/task ID to attribute | |
| outcome_type | Yes | Type of outcome | |
| outcome_source | Yes | Source of the outcome data | |
| value_cents | No | Outcome value in cents | |
| description | No | Optional description of the outcome |