Skip to main content
Glama

check

Runs a data quality watch and returns a CI-style pass/fail gate, failing on CRITICAL or WARNING severity anomalies to block pipelines until data recovers.

Instructions

Run a watch and return a CI-style pass/fail gate.

It covers the tables saved with scherlok connect --table, else every table.

fail_on is "critical" (default — fail only on CRITICAL) or "warning" (stricter — fail on WARNING or worse). Mirrors scherlok ci. Returns passed plus the severity counts the decision was based on. Like watch, it saves what it sees except a table with a CRITICAL anomaly, so a check failing on CRITICAL keeps failing until the data recovers, while one failing on a WARNING passes next time; verify saves nothing. With baselines locked, check saves no profiles either.

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": "check"
  }
}

Input Schema

NameRequiredDescriptionDefault
fail_onNocritical

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does so substantively: it discloses persistence behavior (saves what it sees except a table with a CRITICAL anomaly), the resulting non-idempotency (a CRITICAL failure keeps failing until data recovers, a WARNING failure passes next time), and that locked baselines suppress profile saves. It does not mention permissions, cost, or rate limits, which keeps it short of a 5 for a write-side-effect tool.

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 lead sentence front-loads the purpose before any detail, and every following sentence adds decision-relevant information (scope, threshold, persistence, baseline interaction). The awkward hard line-wrapping and the somewhat niche closing note about locked baselines cost it a little, but nothing is repetitive.

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

Completeness4/5

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

An output schema exists, so return shape need not be spelled out, and the description still summarizes the key return (`passed` plus severity counts the decision was based on). For a one-parameter tool it covers purpose, policy, and side effects well; it is silent on error or empty-table behavior, which is the remaining gap.

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 coverage is 0% and the single parameter has no enum in the schema, so the description must define it. It fully does: `fail_on` is `"critical"` (default, fail only on CRITICAL) or `"warning"` (stricter, fail on WARNING or worse), giving both the allowed values and their decision semantics.

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?

States a specific verb and effect: "Run a watch and return a CI-style pass/fail gate," then scopes it ("covers the tables saved with `scherlok connect --table`, else every table"). It also separates the tool from its neighbors by noting it mirrors `scherlok ci`, so an agent can identify it without opening a 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?

The CI-gate framing tells the agent the context in which this tool is appropriate, and the `fail_on` explanation gives the policy choice to make at call time. It also contrasts side effects with `watch` and `verify`, which implicitly routes between them, though it never states explicitly when *not* to use check in favor of those siblings.

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