Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
BEEHIIV_API_KEY | Yes | Your Beehiiv API key | |
BEEHIIV_PUBLICATION_ID | Yes | Your Beehiiv publication ID |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
list_publications | List all publications accessible with this API key. |
list_posts | List all posts for a given publication.
Args:
publication_id: e.g. 'pub_00000000-0000-0000-0000-000000000000' |
get_post | Retrieve a single post by ID.
Args:
publication_id: ID of the publication
post_id: ID of the post |
get_post_content | Retrieve a post's content as JSON to use as a template.
Args:
publication_id: ID of the publication
post_id: ID of the post
Returns:
dict: JSON object containing post title, subtitle, and HTML content template |
create_new_post | Create a new post using provided HTML content.
Args:
publication_id: ID of the publication
title: Title of the new post
subtitle: Subtitle of the new post
html_content: HTML content for the post |