Attribute Task to Outcome
metrx_attribute_taskLinks an agent task or event to a business outcome to track ROI and map agent actions to measurable results.
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. Requires an API key with the 'write' scope.
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": {
"agent_id": "<agent_id>",
"outcome_type": "<outcome_type>",
"outcome_source": "<outcome_source>"
},
"name": "metrx_attribute_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent UUID to attribute | |
| event_id | No | Optional: specific event/task ID to attribute | |
| description | No | Optional description of the outcome | |
| value_cents | No | Outcome value in cents | |
| outcome_type | Yes | Type of outcome | |
| outcome_source | Yes | Source of the outcome data |