Skip to main content
Glama

tap_doctor

Read-only

Run health checks on taps to validate them against their health contract. Returns verdicts and issues to catch broken or stale taps before data goes stale.

Instructions

Health check for taps. Runs each tap's examples against its health contract. Returns {ok, annotations[], issues[], suggestions[]}. Each annotation is a W3C Web Annotation (motivation:'assessing') with body.tap:verdict in {healthy, broken, stale, layer-mismatch}. Use when tap.run returns empty/error rows, or after forge.save to validate. ALWAYS specify site+name — unscoped checks scan all user taps and are expensive. PIPE TAPS: annotations include recursive sub-tap diagnosis via body.children[]. Use tap.explain for static analysis without running.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoTap name within site (optional — omit to check all taps for the site)
siteNoSite to check. Always specify — omitting scans all user-forged taps.
timeoutNoTimeout per tap in ms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.29.1
  2. Removedv0.27.0
  3. Addedv0.15.14
  4. Removedv0.15.8
  5. Addedv0.15.5
  6. Removedv0.14.2
  7. Addedv0.14.7
  8. Removedv0.1.4
  9. Changed4 schema fields changedv0.1.3
    • removedInput schema / properties / auto
      Removed value: -{
      -  "default": false,
      -  "description": "Auto-heal: collect diagnostics for broken taps (current code + page inspection). AI reads diagnostics → forge.verify → forge.save.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / format
      Removed value: -{
      -  "default": "json",
      -  "description": "Output format",
      -  "enum": [
      -    "json",
      -    "junit",
      -    "tap"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / name / description
      Previous value: -"Filter by tap name (optional)"New value: +"Tap name within site (optional — omit to check all taps for the site)"
    • changedInput schema / properties / site / description
      Previous value: -"Filter by site name (optional — omit for all)"New value: +"Site to check. Always specify — omitting scans all user-forged taps."
  10. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, and destructiveHint. Description adds rich behavioral context: return format with W3C Web Annotations, verdicts, and recursive sub-tap diagnosis for pipe taps via body.children[]. It also warns about expensive unscoped scans. No contradiction with annotations.

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 description is concise but packs information: purpose, return format, usage guidance, caveat, and pipe-specific behavior. Each sentence adds value. Could be slightly more structured but is efficient.

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?

Despite no output schema, the description fully details the return structure including the annotation format and verdicts. It covers pipe taps with recursive diagnosis. It also references a sibling (tap.explain) for static analysis. Given the tool's complexity, the description is complete.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for all 3 parameters. Description adds meaningful context beyond schema: reinforces that site and name should always be specified, and explains that omitting them scans all user taps (expensive). This adds value over the bare 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 description clearly states the tool's purpose: 'Health check for taps. Runs each tap's examples against its health contract. Returns {ok, annotations[], issues[], suggestions[]}.' It gives specific return structure and verdicts. It distinguishes from siblings like tap_run (runs the tap) and tap_explain (static analysis).

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

Usage Guidelines5/5

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

Explicitly states when to use: 'Use when tap.run returns empty/error rows, or after forge.save to validate.' Also gives a strong caveat: 'ALWAYS specify site+name — unscoped checks scan all user taps and are expensive.' Provides an alternative: 'Use tap.explain for static analysis without running.'

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