Get Agent ROI
metrx_get_task_roiCalculate return on investment for a specific agent by analyzing total LLM costs and attributed business value over a customizable time period. Get ROI multiplier and breakdowns by model and outcome type to identify high-value agents.
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) |