Skip to main content
Glama

Outbox: publish HTML or Markdown

outbox_publish

Publish an HTML or Markdown page under a slug, rendered server-side into safe HTML using your account template; create a new page or republish as a new version with private-by-default visibility.

Instructions

Publishes a page from raw html or markdown (rendered server-side into safe HTML with the account template). Creates the slug or republishes it as a new version (previous versions are kept). model is required. New pages are private by default. Republishing keeps title, tags, summary, description, contentType, visibility, draft and TTL unless they are sent. expectedVersion makes the publish fail with 409 version_conflict if the page changed since it was read. draft:true keeps it private until outbox_go_live.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>",
      "model": "<model>"
    },
    "name": "outbox_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoVisibility TTL (e.g. '24h', '7d'); the page reverts to private when it expires. Non-private only
htmlNoRaw HTML (served as-is; max 5 MB). Mutually exclusive with markdown
slugYesPage slug/path; hierarchical paths are allowed (e.g. 'briefings/today')
tagsNoTags (max 20; each 1-50 chars of letters, digits, '.', '_' or '-', no spaces). Stored in lowercase
draftNotrue = draft: effectively private until outbox_go_live
modelYesRequired: id of the model that generated the content (e.g. 'claude-opus-4-8')
ownerNoHandle of a team/org the account belongs to, to publish under that namespace. Omitted = own namespace
titleNoPage title
summaryNoShort summary (derived from the title when missing on a new page)
approvalNoClient Approve button on/off
markdownNoMarkdown source, rendered server-side to safe HTML. Mutually exclusive with html
file_pathNoLocal .html/.md file (relative to OUTBOX_FILES_DIR). Mutually exclusive with html/markdown
visibilityNoprivate / unlisted / public. Omitted: private for new pages, unchanged when republishing
contentTypeNoFree content type: briefing | report | notes | post | mockup | ...
descriptionNoLong description
notifySlackNoSlack channel to notify, e.g. '#team' (not a URL)
idempotencyKeyNoIdempotency key. Reuse the same key when retrying the same write (e.g. after a timeout) so it is not applied twice. Omitted = generated
expectedVersionNoVersion that was read: the `version` returned by outbox_pull (or outbox_export / outbox_versions, read BEFORE the content). If the page changed since, the publish fails with 409 version_conflict
rejectOnSecretsNotrue = if the content appears to include credentials (API keys, tokens, private keys) it is NOT published (422 secrets_detected with type and line). Omitted = it is published and the result warns in warnings.secrets
inheritFolderVisibilityNotrue = inherit the visibility of the closest folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: previous versions are retained, new pages are private by default, unspecified fields on republish are merged rather than cleared, TTL reverts the page to private, and expectedVersion produces a 409 version_conflict on a stale read. Conflict handling and merge semantics are exactly the kind of traits an agent needs and cannot derive from the readOnly/destructive hints alone.

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 core action, then the create-vs-republish distinction, then defaults and gotchas. The enumerated field list is long but each item carries the merge-semantics point; only that enumeration and the redundant 'model is required' (already in the required array) cost it a point.

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 a 20-parameter mutation with no output schema, the description covers the essential unknowns: required inputs, default visibility, merge-on-republish behavior, optimistic concurrency failure mode, version retention, and the draft workflow. Remaining schema-level details (mutual exclusivity of html/markdown/file_path, notifySlack) are fully documented in the schema.

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 100%, so the baseline is 3, but the description still adds real meaning: it flags `model` as mandatory, explains that republishing preserves title/tags/summary/description/contentType/visibility/draft/TTL unless explicitly sent, and clarifies the concurrency contract for expectedVersion. That merge rule is a cross-parameter convention absent from the schema itself.

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 and resource (publishes a page) plus the two accepted content inputs (html or markdown, rendered server-side with the account template). It goes further by splitting the two modes of operation — creating a slug vs republishing it as a new version — which an agent cannot infer from the name alone.

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 clear context for when each mode applies (new page defaults to private; draft:true routes the agent to outbox_go_live before it becomes visible) and names a sibling for that follow-up step. It stops short of explicitly excluding look-alike entry points such as appending to an existing page, so it is strong but not fully disambiguating.

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