oracle_staleness
Is this V3 pool's TWAP oracle current — or will observe() revert? — Screen a Uniswap-V3-style pool before trusting its TWAP oracle: reads slot0 cardinality + the newest observation, anchors now to Base BaseTime (timestampMs), and returns healthy / shallow / stale / unusable. Catches a STALE observation (wrong TWAP window) and a SHALLOW buffer (observe reverts OLD on a real lookback). Sharper post-Denim: 200ms blocks burn a fixed cardinality ~10x faster. Pure onchain reads; an unreadable pool is UNKNOWN, not safe. Required input: pool. Priced $0.03 per call over x402 on Base; send a prepaid x-credit-token header for unlimited calls, or get 1 free call/day per tool. No API key required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pool": "<pool>"
},
"name": "oracle_staleness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | Uniswap-V3-style pool address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The result payload. Shape is service-specific; every field is documented in the tool description. | |
| service | No | The service id that answered. | |
| checkedAt | No | ISO-8601 timestamp of when the underlying reads were taken. |