Skip to main content
Glama

Inspect Dataset

data.inspect_dataset
Read-onlyIdempotent

Exploratory summary of a public EEG dataset (MOABB pack): channels, sampling rate, trial/class balance, per-channel µV stats, band powers and a PSD overview.

Look at the data BEFORE building pipelines: class balance drives stratification choices (imbalanced classes skew accuracy), and flatlined channels mean a montage/reference problem worth fixing first. subject defaults to the dataset's catalog defaultSubject (see catalog.datasets), e.g. "S01"; a comma-list like "S01,S03" loads a cohort. mode: training | evaluation | all. Units note: values are ASSUMED volts by the loader — a µV-native file reads 1e6x too large; set unitsScale in a pipeline's custom_data config when needed.

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

Input Schema

NameRequiredDescriptionDefault
modeNoWhich split to summarize — training | evaluation | all.all
datasetYesDataset id from catalog.datasets (e.g. "BNCI2014_001").
subjectNoSubject code ("S01") or comma-list cohort ("S01,S03"); defaults to the catalog defaultSubject.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / mode / enum
      Added value: +[
      +  "training",
      +  "evaluation",
      +  "all"
      +]
    • changedInput schema / properties / subject / description
      Previous value: -"REQUIRED subject code (\"S01\") or comma-list cohort (\"S01,S03\")."New value: +"Subject code (\"S01\") or comma-list cohort (\"S01,S03\"); defaults to\nthe catalog defaultSubject."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety needs no restating. The description adds a genuinely valuable behavioral caveat beyond the annotations: the loader ASSUMES volts, so µV-native files read 1e6x too large, with the fix (unitsScale in custom_data config). It does not mention cost/latency for multi-subject cohort loads, which is a minor remaining gap.

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 return content, then usage rationale, then parameter/units notes — a sensible order with no filler sentences. It loses a point because the mode/subject/dataset explanations duplicate what the input schema already states verbatim.

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?

An output schema exists, so return format need not be explained, and the description covers purpose, when-to-use, parameter defaults, and the units gotcha. For a three-parameter read-only inspection tool this is fully sufficient to call correctly and interpret the result.

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% and the schema already documents the defaultSubject fallback, the comma-list cohort form for subject, and the training|evaluation|all enum. The description largely restates those semantics (only adding the 'S01' example), so it adds minimal meaning beyond the structured fields. A 3 is the correct baseline when the schema carries the parameter documentation.

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 ('Exploratory summary of a public EEG dataset') and enumerates exactly what is produced: channels, sampling rate, trial/class balance, per-channel µV stats, band powers, PSD. This distinguishes it cleanly from siblings like data.inspect_file (file-level) and plots.dataset (visualization) without needing to open either schema.

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 explicit when-to-use guidance with rationale: 'Look at the data BEFORE building pipelines', and explains why each output matters (class balance drives stratification, flatlined channels signal montage/reference problems). It also cross-references catalog.datasets for the defaultSubject default. It stops short of naming when NOT to use it or pointing to an alternative sibling (e.g., plots.dataset for visualization), so it is not a full 5.

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.