infer_schema
Parse data files to analyze field types, null rates, cardinality, and sample values. Understand source data before defining mappings.
Instructions
Parse a data file (.csv, .json, .ndjson) and return field analysis: detected types, null rates, cardinality, and sample values. Use this to understand the source data before defining mappings.
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": {
"file_path": "<file_path>"
},
"name": "infer_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | If true, save the inferred schema to .glean/schema.json | |
| file_path | Yes | Path to a .csv, .json, .ndjson, or .jsonl file to analyze |