Skip to main content
Glama
DataPilot MCP

DataPilot MCP

Profile table

profile_table
Read-only

Computes in-database column statistics—null and distinct counts, min/max, mean, standard deviation, top values—and reports data-quality findings with evidence to assess table health.

Instructions

Statistics for a table, computed in the database rather than by reading rows: null counts, distinct counts, min/max, mean and standard deviation for numeric columns, the most common values, and a list of data-quality findings such as mostly-null or constant columns and missing primary keys. Each finding carries evidence. Use get_table_sample to see row values. On large or wide tables, profile only the columns you need.

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

Input Schema

NameRequiredDescriptionDefault
aliasNoAlias from list_connections. Omit only when exactly one database is open.
tableYesTable or view name from list_tables, e.g. public.orders.
columnsNoExact column names from describe_table. Omit to profile all columns.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • addedInput schema / properties / alias / description
      Added value: +"Alias from list_connections. Omit only when exactly one database is open."
    • changedInput schema / properties / columns / description
      Previous value: -"Limit to these columns"New value: +"Exact column names from describe_table. Omit to profile all columns."
    • addedInput schema / properties / table / description
      Added value: +"Table or view name from list_tables, e.g. public.orders."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: computation happens in the database rather than by reading rows, findings include supporting evidence, and column scoping mitigates cost on large tables. It stops short of stating expected latency or output volume explicitly, which keeps it at 4 rather than 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?

Three sentences, each earning its place: the first establishes purpose and output, the second routes to a sibling, the third gives a cost-control rule. Capability is front-loaded and nothing is repeated from the schema or annotations.

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 an output schema present, the description does not need to explain return values, and it still helpfully previews what is produced, including that findings carry evidence. Combined with the sibling routing and column-scoping advice, the only minor gap is the absence of any note on cost or expected runtime for large tables.

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; the description nevertheless adds operational meaning to the 'columns' parameter by explaining that narrowing it is the remedy for large or wide tables. The 'alias' and 'table' parameters are left entirely to the schema, but their descriptions are already precise.

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 names a specific verb (profile) and resource (a table) and then enumerates the exact outputs: null counts, distinct counts, min/max, mean/stddev, most common values, and data-quality findings. It explicitly distinguishes itself from get_table_sample ('to see row values'), so an agent can separate the two tools without inspecting either 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?

It routes the agent explicitly: use this tool for computed statistics, use get_table_sample when row values are needed. It also gives a concrete usage rule for the alternative path ('On large or wide tables, profile only the columns you need'), which is actionable guidance rather than generic advice.

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