Skip to main content
Glama

inspect_data

Preview CSV, Parquet, or JSON datasets to check structure, data types, missing values, and unique counts before AutoML model training.

Instructions

Get comprehensive statistics and a preview of the dataset to understand its quality and structure.
Use this to check for missing values, unique counts, and basic data types.

- NOTE: Please use absolute paths for data_path to avoid path resolution errors.
- NOTE: For files larger than 10,000 rows, statistics are computed on a random sample for performance.

Args:
    data_path: Path to the CSV, Parquet, or JSON file.
    n_rows: Number of rows to show in head/tail/sample previews (default: 5).
    
Returns:
    JSON string containing structure, stats, and previews.

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

Input Schema

NameRequiredDescriptionDefault
n_rowsNo
data_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.8

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the disclosure burden and does add real behavioral context beyond the schema: statistics are computed on a random sample above 10,000 rows, absolute paths are required, and the return payload is a JSON string with structure, stats, and previews. It does not state side-effect safety (implicit in the name 'inspect' but never asserted) or failure modes for unsupported or malformed files.

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?

The leading sentence is the most important content and comes first, with caveats and argument docs following in a scannable structure. The Args/Returns blocks are somewhat formulaic and repeat parameter names already in the schema, but they stay short and every line contributes information rather than 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 two-parameter read tool with an output schema present, the description covers the practical essentials: supported formats, the absolute-path requirement, the sampling threshold, and what the previews contain. The remaining gap is the absence of any explicit safety or side-effect statement, which matters more here because no annotations are supplied to cover it.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must supply meaning and it largely does: data_path is scoped to CSV, Parquet, or JSON files and is called out as needing an absolute path, while n_rows is explained as the count of rows shown in head/tail/sample previews, not just a bare integer. The path-resolution caveat in particular is operationally useful information absent from the schema.

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 opens with a specific verb and resource: 'Get comprehensive statistics and a preview of the dataset.' It also states the intent behind the operation (understanding quality and structure). It stops short of naming or contrasting with siblings such as query_data or process_data, so an agent must infer the boundary itself, but the purpose is unambiguous.

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?

'Use this to check for missing values, unique counts, and basic data types' gives clear situational context for when the tool applies. There are no explicit exclusions, however: nothing says whether to prefer query_data for detailed row retrieval, or whether this pairs with process_data as a pre-step. Clear context, but no alternatives and no when-not guidance.

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