Skip to main content
Glama

verify

Compares database tables against a stored baseline and returns a read-only pass/fail gate for CI, with optional table scoping, severity threshold, and cross-database baseline comparison.

Instructions

Compare tables with the stored baseline and return a pass/fail gate, leaving it unchanged.

Read-only, unlike watch and check: no profiles or anomalies are written, so retrying after a failure keeps failing until the data is fixed; only the run itself is recorded. Pass tables to limit scope, or omit to verify the tables saved with scherlok connect --table, else everything. fail_on is "critical" (default) or "warning". Tables with no stored baseline are listed in tables_without_baseline and never counted as verified. Naming one in tables says it was just built, so an empty table, an all-NULL column or a duplicate key there is CRITICAL; unnamed, they stay WARNING. Once the data is right, investigate sets a baseline.

against compares with another database's baseline instead, e.g. production's when the connection is a dev schema you just built: its scope, such as postgresql://db.example.com/shop (adapter, host, port and path, never a connection string with credentials). Only records saved under that scope count, freshness is not compared, and a scope with no baseline in the store is an error. ignore=["volume"] is for a build on sampled data: row counts are not compared and the column checks allow for a sample.

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

Input Schema

NameRequiredDescriptionDefault
ignoreNo
tablesNo
againstNo
fail_onNocritical

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it declares read-only behavior, that no profiles or anomalies are written and only the run is recorded, and that retrying after failure is futile until the data is fixed. It also discloses edge-case behavior an agent could not infer — tables without a baseline are reported in `tables_without_baseline` and never count as verified, and a scope with no baseline in the store is an error.

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 core purpose and the read-only contrast are front-loaded, and nearly every sentence adds non-obvious information. It is still a dense ~200-word block with awkward mid-sentence breaks and a couple of compressed clauses (the CRITICAL/WARNING escalation sentence) that cost first-read clarity.

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 four-parameter, high-consequence verification tool with no annotations, the description covers the preconditions (baseline must exist), error cases, severity model, alternative-baseline mode, and sampling caveat. Since an output schema exists, it correctly avoids describing the full return shape while still flagging the `tables_without_baseline` field an agent will need to interpret results.

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%, so the description must explain all four parameters, and it does: `tables` scope semantics plus the severity escalation when a table is named (CRITICAL for empty table, all-NULL column, duplicate key, versus WARNING when unnamed), `fail_on` values with its default, `against` scope format (adapter, host, port, path, never credentials) and its freshness/record-matching semantics, and `ignore` with the concrete volume example. The only minor gap is that other accepted `ignore` values are never enumerated.

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 first sentence gives a specific verb, resource and output: compare tables against a stored baseline, return a pass/fail gate, leave the baseline unchanged. It further distinguishes itself from siblings by naming `watch` and `check` and stating the read-only contrast, so an agent can separate this from the writing alternatives 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 Guidelines5/5

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

Explicit routing is given: use `tables` to limit scope or omit it to verify the tables saved by `scherlok connect --table` else everything; use `against` when the connection is a freshly built dev schema; use `ignore=["volume"]` when working on sampled data; and `investigate` is named as the tool that sets a baseline once data is correct. When-not-to-retry is also stated, since a failed verify keeps failing until data is fixed.

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