csv_filter
Filter CSV records using query expressions for comparisons, text matching, and compound conditions.
Instructions
Filter records using query expressions. Supports comparisons (==, !=, <, >, <=, >=), text operations (contains, startswith, endswith, matches), and compound queries (AND, OR).
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": "<file>",
"query": "<query>"
},
"name": "csv_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the CSV file | |
| limit | No | Maximum results (default: 1000) | |
| query | Yes | Query expression (e.g., status == "active" AND age > 30) | |
| outputFormat | No | Output format (default: records) |