{"name":"agent-run-review","description":"Agent run review / trace cost evals / post-run analysis / agent debugging in one call: hand it a raw agent execution trace and get a readable brief of what happened, a cost estimate for the run, and a first draft of regression eval cases to catch the same failure next time. Composite: one call runs agent-trace-brief + llm-cost-estimate + eval-case-generate in parallel and merges them into {review, cost_estimate, generated_evals}. agent-trace-brief turns the raw steps/tool-calls into an ordered summary plus a root-cause hypothesis for any failure; llm-cost-estimate prices the run's tokens across a model list; eval-case-generate drafts candidate {input, expected, rubric} cases from the inferred task so the workflow gets regression coverage. Use it as an agent debugging API, a post-run trace reviewer, or a step toward turning production incidents into eval sets.","price":"$0.06","method":"POST","input_schema":{"properties":{"trace":{"type":["array","string"],"description":"The agent execution trace to review: a JSON array of steps/tool calls, or a plain-text log. Required. Serialized form capped at 40,000 chars."},"models":{"type":"array","items":{"type":"string"},"description":"Optional list of model names to price the run's estimated tokens against, e.g. ['gpt-4o-mini','claude-sonnet-4.5']. Defaults to a standard model spread."}},"required":["trace"]},"input_example":{"trace":[{"step":1,"action":"search_web(query='x402')","outcome":"3 results"},{"step":2,"action":"parse_result(result[0])","outcome":"TypeError: undefined is not an object"}]},"output_example":{"trace_chars":140,"review":{"step_summary":[{"step":1,"action":"search_web","outcome":"returned 3 results"}],"failure_points":["step 2: parse_result threw TypeError on result[0]"],"root_cause_hypothesis":"search_web returned a result shape parse_result did not expect.","confidence":"medium","unknowns":[]},"cost_estimate":{"input_tokens":120,"estimates":[{"model":"gpt-4o-mini","total_cost_usd":0.00002}],"cheapest_known":"gpt-4o-mini"},"generated_evals":{"returned_n":8,"cases":[{"input":"x","expected":"y","rubric":"check y"}],"review_required":true},"composed_of":["agent-trace-brief","llm-cost-estimate","eval-case-generate"],"components":[{"name":"agent-trace-brief","ok":true,"ms":1400}],"degraded":false},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}