Skip to main content
Glama
ousepachn

Beehiiv Analytics MCP Server

by ousepachn

get_subscriber_details

Retrieve detailed information about a specific subscriber, including their publication ID and subscriber ID, to analyze individual audience data in Beehiiv newsletter analytics.

Instructions

Get detailed information about a specific subscriber

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
publication_idYesThe ID of the publication
subscriber_idYesThe ID of the subscriber

Implementation Reference

  • The handler function in BeehiivAPI class that performs the HTTP GET request to retrieve subscriber details from the Beehiiv API.
    async getSubscriberDetails(publicationId, subscriberId) {
      return await makeRequest('GET', `${this.baseUrl}/publications/${publicationId}/subscribers/${subscriberId}`, this.headers);
    }
  • The input schema and metadata for the 'get_subscriber_details' tool, provided in the tools/list response.
    {
      name: "get_subscriber_details",
      description: "Get detailed information about a specific subscriber",
      inputSchema: {
        type: "object",
        properties: {
          publication_id: {
            type: "string",
            description: "The ID of the publication"
          },
          subscriber_id: {
            type: "string",
            description: "The ID of the subscriber"
          }
        },
        required: ["publication_id", "subscriber_id"]
      }
    },
  • server.js:384-386 (registration)
    The dispatch logic in the tools/call handler that routes the tool invocation to the appropriate client method.
    case 'get_subscriber_details':
      result = await client.getSubscriberDetails(args.publication_id, args.subscriber_id);
      break;

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/ousepachn/beehiivanalyticsMCP'

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