Skip to main content
Glama

Explore Data

explore_data

Inspect a table's column types, statistics, null counts, and sample values, then get chart and KPI recommendations to design dashboards from uploaded CSV or Excel data.

Instructions

Explore a table's data: column types, statistics, and chart recommendations.

This is the key tool for designing a good dashboard. It returns:

  • Total rows and columns

  • Each column's type, unique values, null count, and sample values

  • Classification: which columns are categorical, numeric, or date

  • Chart recommendations based on column combinations

  • Suggested KPIs based on numeric columns

Use this AFTER upload_csv to understand the data before calling generate_config() or building custom charts.

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_name": "<table_name>"
    },
    "name": "explore_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
table_nameYesTable name in DuckDB.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden. It clearly implies a read-only inspection and enumerates the outputs, but says nothing about cost on large tables, whether it scans or samples rows, or any limits. The output shape is well covered by the output schema, but performance and side-effect traits remain undisclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then a compact bulleted return summary and a closing sequencing note. The return bullets partially duplicate what the output schema already declares, which is minor redundancy, but each line is short and scannable 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?

For a one-parameter read tool with an output schema and full parameter coverage, the definition supplies role, output expectations, and ordering relative to upload_csv and generate_config. The only meaningful omission is runtime/scale behavior on large tables.

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 coverage is 100% and the single table_name parameter is documented as a DuckDB table name, so the schema does the work. The description only reinforces that the target is an existing table; it adds no format, naming, or resolution nuance beyond the schema.

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 gives a specific verb and resource ('Explore a table's data') and immediately enumerates what that means: column types, statistics, classification, chart recommendations and KPIs. That breadth distinguishes it from narrow siblings like detect_columns, get_table_columns or preview_table without naming them.

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?

It gives explicit sequencing: use AFTER upload_csv and BEFORE generate_config() or building custom charts. It also frames the tool's role ('key tool for designing a good dashboard'). It does not state when to prefer a lighter sibling such as preview_table for a quick peek, so it stops short of full when/when-not guidance.

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