Skip to main content
Glama

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

NameRequiredDescriptionDefault
titleNoReport title (default: 'Subscriber Analysis'). Used in HTML format.
top_nNoNumber of top domains to return (default: 50).
formatNoOutput format — 'json' (default), 'text' plain-text report, or 'html' styled sponsor report.
csv_pathYesAbsolute path to the subscriber CSV file.
output_pathNoWhen format is 'html', write the report to this file path instead of returning inline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden; it usefully discloses the auto-detection behavior and the categorization taxonomy (consumer, corporate, government, education, RSS readers). It says nothing about file-size limits, error behavior for malformed CSVs, or whether output_path causes a filesystem write, which are meaningful gaps for an unannotated tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action and scoping condition, then the return contents. The final sentence largely restates what 'full domain statistics' already implied, but the text is efficient overall.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description compensates by describing the returned data structure and the CSV auto-detection. It is close to complete for a single-required-parameter analysis tool, with only file-write and error semantics left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all five parameters including the format enum and output_path are already documented in the schema. The description adds no syntax, default, or interaction detail beyond that, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Analyze a subscriber CSV file') and enumerates the output shape (top domains, categorized breakdown, notable addresses). It does not differentiate from siblings like find_notable_emails or list_domains, even though its stated output overlaps with both.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an input-compatibility condition ('auto-detects Buttondown export format but works with any CSV that has an email column'), which implies when the tool applies. However, there is no explicit guidance on when to choose this over find_notable_emails or list_domains, and no exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.