List spreadsheet columns
list_spreadsheet_columnsUse this when the user wants to see what is in a spreadsheet before validating it, or asks which columns, types or values it has: "what columns are in this file", "profile this csv", "which column is the ID", "suggest validation rules". Attach a CSV, TSV or .xlsx file or paste the table. Returns each column's letter, name, detected type (date, email, phone, ID, ZIP, number, money, percent, text), filled and blank counts, unique values, examples, min/max for numbers, short value lists, and suggested rules to pass to check_spreadsheet. Does not report errors (use check_spreadsheet) and does not change the file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_spreadsheet_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The spreadsheet to check: CSV, TSV or Excel .xlsx, e.g. customers.xlsx. | |
| sheet | No | Sheet name or number in an Excel workbook, e.g. Orders or 2. Default: the first sheet with data. | |
| table | No | Only when no file is attached: the table pasted as CSV, tab-separated or a Markdown table with its header row, e.g. "id,date,email\n1,2026-02-30,ana@example.com". A list of rows also works. | |
| header_row | No | Only if the headings were detected wrongly: the row number of the header, e.g. 3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| kind | Yes | ||
| notes | Yes | ||
| columns | Yes | ||
| suggested_rules | Yes |