Skip to main content
Glama
arthurxavier106

duckdb-analytics-mcp

profile_column

Read-onlyIdempotent

Profile a column's distribution, outliers, coverage gaps, and dirty values. Adapts to numeric, date, text, or boolean types to reveal skew, missing days, and formatting issues.

Instructions

Profile one column: distribution, outliers, coverage gaps, dirty values.

The profile adapts to the column type:

  • numeric: min/p25/median/mean/p75/p95/max/stddev, plus a Tukey outlier count and the largest values when the distribution is skewed

  • date/timestamp: range, distinct days, and the largest gaps in coverage

  • text/boolean: top values with shares, plus a warning when values differ only by case or formatting

Args: table (str): Table name, case-insensitive. column (str): Column name, case-insensitive.

Returns: str: Markdown profile, ending with the column's definition and any caveats that mention it.

On failure: "Error: Table 'orders' has no column 'x'. Columns: ..."

Examples: - Use when: "Is unit_price skewed? Should I use mean or median?" - Use when: "Are there missing days in order_date?" - Use when: a GROUP BY returned more groups than expected. - Don't use when: you want the whole schema (use describe_table).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYesTable name, e.g. 'orders'. Case-insensitive.
columnYesColumn name, e.g. 'unit_price'. Case-insensitive.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds substantial behavioral context beyond these: it explains that the profile adapts to column type (numeric/date/text) with specific statistics and warnings, describes the return format as Markdown, and even includes an error message example for invalid input. This goes far beyond annotation data.

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?

The description is well-structured with clear sections (summary, type-specific behavior, Args, Returns, Examples), uses bullet lists for readability, and front-loads the core purpose in the first line. Every sentence earns its place, providing rich detail without fluff or redundancy.

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 tool with only two parameters, the description is thorough: it covers all column type behaviors, return format, error handling, and typical use cases. It also leverages an output schema (though not shown) and annotations, making it fully contextual for an agent to select and invoke correctly.

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?

The input schema already provides 100% description coverage for both parameters (table and column), including examples and case-insensitivity. The description's Args section essentially repeats this information without adding new meaning. Baseline is 3 due to high schema coverage; the description adds no extra parameter semantics.

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 opens with 'Profile one column: distribution, outliers, coverage gaps, dirty values', which is a specific verb+resource combination that clearly states what the tool does. It further distinguishes itself from sibling tools like describe_table by explicitly saying 'Don't use when: you want the whole schema (use describe_table)' and by focusing on single-column profiling.

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?

The description provides explicit 'Use when' scenarios with concrete example questions ('Is unit_price skewed?', 'Are there missing days in order_date?') and a non-example ('a GROUP BY returned more groups than expected'). It also gives a clear exclusion ('Don't use when: you want the whole schema') and names the alternative (describe_table).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arthurxavier106/duckdb-analytics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server