{"uid":"cap_vd-gRjCJ1tuuJuF_V9pyI","slug":"agent-rest-stop-stale-quote-checker-f76a06e4","name":"Agent Rest Stop - Stale Quote Checker","description":"Fresh or stale against a max age.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/StaleQuote?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"quoted_at":{"type":"string"},"max_age_sec":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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_aZlT7ZvRbcM6PcYzKqrUb","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":"Checks whether a previously obtained quote is fresh or stale based on a configurable maximum age in seconds.","exampleAgentPrompt":"Check whether my quote from 2024-06-01T12:00:00Z is still fresh given a max age of 300 seconds.","exampleUseCases":[{"title":"Validate stale swap quote before executing","prompt":"I fetched a swap quote at 2024-06-01T15:30:00Z — can you check if it's still fresh with a max age of 60 seconds before I go ahead with the trade?"},{"title":"Cache freshness check for stablecoin price","prompt":"I have a cached stablecoin price quote from 2024-06-01T09:45:00Z. Is it still valid if my system allows a maximum age of 120 seconds?"},{"title":"Agent pipeline quote expiry guard","prompt":"Before my agent reuses the quote it grabbed at 2024-06-01T08:00:00Z, check if it's still within the 90-second freshness window so we don't act on stale data."}],"resultDescription":"Returns a freshness determination indicating whether the provided quote timestamp falls within the allowed max age window — effectively a fresh or stale verdict based on elapsed time since quoted_at versus max_age_sec.","failureModes":["Missing or malformed quoted_at timestamp returns an error","Invalid or non-numeric max_age_sec causes a validation failure","Payment not attached results in 402 Payment Required","Extremely large max_age_sec values may be rejected or clamped","Clock skew between caller and server may produce unexpected results"],"whenToPreferThis":"Use this endpoint when your agent needs a lightweight, paid gatekeeper check to determine whether a cached or previously obtained quote is still usable before acting on it. It is ideal for agentic pipelines that cache quotes and need a simple freshness guard without implementing custom time logic locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:59.598Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-stale-quote-checker-f76a06e4"}