xlsx_value_counts
Counts each unique value in a spreadsheet column, sorted by frequency with percentages. Use it to profile data distribution and spot dominant or rare entries in .xlsx files.
Instructions
Use this when you need per-column value counts — each unique value, sorted by frequency, with percentage.
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>"
},
"name": "xlsx_value_counts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | Sheet name (default: first sheet). | |
| top_n | No | Show top N most-frequent values (default 50). | |
| column | Yes | Column to count values in. | |
| file_path | Yes | Absolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64). | |
| header_row | No | Header row (1-based). 0 = treat row 1 as data, no header. | |
| include_nulls | No | Count null cells as a distinct value (default false). |