Skip to main content
Glama

compose_post

Create or update Ghost posts from structured Koenig content blocks to produce clean, natively editable content instead of raw HTML; use inline blocks or a JSON block file for long posts.

Instructions

Create or update a Ghost post from structured Koenig content blocks (paragraphs, headings, lists, callouts, images, buttons, etc.). PREFER THIS over use_ghost_api with raw html/lexical — it produces clean, natively-editable posts. Pass blocks inline for short posts, or write them to a JSON file and pass blockFile (absolute path) for long posts. Omit id to create, set id+updated_at to update. Call koenig_help to discover block types and fields.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compose_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoPost ID to update. Omit to create a new post.
slugNoCustom URL slug
tagsNoTags to assign (by id or name)
titleNoPost title (required when creating a new post)
blocksNoOrdered content blocks (inline). Prefer native blocks (paragraph/heading/list/quote) and cards over raw html. Prose `text` supports inline **bold**, _italic_, `code`, [links](url). Use koenig_help to discover block fields. For long posts, write the blocks to a JSON file and pass `blockFile` instead.
statusNoPost status (default draft)
excerptNoCustom excerpt (maps to custom_excerpt)
blockFileNoAbsolute path to a local JSON file containing the blocks — either a bare array `[...]` or `{ "blocks": [...] }`. Use this for long posts: compose/edit the file (validating with compose_lexical), then pass the path instead of re-sending the whole array. Provide exactly one of `blocks` or `blockFile`. Writing to an absolute path under tmp/ is recommended.
updated_atNoRequired when updating (id set): the post's current updated_at, for collision detection. Get it via posts.read.
visibilityNopublic, members, paid, or tiers
feature_imageNoFeature image URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it explains that `updated_at` is needed for collision detection and must be fetched via posts.read, that `blocks` and `blockFile` are mutually exclusive, and that status defaults to draft. It does not disclose auth/permission requirements or what happens to the post on publish, which is the main remaining gap for a write tool.

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?

Front-loaded with the purpose and the sibling preference, then flows into mechanics. Every sentence carries information; the parenthetical block enumeration and the inline-markdown note are dense but relevant rather than filler.

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

Completeness5/5

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

For an 11-parameter write tool with no annotations and no output schema, the definition covers the decision points an agent actually needs: create vs update, inline vs file, mutual exclusion, default status, and where to learn block fields. Return-value shape is the only unaddressed area and is minor relative to the mechanics covered.

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?

Schema coverage is already 100%, so baseline is 3, but the description adds genuine meaning on top: the id/updated_at create-vs-update pairing, the exactly-one-of `blocks`/`blockFile` rule, and the recommendation to write long block arrays to a JSON file under tmp/ instead of resending them.

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 verb+resource+format: 'Create or update a Ghost post from structured Koenig content blocks'. It immediately differentiates itself from the sibling use_ghost_api by declaring the raw html/lexical path inferior.

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

Usage Guidelines5/5

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

Gives explicit routing: 'PREFER THIS over use_ghost_api with raw html/lexical'. It also defines the create-vs-update condition (omit `id` vs set `id`+`updated_at`), the inline-vs-`blockFile` decision rule for short vs long posts, and points to koenig_help for block discovery.

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