Skip to main content
Glama

csv_preview

Preview CSV/TSV files by auto-detecting delimiters and returning column names, first rows, and row/column counts so you can verify tabular data before processing.

Instructions

CSV/TSV ファイルの列名と先頭数行を、区切り文字を自動判定して表で返す。行数・列数の概要もつく。表計算データの中身を素早く確かめる用途。

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": "csv_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesCSV/TSV ファイルの絶対パス。
max_rowsNo表示する先頭行数。省略時 10。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the delimiter is auto-detected and that a row/column summary is included, and the 'preview' framing implies a read-only operation. But it is silent on encoding assumptions, behavior when the delimiter cannot be detected, whether malformed rows are skipped, and whether large files are truncated by anything other than max_rows.

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 short, front-loaded sentences with the core behavior first and the use case last; nothing is wasted. The final sentence partially restates the purpose already implied by 'preview', so it is efficient rather than maximally tight.

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 simple two-parameter read tool with no output schema, the description covers the returned content (table of headers plus leading rows, dimension summary) well. Remaining gaps, mainly encoding and failure behavior on non-delimited input, are minor but real for a tool whose main risk is being pointed at the wrong file type.

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 both 'path' and 'max_rows' (including its default of 10) are already fully documented in the schema. The description adds no further parameter meaning, such as what max_rows does to the reported row count or whether path must point to an existing local file; a baseline 3 is appropriate.

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?

The description names a specific verb and resource (returns column names and the first N rows of a CSV/TSV file) and adds distinguishing behaviors: automatic delimiter detection and a row/column count summary. This is enough for an agent to tell it apart from the unrelated network-diagnostic siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an implied use case ('to quickly verify the contents of spreadsheet data') but never states when not to use it, what to do instead for full-file access, or any prerequisites such as the file being text-delimited rather than a binary spreadsheet.

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