analyze_file
Analyze large CSV, Excel, PDF, or JSON files and get a token-efficient summary with schema, statistics, and sample data. Use this to understand file contents without pasting thousands of rows into chat.
Instructions
Analyze a large file (CSV, Excel, PDF, JSON) and return a token-efficient summary. Instead of pasting thousands of rows into the chat, use this to get schema, statistics, and sample data in ~300-500 tokens.
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": "analyze_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | What you want to know about the file (improves relevance) | |
| file_path | Yes | Absolute path to the file to analyze | |
| token_budget | No | Max tokens for the summary (default: 500) |