Skip to main content
Glama
mcp-bd-service

mcp-bd-service

by jtesotelo

profile_column

Read-onlyIdempotent

Computes statistics for a database column, including nulls, distinct values, min/max/avg, and top frequent values, so you can learn valid filter values before writing queries.

Instructions

Statistics of a column: nulls, distinct values, min/max/avg and the most frequent values. Use it to learn valid filter values.

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>",
      "column": "<column>"
    },
    "name": "profile_column"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
tableYes
columnYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds the return contents, but says nothing about cost on large tables, engine-specific behavior, or whether profiling scans the full table — meaningful omissions for a statistics operation. With annotations carrying safety, a 3 reflects modest added value.

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 short sentences with the capability front-loaded and the use case second. No filler, no restatement of the tool name, nothing to cut.

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

Completeness3/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 structure need not be described, and the description correctly focuses on what is computed. However, for a tool whose parameters are entirely undocumented by the schema, leaving 'top' and identifier formats unexplained is a real gap relative to the tool's complexity.

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

Parameters2/5

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

Schema description coverage is 0% for three parameters, so the description must compensate and largely does not. The phrase "most frequent values" faintly implies the 'top' parameter but never states that it controls the count or that it defaults to 10, and nothing explains whether 'table' and 'column' expect qualified names or exact identifiers.

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?

The description names the resource (a column) and enumerates exactly what is computed: null counts, distinct values, min/max/avg, and most frequent values. That is a specific, verifiable statement of function. It stops short of distinguishing itself from siblings like describe_table or sample_rows, which also touch columns.

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?

"Use it to learn valid filter values" gives one concrete motivation, which is genuinely helpful for an agent deciding between this and run_query. There is no when-not guidance and no named alternative for schema-level inspection, so the routing decision is only half-supported.

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