Skip to main content
Glama
thenavidm
by thenavidm

Generate post preview URL

preview_post
Read-onlyIdempotent

Generate a Beehiiv post preview URL by publication and post ID, optionally as a free, premium tier, or specific subscriber view.

Instructions

Generate post preview URL. Reads account data. OAuth integrations require posts:read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoNamed private account from BEEHIIV_ACCOUNTS. Defaults to BEEHIIV_DEFAULT_ACCOUNT or the first configured account.
post_idYesThe prefixed ID of the post object
platformNo`email` (default) or `web`.
tier_idsNoOne or more premium tier IDs to preview as. Only used when `subscriber_type` is `premium`. Ignored if `subscriber_id` is present.
subscriber_idNoPreview using a specific subscriber's real tier memberships. Takes precedence over `subscriber_type`/`tier_ids` when present.
publication_idYesThe prefixed ID of the publication object
subscriber_typeNo`free` (default) or `premium`. `premium` requires `tier_ids` to be present. Ignored if `subscriber_id` is present.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that ('Reads account data', posts:read scope requirement), but omits what the tool actually returns (a URL) or whether it has side effects on the post.

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 compact sentences with the core purpose front-loaded and no filler. It is efficient, though the fragment 'Reads account data' is slightly terse and could be integrated more meaningfully.

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

Completeness3/5

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

For a read-only tool with a fully documented 7-parameter schema and no output schema, the description covers the essentials but leaves gaps: it does not indicate that a preview URL is the return value, nor clarify the read-scope implications versus sibling preview tools.

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%, and each parameter — including the tier_ids/subscriber_id precedence rules and platform defaults — is already thoroughly documented in the schema. The description contributes no additional parameter meaning, 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?

States a specific verb+resource ('Generate post preview URL') that is clearly distinct from siblings like get_post, send_post_test, and update_post. However, it does not explicitly contrast itself with send_post_test, which is the closest alternative for previewing a post.

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

Usage Guidelines2/5

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

The description gives an authorization prerequisite ('OAuth integrations require posts:read') but never says when to use this tool versus alternatives like send_post_test or get_post. No when/when-not guidance is provided.

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

Deploy Server

Other Tools