Skip to main content
Glama

load_dataset

Read-only

Loads CSV, TSV, or SQLite data read-only so audit tools can inspect tables, missing values, duplicates, outliers, keys, and references.

Instructions

Load a file so the other tools can audit it. A SQLite database loads every table, each as its own dataset named after the table, along with the foreign keys it declares.

Only truly empty cells count as missing. Placeholder text such as "N/A" or "null" is kept as written, so check_missing can report it. Loading under an existing name replaces it. Databases are opened read-only. Files outside the folders the user allowed are refused.

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

Input Schema

NameRequiredDescriptionDefault
nameNoName to use in the other tools. Defaults to the file name, or for a database the table name. Only allowed when loading a single table.
pathYesPath to a .csv, .tsv or SQLite (.db, .sqlite, .sqlite3) file, absolute or relative to the first allowed folder.
tableNoSQLite only: load just this table. Omit to load every table.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that every SQLite table becomes its own named dataset plus declared foreign keys, that only truly empty cells count as missing while 'N/A'/'null' are preserved, that reusing a name replaces the prior dataset, and that databases are opened read-only with a folder sandbox. These are exactly the side effects and data-fidelity semantics an agent needs before ingesting; nothing here contradicts readOnlyHint/openWorldHint=false.

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 stacked with short, distinct sentences each carrying a separate rule (table expansion, missing-cell policy, overwrite, read-only, sandbox). Dense but never redundant; the line breaks are slightly fragmented rather than prose, though no sentence is wasted.

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?

For a three-parameter ingestion tool with an output schema and safety annotations already supplied, the description covers the remaining unknowns: accepted file types are in the schema, return shape is in the output schema, and behavior (overwrite, sandbox, missing-cell policy, multi-table expansion) is fully stated here.

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 coverage is already 100%, so baseline is 3, but the description genuinely adds meaning the schema lacks: the replace-on-name-collision behavior for `name` and the fact that omitting `table` loads every table with each table becoming its own dataset. That clarifies consequences of the two optional parameters rather than restating them.

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 (load a file) and immediately situates it relative to the other tools ('so the other tools can audit it'), and it names a concrete sibling behavior (check_missing). An agent can tell this is the ingestion/prerequisite step without opening any 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?

The opening sentence establishes the ordering: load first, then the auditing tools operate on the loaded dataset. It also gives real exclusion rules ('files outside the folders the user allowed are refused'). It does not explicitly say when not to use it or point to list_datasets as the way to inspect what is already loaded, but the usage context is clear.

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