Skip to main content
Glama

summarize_column

Read-only

Summarize one column: row and null counts, distinct counts, and per type the useful shape: numeric min/max/sum/avg/median and deciles (use them for realistic run_sql thresholds), categorical counts per option (orphan: true marks an id not in the option set; multi-select percentages can sum past 1), date ranges with monthly or yearly counts, top values for text. A high null rate may mean a recently added column. For cross-column aggregates or joins, use run_sql.

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_id": "<table_id>",
      "column_id": "<column_id>"
    },
    "name": "summarize_column"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of distinct values to return in `value_counts` / top-K. Default 50, capped at 1000.
table_idYesMyCorr table ID (e.g., `"tab-019e7293-…"`).
column_idYesMyCorr column ID, as returned by `describe_table` (e.g., `"col-019e7293-…"`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the burden and does well: it explains the `orphan: true` marker (id not in option set), warns that multi-select percentages can exceed 1, and interprets a high null rate as a possibly newly added column. It does not mention cost, latency, or truncation behavior for very high-cardinality columns, which would complete the picture.

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?

Front-loaded with the core verb, then a dense but purposeful enumeration of per-type outputs, closing with the alternative-routing sentence. Every clause conveys distinct information with no filler.

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?

There is no output schema, and the description compensates by describing the returned shape per column type, including edge-case semantics. Minor gaps remain around how many rows/values are returned overall and how results are formatted, but an agent could call this 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?

Schema description coverage is 100%, so the schema already documents `table_id`, `column_id`, and the `limit` cap. The description hints at where `limit` applies ("top values for text", "counts per option") but adds no format or default detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ("Summarize one column") and immediately enumerates the outputs: row/null counts, distinct counts, and per-type shape (numeric min/max/sum/avg/median/deciles, categorical counts, date ranges, top text values). It is clearly distinguished from the sibling `run_sql`, which is named for cross-column work.

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

Usage Guidelines4/5

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

Gives concrete usage context: deciles should be used to pick realistic `run_sql` thresholds, and cross-column aggregates or joins should go to `run_sql` instead. That is an explicit alternative with a selecting condition, though it does not address other near-neighbors such as `describe_table` or `list_column_types`.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources