Skip to main content
Glama

Provider Health & Schema Drift

tapebasis_health

Detect 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

NameRequiredDescriptionDefault
refreshNo
accept_baselineNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • addedInput schema / properties / accept_baseline
      Added value: +{
      +  "default": false,
      +  "title": "Accept Baseline",
      +  "type": "boolean"
      +}
  2. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full behavioral burden and does so thoroughly: it discloses caching/TTL behavior, the state-mutating effect of accept_baseline re-recording the baseline, the caveat that DOWN probes retain their old baseline, and that drift is judged only on fields this server actually reads. It even explains that a provider can be OK while still cooling down after a 429, which is exactly the kind of status nuance an agent needs before retrying.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with the purpose, then organized into caching, drift semantics, baseline behavior, and an Args/Returns breakdown. It is more verbose than strictly necessary in places, particularly the anecdotal backstory about cosmetic keys and deleting the state file, but those lines still carry useful behavioral context rather than pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter health/diagnostics tool with no annotations, the description is complete: it covers when to refresh, the side effects of accepting a baseline, caching duration, drift judgment, rate-limit state, and the return envelope. An output schema exists, so the Returns section is extra clarity rather than a required gap-filler.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate entirely, and it does: the Args section defines refresh as forcing fresh probes instead of using the cached verdict, and accept_baseline as re-recording the current shape as the baseline and clearing drift while preserving the old baseline for DOWN probes. This adds meaning well beyond the bare boolean titles in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource: probe every upstream and report whether any provider's API drifted. It also positions the tool relative to siblings by explaining that every other tool reads this monitor's cached verdict and surfaces warnings. An agent can distinguish this as the dedicated diagnostics endpoint without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear operational context: call with refresh=True to force a live probe, otherwise the cached verdict is reused for TAPEBASIS_HEALTH_TTL seconds, and use accept_baseline after an upstream change you have checked and adapted to. It also notes rate_limits is what an agent needs before retrying. It stops short of an explicit when-not-to-use statement, but the role as the deeper diagnostic behind sibling warnings is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.