Skip to main content
Glama

Preview how a body will render

preview_draft_body
Read-onlyIdempotent

Convert a post body to Substack's document format and see the exact output before saving. Check embeds, paywalls, and nested lists without creating or modifying a draft.

Instructions

Convert a body to Substack's document format and show what it produced, without creating or touching anything. Use this to check that an embed, a paywall or a nested list came out the way you meant before you write it to a draft.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesPost body. Markdown by default. Supported: headings, bold, italic, inline code, strikethrough, links, images, nested lists (any depth, ordered and unordered mixed), fenced code blocks with a language, blockquotes and horizontal rules. Two things worth knowing: - A line containing only a YouTube, X, Spotify or Vimeo URL becomes a real embedded player, not a link. Put the URL inside a sentence if you want a plain link. - Write <paywall> on its own line to mark where the paywall starts. Everything after it is for paying subscribers only. One per post. Markdown tables have no equivalent in Substack's editor, so they are preserved verbatim in a code block rather than being mangled.
body_formatNoHow to read `body`. 'auto' detects it and is almost always right. Use 'prosemirror' to send a Substack document directly.
Install Server

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnly and idempotent annotations, the description explains the conversion behavior and explicitly states that nothing is created or touched. This adds useful safety context beyond the annotation flags alone.

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?

Two sentences with no wasted words. The core operation and safety guarantee are front-loaded, followed by a concrete use case.

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?

The rich input schema and safety annotations carry most of the context, and the description clearly explains the tool's purpose and when to use it. The output format is not specified, but 'show what it produced' is adequate for an agent to invoke and inspect the result.

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 coverage is 100%, and the schema already thoroughly documents body and body_format, including supported markdown, embed URL behavior, paywall syntax, and table handling. The description adds no new parameter-level details, so the baseline of 3 applies.

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?

States a specific operation: convert a body to Substack's document format and show the result without persisting anything. It clearly distinguishes itself from draft-mutating siblings like set_draft_body or create_draft.

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

Usage Guidelines4/5

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

Gives a concrete use case: check embeds, paywalls, or nested lists before writing to a draft. It doesn't name alternatives explicitly, but the 'before you write it to a draft' contrast positions it well against write/save tools.

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

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/navidmoazzez/substack-mcp-cli'

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