{"uid":"cap_cDW-Fc3CeC1gLkZ_wjesb","slug":"x402-observability-poc-session-trace-summary-90b31c1a","name":"x402 Observability POC – Session Trace Summary","description":"Computed session trace summary (calls, tokens, cost, error count, slowest call)","url":"https://x402-observability-poc.theliminalguy.workers.dev/trace/:var1/summary?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iUE6neIsSifG-FmDB0wxw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a computed summary of a session trace, including call count, token usage, cost, error count, and slowest call","exampleAgentPrompt":"Can you pull up the summary for trace session abc123 — I want to see total calls, tokens used, cost, any errors, and which call was the slowest?","exampleUseCases":[{"title":"LLM cost audit after agent run","prompt":"I just ran a long agent session with trace ID session-7f9a2c — can you give me the summary showing how many tokens were consumed, what it cost, and if there were any errors?"},{"title":"Debugging errors in a session trace","prompt":"Something went wrong in trace run-20240501-beta, can you pull the trace summary and tell me how many errors occurred and which call was the slowest?"},{"title":"Performance review of multi-step AI workflow","prompt":"After running my multi-step AI pipeline, I need to review trace pipeline-run-88 — show me the full summary with call count, token usage, cost, and the slowest step."}],"resultDescription":"A computed summary object for the specified trace session, containing: total number of calls made, total tokens consumed, total cost incurred, error count, and the identity/duration of the slowest call in the session.","failureModes":["Invalid or unknown trace ID returns 404 not found","Missing path parameter results in routing error","Payment not completed (x402 payment required) returns 402","Trace data not yet available returns empty or partial summary","Malformed request returns 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a quick aggregated snapshot of a session trace — total calls, tokens, cost, errors, and slowest call — rather than raw individual event logs. Ideal for post-session audits, cost monitoring, or debugging an AI agent pipeline run. It is a paid endpoint ($0.01 USDC via x402) suited for agents that need lightweight observability summaries without processing raw trace data themselves.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:34:21.886Z","isFirstParty":false,"canonicalSlug":"x402-observability-poc-session-trace-summary-90b31c1a"}