{"uid":"cap_Cs2cc0HVRIdxFAwz0ZJte","slug":"modell-halowerk-com-trace-grade-da9ca18d","name":"modell.halowerk.com Trace Grade","description":"Takes the steps of one agent run and returns a scored report. It counts identical tool calls (same tool, same arguments) as loops, finds the longest run of consecutive failures, marks calls whose result was empty or null as wasted, and attributes cost per step and per tool so the expensive part is visible. Cost is taken from your figures when supplied, otherwise computed from token counts against the model price table.","url":"https://modell.halowerk.com/v1/trace-grade","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model id used, to price token counts when cost_usd is absent."},"steps":{"type":"array","items":{"type":"object","properties":{"ok":{"type":"boolean","description":"Whether the step succeeded. Defaults to true unless error is set."},"tool":{"type":"string","description":"Name of the tool or step."},"error":{"type":"string","description":"Error text, if it failed."},"result":{"description":"The result. Empty, null or an empty list counts as a wasted call."},"cost_usd":{"type":"number","minimum":0,"description":"Cost of this step, if you already know it."},"arguments":{"description":"The arguments used. Identical arguments on the same tool count as a loop."},"duration_ms":{"type":"integer","minimum":0},"input_tokens":{"type":"integer","minimum":0},"output_tokens":{"type":"integer","minimum":0}},"additionalProperties":true},"maxItems":1000,"minItems":1,"description":"The steps of the run, in order."},"loop_threshold":{"type":"integer","default":2,"minimum":2,"description":"From how many identical calls on it counts as a loop."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WG_Jlr91qnFGkaDATuPqR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes an AI agent run's step trace to produce a scored quality report detecting loops, failure streaks, wasted calls, and per-step cost attribution.","exampleAgentPrompt":"Can you grade this agent run trace and tell me where it looped, which tool calls came back empty, and what the most expensive steps were?","exampleUseCases":[{"title":"Debugging a looping agent run","prompt":"My agent seems to have gotten stuck calling the same search tool over and over — can you analyze this trace and show me exactly where the loops are and how many times each repeated call happened?"},{"title":"Auditing agent cost after an expensive run","prompt":"This agent run cost way more than expected — can you break down the cost per step and per tool from this trace so I can see what drove up the bill?"},{"title":"Identifying wasted calls before optimizing prompts","prompt":"Before I rewrite my agent's system prompt, can you score this run trace and flag any tool calls that returned null or empty results so I know what's being wasted?"}],"resultDescription":"A structured scored report containing: detected loop instances (identical tool+arguments pairs), the longest consecutive failure streak, a list of wasted calls (empty or null results), per-step cost attribution, per-tool cost attribution, and an overall quality score for the agent run.","failureModes":["Missing or malformed steps array causes validation error","Unrecognized model name falls back to token-count-based pricing if token counts provided, or fails if neither cost nor tokens supplied","Empty trace (zero steps) may return trivial or error response","Malformed tool argument shapes prevent loop detection accuracy","Rate limiting or payment failure for the $0.002 USDC per-call fee"],"whenToPreferThis":"Choose this endpoint when you need a post-hoc audit of a completed agent run — specifically when you want loop detection, failure streak analysis, wasted-call identification, and cost attribution all in one scored report. Prefer it over generic logging tools when you need machine-readable quality scores tied to individual tool calls rather than raw logs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:03.785Z","isFirstParty":false}