analyze_subscribers
Analyze subscriber CSV exports to count email domains, categorize audiences, identify top domains and notable addresses, and generate shareable HTML sponsor reports.
Instructions
Analyze a subscriber CSV file and return full domain statistics. Auto-detects Buttondown export format but works with any CSV that has an email column. Returns top domains, categorized breakdown (consumer, corporate, government, education, RSS readers), and a list of notable email addresses.
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": {
"csv_path": "<csv_path>"
},
"name": "analyze_subscribers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Report title (default: 'Subscriber Analysis'). Used in HTML format. | |
| top_n | No | Number of top domains to return (default: 50). | |
| format | No | Output format — 'json' (default), 'text' plain-text report, or 'html' styled sponsor report. | |
| csv_path | Yes | Absolute path to the subscriber CSV file. | |
| output_path | No | When format is 'html', write the report to this file path instead of returning inline. |