describe_file
Inspects a CSV, Parquet, or JSON file to reveal exact column names, auto-detected types, row count, and sample rows before writing SQL queries.
Instructions
Show a file's schema (column names and types), its row count and a few sample rows.
path is relative to an allowed folder (as list_files shows it) or absolute inside
one. Column types are DuckDB's auto-detected types, which is what SQL will see. The
row count of a CSV/JSON file needs a full scan; Parquet answers from metadata.
Use this before writing a query, to get exact column names.
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": "describe_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sample_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |