Skip to main content
Glama

dq_check_nulls

Read-onlyIdempotent

Count NULLs per column and optionally track null percentages over time to identify when a column started returning nulls.

Instructions

Count NULLs per column, optionally broken down over time to pinpoint when a column started going null.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table": "<table>"
    },
    "name": "dq_check_nulls"
  }
}

Input Schema

NameRequiredDescriptionDefault
grainNoTime bucket size.day
tableYesTable name from dq_list_sources, e.g. 'orders' or 'warehouse.main.orders'.
columnsNoColumns to check. Omit for all columns.
periodsNoHow many recent periods to show.
time_columnNoTimestamp/date column. When given, shows null % per period so you can see when nulls started.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine behavioral meaning: the default is a per-column null count, and supplying a time dimension switches output to per-period null percentages that reveal onset. It does not discuss cost or row limits, which keeps it from a 5.

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

Conciseness5/5

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

A single front-loaded sentence with the core operation first and the optional mode second. No filler, no restatement of the title, and every clause carries information.

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?

With annotations, a full-coverage parameter schema, and an output schema present, the description covers what the tool does in both its simple and time-series modes. It leaves the specifics of the returned null percentages to the output schema, which is appropriate, and nothing essential to correct invocation is missing.

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% so the baseline is 3, but the description adds interpretive value beyond the field descriptions: it frames the time-related parameters as a mode switch ('broken down over time') whose purpose is locating when nulls began, tying grain/periods/time_column together as one concept.

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

Purpose4/5

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

States a specific verb and resource ('Count NULLs per column') plus a named optional capability ('broken down over time'). It is clearly distinguished by subject matter from the sibling checks (duplicates, freshness, relationship), though it never names them explicitly.

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

Usage Guidelines3/5

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

The phrase 'optionally broken down over time to pinpoint when a column started going null' implies the conditional case for a time series, but there is no explicit when-to-use vs when-not guidance and no mention of related alternatives such as profiling or freshness checks.

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