Skip to main content
Glama

dq_profile_table

Read-onlyIdempotent

Profiles a table to show row counts, column types, null rates, distinct values, ranges, and means, and flags constant columns, placeholder missing values, and likely keys for data-quality review.

Instructions

Profile a table: row count, and per column the type, null %, distinct count, min/max and mean.

Also flags investigation leads: fully-null or constant columns, high null rates, placeholder strings ('N/A', 'null', '') that hide missing values from NULL checks, and likely key columns.

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_profile_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable name from dq_list_sources, e.g. 'orders' or 'warehouse.main.orders'.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds what is computed and the heuristic flagging behavior (placeholder strings masking NULLs, constant columns, likely keys), which is meaningful context beyond the annotations. It does not disclose cost or scale behavior, which matters for a tool that aggregates over every column of a full table.

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?

Two sentences: the first front-loads the concrete outputs, the second the diagnostic flags. No filler, no restatement of the name, and the enumerated lists are load-bearing rather than decorative.

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 values need not be explained, yet the description still gives a useful preview of what surfaces. Annotations cover safety. The remaining gap is operational: no guidance on cost/latency over large tables or on how the placeholder-string detection is applied, which an agent might want before profiling a wide table.

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

Parameters3/5

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

Only one parameter, and the schema already documents it at 100% coverage including the qualified-name format and the 'from dq_list_sources' provenance. The description adds nothing about the table argument, so this is the baseline case where the schema does all the work.

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 ('Profile a table') and enumerates exactly what is produced: row count, per-column type, null %, distinct count, min/max, mean. That is concrete enough for an agent to distinguish it from narrower checks like dq_check_nulls. It stops short of a 5 because it never contrasts itself with the close siblings (nulls, duplicates, freshness) that an agent would weigh.

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?

Usage is implied rather than stated: 'flags investigation leads' signals this is a triage/starting step, which hints at when to reach for it. There is no explicit 'use this instead of X' routing, no stated prerequisite that the table must first come from dq_list_sources (that only appears in the schema), and no note on when a targeted check would be a better choice.

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