csv_filter
Filter CSV file rows based on column conditions to extract specific data. Use operators like equals, contains, or comparisons to match values, with options for sorting and limiting results.
Instructions
Filter CSV rows by a column condition. Returns matching rows as JSON.
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>",
"column": "<column>",
"operator": "<operator>",
"value": "<value>"
},
"name": "csv_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the CSV file | |
| column | Yes | Column name to filter on | |
| operator | Yes | Comparison operator | |
| value | Yes | Value to compare against | |
| limit | No | Max rows to return (default 50) | |
| sort_by | No | Column to sort results by | |
| sort_dir | No | Sort direction | asc |