Provider Health & Schema Drift
tapebasis_healthDetect upstream API or schema drift across market-data providers and return provider status, degraded issues, and rate-limit cooldowns; force a refresh or accept a verified baseline.
Instructions
Probe every upstream and report whether any provider's API drifted.
Every other tool reads the cached verdict from this monitor and adds a
warning when a provider's upstream schema has changed or is down. Call this
with refresh=True to force an immediate re-probe (otherwise the cached
result is reused for TAPEBASIS_HEALTH_TTL seconds).
Drift is judged on the fields this server actually reads. An upstream that
drops a key nobody looks at is serving every number here correctly and is not
reported as an outage, which is what made every response degraded: true
when two cosmetic keys were removed upstream.
accept_baseline=True re-records the current payload shape as the new
baseline. Use it after an upstream change you have checked and adapted to:
without it, a cosmetic rename keeps reporting DRIFT forever, and the only
way out was deleting the state file.
The report also carries rate_limits: per-provider pacing, cooldown and
cache state. A provider can be OK and still be cooling down after a
429, which is what an agent needs to know before it retries.
Args:
refresh: Force fresh probes instead of using the cached verdict.
accept_baseline: Re-record the current shape as the baseline and clear
drift. Probes that are DOWN keep their old baseline.
Returns:
Envelope whose data carries providers (OK/DRIFT/
DOWN/UNKNOWN per provider), degraded, issues,
rate_limits and the per-probe baseline comparison.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tapebasis_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | ||
| accept_baseline | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||