{"uid":"cap_kqGhJPEiw-AXqDW_H1YpE","slug":"genesis-agent-tools-data-freshness-check-16e9a62e","name":"GENESIS Agent Tools — Data Freshness Check","description":"Pay-per-call x402 APIs for autonomous agents on Base USDC: API compatibility analysis, bounded HTTP/JSON workflows, URL evidence analysis, crypto price consensus, and agent/MCP readiness checks.","url":"https://genesis-agent-tools.genesisagenttools.workers.dev/api/tools/data-freshness-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["timestamp"],"properties":{"timestamp":{"type":"string"},"threshold_seconds":{"type":"number"}}},"responseSchema":{"type":"object","properties":{"fresh":{"type":"boolean"},"age_seconds":{"type":"number"}}},"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_ij87MLEfDzDJIrQa71rex","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":"Checks whether a given timestamp is fresh by computing its age in seconds against a configurable staleness threshold","exampleAgentPrompt":"Check if the timestamp '2024-06-10T14:23:00Z' is still fresh — flag it as stale if it's older than 300 seconds.","exampleUseCases":[{"title":"Cache expiry check before agent action","prompt":"Before I use this cached API response from '2024-06-10T14:00:00Z', check if it's still fresh — treat anything older than 120 seconds as stale."},{"title":"Validating sensor data age in pipeline","prompt":"I just received a sensor reading timestamped '2024-06-10T13:59:45Z' — tell me how old it is in seconds and whether it's within the 60-second freshness window."},{"title":"Gating agent workflow on data recency","prompt":"Check whether the data timestamp '2024-06-10T14:20:00Z' is recent enough to act on — use a staleness threshold of 600 seconds."}],"resultDescription":"Returns a boolean 'fresh' indicating whether the timestamp falls within the acceptable age window, and 'age_seconds' giving the exact computed age of the timestamp in seconds relative to the current time.","failureModes":["Missing or malformed timestamp string returns a validation error","Timestamp in an unrecognized format may cause parsing failure","Threshold_seconds not provided defaults to some internal value which may not match caller expectations","Future timestamps may return unexpected results or negative age_seconds"],"whenToPreferThis":"Use this endpoint when an agent needs a lightweight, pay-per-call check to determine whether a piece of data or a cached result is still recent enough to act on, without implementing custom time-difference logic. Ideal for agent pipelines that must gate downstream actions on data recency, especially in agentic workflows on Base USDC where x402 micropayments are already in use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:57:40.302Z","isFirstParty":false,"canonicalSlug":"genesis-agent-tools-data-freshness-check-16e9a62e"}