{"uid":"cap_7UC_xPDk89wKARfZ2ip4G","slug":"latency-budget-analyzer-691d0ef6","name":"Latency Budget Analyzer","description":"Add up serial stage latencies against a target (share per stage, slack, bottleneck) and compute tail amplification from fan-out.","url":"https://data-calc.x402tookit.com/latency-budget?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"},"queryParams":{"type":"object","required":["stages"],"properties":{"fanOut":{"type":"integer","description":"Parallel calls a request waits for (each at its own percentile), 1 to 100000"},"stages":{"type":"string","description":"name:milliseconds pairs, comma separated: dns:20,tls:40,app:120,db:60"},"targetMs":{"type":"number","description":"Total latency target in milliseconds, to compute slack"},"percentile":{"type":"number","description":"Per-call percentile, 50 to 99.9999 (default 99): the chance a single call is within its stated latency"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"fanOut":{"type":["null","object"],"properties":{"note":{"type":["null","string"]},"calls":{"type":["null","number"]},"perCallPercentile":{"type":["null","number"]},"requestsHitByTailPercent":{"type":["null","number"]},"perCallPercentileNeededForSameOverall":{"type":["null","number"]},"probabilityAtLeastOneCallSlowerThanItsPercentile":{"type":["null","number"]}}},"source":{"type":["null","string"]},"stages":{"type":["array","null"],"items":{"type":"object","properties":{"ms":{"type":["null","number"]},"stage":{"type":["null","string"]},"sharePercent":{"type":["null","number"]}}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"slackMs":{"type":["null","number"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"targetMs":{"type":["null","number"]},"bottleneck":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"serialTotalMs":{"type":["null","number"]},"targetUsedPercent":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8mHWQtuGtw57w8QOT0fJk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Breaks down serial stage latencies against a total target, computes per-stage share and slack, identifies the bottleneck, and quantifies tail amplification from fan-out parallelism.","exampleAgentPrompt":"Break down my request pipeline latency budget — stages are dns:20, tls:40, app:120, db:60 — against a 300ms target at p99, and tell me which stage is the bottleneck and how much slack I have left.","exampleUseCases":[{"title":"Microservice pipeline latency audit","prompt":"I have a microservice pipeline with these stages: dns:15, tls:35, auth:25, app:200, db:80 — can you break down each stage's share of the total, check it against my 400ms SLA at p99, and tell me where the bottleneck is?"},{"title":"Fan-out tail latency risk assessment","prompt":"My service fans out to 30 downstream APIs simultaneously, each with a p95 latency of about 150ms — what's the probability at least one of them blows past that percentile, and what per-call percentile would I need to keep the overall request within the same tail guarantee?"},{"title":"Slack estimation for new feature insertion","prompt":"I'm adding a new caching stage of 30ms to my pipeline that currently has dns:20, tls:40, app:120, db:60, and my target is 300ms at p99 — how much slack do I have left after adding it, and does it become the new bottleneck?"}],"resultDescription":"Returns a structured breakdown of each named pipeline stage with its latency in milliseconds and share of the serial total, the serial total, slack against the target, the bottleneck stage name, a pass/fail verdict, and optionally fan-out statistics including the probability at least one parallel call exceeds its percentile and the per-call percentile needed to match an equivalent overall SLA.","failureModes":["Missing required 'stages' query parameter returns an error","Malformed stages string (not name:ms,name:ms format) causes a parse error","percentile outside 50–99.9999 range is rejected","fanOut value outside 1–100000 range is rejected","targetMs omitted means slack fields will be null in the response"],"whenToPreferThis":"Use this endpoint when you need to mathematically decompose a latency budget across named serial pipeline stages, compute slack against an SLA target, identify the bottleneck, or quantify tail amplification risk from fan-out parallelism. Prefer it over manual calculation or general-purpose math tools when the input is a comma-separated list of named stage latencies and you want structured output with per-stage shares, verdicts, and fan-out statistics in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:35:07.951Z","isFirstParty":false,"canonicalSlug":"latency-budget-analyzer-691d0ef6"}