Get Agent ROI
metrx_get_task_roiCalculate ROI for an agent by analyzing total LLM costs, attributed business value, and ROI multiplier. Breaks down results by model and outcome type to identify high-value agents per dollar spent.
Instructions
Calculate return on investment for an agent. Shows total costs (LLM API calls), total outcomes (attributed business value), ROI multiplier, and breakdown by model and outcome type. Useful for identifying which agents generate the most value per dollar spent. Do NOT use for fleet-wide ROI — use generate_roi_audit for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent UUID to calculate ROI for | |
| days | No | Number of days to analyze (default: 30) |