You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Understand and analyze CSV files. Use when the task involves reading, parsing, or answering questions about data in a CSV file.
4
+
---
5
+
6
+
# simple_file_understanding
7
+
8
+
## Instructions
9
+
10
+
When a task involves a CSV file, follow this workflow:
11
+
12
+
### Step 1: Read the File
13
+
Use the `read_file` tool from the `tool-reading` MCP server to load the file content. Provide the full local file path as the `uri` argument.
14
+
15
+
### Step 2: Understand the Structure
16
+
After reading the file, identify:
17
+
-**Column headers**: The first row typically contains column names.
18
+
-**Data types**: Determine whether each column contains numbers, text, dates, or mixed types.
19
+
-**Row count**: Note the approximate number of data rows.
20
+
-**Delimiter**: CSV files use commas by default, but the content returned will already be converted to markdown table format.
21
+
22
+
### Step 3: Answer the Question
23
+
When answering questions about the CSV data:
24
+
-**Filtering**: To find rows matching a condition (e.g., "names starting with Co"), scan the relevant column and apply the filter.
25
+
-**Sorting**: If the question asks for "first", "last", "highest", or "lowest", identify the ordering criterion. Unless otherwise specified, "first" means the first matching row in the file's original order (top to bottom).
26
+
-**Aggregation**: For questions involving counts, sums, averages, or other aggregations, compute them from the relevant column values.
27
+
-**Exact matching**: Pay close attention to exact string matching vs. prefix/substring matching. "Starting with Co" means the value begins with "Co", not just contains "Co".
28
+
29
+
### Important Notes
30
+
- Always read the file before attempting to answer. Do not guess the content.
31
+
- If the file is large and the markdown output is truncated, focus on the portions relevant to the question.
32
+
- Provide the final answer clearly and concisely, wrapped in \boxed{}.
0 commit comments