Skip to main content
Glama

get_subscriber_count

Retrieve the current subscriber count for your Substack publication to monitor audience growth and engagement.

Instructions

Get the current subscriber count for your Substack publication

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The getSubscriberCount() method in SubstackClient that makes the actual API call to fetch subscriber count from Substack's publication_launch_checklist endpoint.
    async getSubscriberCount(): Promise<{ count: number; note: string }> {
      // Try multiple endpoints — Substack's API is inconsistent
      try {
        const data = await this.request<Record<string, unknown>>(
          `${this.publicationUrl}/api/v1/publication_launch_checklist`,
        );
        if (typeof data.subscriber_count === "number") {
          return { count: data.subscriber_count, note: "exact" };
        }
        if (typeof data.subscriberCount === "number") {
          return { count: data.subscriberCount, note: "exact" };
        }
        // The subscribers field is a paginated sample, not the full list
        if (Array.isArray(data.subscribers)) {
          return {
            count: data.subscribers.length,
            note: "sample only — this is a paginated subset, not the total. Check your Substack dashboard for the exact count.",
          };
        }
      } catch {
        // Fall through
      }
      return { count: -1, note: "Could not retrieve subscriber count. Check your Substack dashboard." };
    }
  • src/server.ts:14-26 (registration)
    The MCP tool registration for 'get_subscriber_count' using server.tool(), with empty schema and handler that calls client.getSubscriberCount().
    server.tool(
      "get_subscriber_count",
      "Get the current subscriber count for your Substack publication",
      {},
      async () => {
        const result = await client.getSubscriberCount();
        return {
          content: [
            { type: "text", text: JSON.stringify(result, null, 2) },
          ],
        };
      },
    );
  • The PublicationLaunchChecklist interface type that defines the expected shape of the API response including subscriber_count.
    export interface PublicationLaunchChecklist {
      subscriber_count: number;
      [key: string]: unknown;
    }
  • The getSubscriberCount() method in SubstackClient that makes the actual API call to fetch subscriber count from Substack's publication_launch_checklist endpoint.
    async getSubscriberCount(): Promise<{ count: number; note: string }> {
      // Try multiple endpoints — Substack's API is inconsistent
      try {
        const data = await this.request<Record<string, unknown>>(
          `${this.publicationUrl}/api/v1/publication_launch_checklist`,
        );
        if (typeof data.subscriber_count === "number") {
          return { count: data.subscriber_count, note: "exact" };
        }
        if (typeof data.subscriberCount === "number") {
          return { count: data.subscriberCount, note: "exact" };
        }
        // The subscribers field is a paginated sample, not the full list
        if (Array.isArray(data.subscribers)) {
          return {
            count: data.subscribers.length,
            note: "sample only — this is a paginated subset, not the total. Check your Substack dashboard for the exact count.",
          };
        }
      } catch {
        // Fall through
      }
      return { count: -1, note: "Could not retrieve subscriber count. Check your Substack dashboard." };
    }
Behavior4/5

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

Without annotations, the description carries the full burden. It correctly indicates a read operation and the resource, but lacks specifics like whether the count includes paid or free subscribers, or any rate limits.

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

Conciseness5/5

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

A single, clear sentence with no wasted words, perfectly sized for the tool's simplicity.

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?

For a tool with no parameters and no output schema, the description is mostly complete, but it could specify the return format (e.g., a number or object) to fully guide the agent.

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

Parameters4/5

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

No parameters exist in the schema (0 parameters, 100% coverage), and the description adds no additional semantics beyond the schema, but this is acceptable given the trivial nature.

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

Purpose5/5

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

The description uses specific verb 'Get' and resource 'subscriber count' for your Substack publication, clearly distinguishing from sibling tools that deal with drafts, posts, and notes.

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?

No explicit when-to-use or alternatives are provided, but the usage is implied as a simple retrieval of subscriber count, and no similar tool exists among siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/conorbronsdon/substack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server