Skip to main content
Glama
jgravelle
by jgravelle

index_local

Index local CSV, Excel, Parquet, or JSONL files by profiling columns, detecting types, computing statistics, and loading into SQLite for fast filtered queries. Avoids re-indexing unchanged files.

Instructions

Index a local data file (CSV, Excel, Parquet, or JSONL). Profiles all columns, detects types, computes statistics, and loads rows into SQLite for fast filtered retrieval. Set incremental=true (default) to skip re-indexing if file is unchanged. CSV, Excel, Parquet and JSONL only; any other format is rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoDataset identifier override (defaults to filename stem)
pathYesAbsolute path to data file (.csv, .tsv, .xlsx, .xls, .parquet, .jsonl, .ndjson)
depthNoProfiling depth (B7). 'shallow' caps at 100k rows for fast first-look; 'standard' is the full profile (default); 'deep' additionally precomputes correlations.standard
sheetNoExcel sheet name to index (default: first sheet)
encodingNoFile encoding override (auto-detected if omitted)
delimiterNoCSV delimiter override (auto-detected if omitted)
header_rowNoRow number containing column headers, 0-indexed (default 0)
incrementalNoSkip re-index if file hash unchanged (default true)
Behavior4/5

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

With only readOnlyHint=false provided, the description carries most of the behavioral disclosure burden and does so well: it explains profiling, statistics computation, SQLite loading, and incremental re-index skipping. It does not state whether re-indexing overwrites an existing dataset, which is a minor 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?

Three sentences with the main action and core behaviors front-loaded. The final sentence repeats the format list from the first sentence, but it adds value by making the rejection of other formats explicit.

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 an operation with 8 parameters and no output schema, the description is sufficient for an agent to understand the tool's purpose, constraints, and defaults. The main missing piece is what the tool returns after indexing, but the side-effect-oriented nature of the tool makes this non-critical.

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 the individual parameter descriptions already carry the semantic weight. The tool description mostly restates schema facts such as the incremental default and supported formats, adding little genuinely new meaning 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?

Starts with a specific verb and resource: 'Index a local data file (CSV, Excel, Parquet, or JSONL)' and clearly distinguishes itself from siblings like index_repo. It also names the concrete side effects: profiles columns, detects types, computes stats, and loads into SQLite.

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?

Clearly establishes when the tool applies by listing supported file formats and explicitly stating that any other format is rejected. It also highlights the incremental flag's default behavior, but it does not explicitly compare against alternatives like summarize_dataset or validate_index.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jgravelle/jdatamunch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server