Skip to main content
Glama

inspect_dataset

Profile a named workspace dataset to inspect shape, column types, missing values, summaries, and a bounded raw-value preview before analysis or remediation.

Instructions

Profile a named workspace dataset: shape, column types, missingness, summaries and a bounded preview that includes raw values. Use analyze_data_quality for remediation recommendations. CSV is built in; Parquet and Excel readers need optional packages.

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": {
      "name": "<name>"
    },
    "name": "inspect_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDataset filename.
max_rowsNoPreview row count, 1–100. Omit for the server default (25).
delimiterNoCSV delimiter (comma, semi, tab, pipe). Auto.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.4
    • changedInput schema / properties / max_rows / description
      Previous value: -"Max preview rows (default 25, max 100)."New value: +"Preview row count, 1–100. Omit for the server default (25)."
  2. Changed1 schema field changed
    • addedInput schema / properties / delimiter
      Added value: +{
      +  "description": "CSV delimiter (comma, semi, tab, pipe). Auto.",
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the preview contains raw values (a privacy-relevant trait), that the preview is bounded, and that Parquet/Excel support depends on optional packages that may be absent. It omits whether profiling scans the full dataset or samples it, and what happens on very large inputs.

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 tight sentences, each doing distinct work: what is produced, which sibling to use instead, and which formats need extra packages. The output inventory is front-loaded and nothing is redundant.

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 no output schema, listing the returned elements (shape, types, missingness, summaries, preview) is genuinely useful and covers most of what an agent needs to decide to call it. The remaining gap is the lack of any statement about cost or sampling behavior on large datasets.

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 name, max_rows, and delimiter are already documented with defaults and ranges in the schema. The description adds only the notion of a bounded preview with raw values, which is marginal meaning beyond the structured fields; 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 (profile) and resource (named workspace dataset) and enumerates the outputs: shape, column types, missingness, summaries, bounded preview with raw values. It also names a sibling (analyze_data_quality) and distinguishes its own role from that sibling's remediation focus.

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?

Explicitly routes the agent away from this tool when remediation recommendations are wanted, naming analyze_data_quality as the alternative. There is no guidance on other plausible conditions (e.g., dataset size limits or when to prefer prepare_dataset), but the one alternative offered is clear and actionable.

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