Skip to main content
Glama

Publish a Markdown document

publish_doc

Publish Markdown as a beautifully typeset page and receive its https://lucid.page/ URL. Works anonymously; with an lp_ API key the page is owned by the account and can be updated later. Anonymous publishes return a one-time claim_token — hand your human the claim link https://lucid.page/claim?slug=&token= so they can claim the page into their account (agents: POST /api/docs//claim).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ttlNoLifetime in seconds (min 60). Omit for a page that never expires.
titleNoOptional display title.
markdownYesThe Markdown source to publish (max 1 MB).
visibilityNoDefaults to unlisted. Private requires an lp_ API key.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe live page URL.
slugYes
expires_atYesISO timestamp, or null when the page never expires
visibilityYes
claim_tokenNoOne-time ownership token (anonymous publishes only). A human claims the page at https://lucid.page/claim?slug=<slug>&token=<claim_token>; agents claim with POST /api/docs/<slug>/claim.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedOutput schema / properties / claim_token / description
      Previous value: -"One-time ownership token (anonymous publishes only). Claim with POST /api/docs/<slug>/claim."New value: +"One-time ownership token (anonymous publishes only). A human claims the page at https://lucid.page/claim?slug=<slug>&token=<claim_token>; agents claim with POST /api/docs/<slug>/claim."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavioral detail beyond the annotations: anonymous works without an account, anonymous publishes return a one-time claim_token, and the page can later be claimed or updated with an lp_ key. This discloses auth needs, ownership, and downstream actions, which is exactly the kind of context that helps an agent. No contradiction with the annotations.

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?

The description is three sentences with no filler; the primary purpose and returned URL are front-loaded, followed by essential auth and claiming details. Every sentence contributes operational value.

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?

The description is complete for a publish action: it explains result URL, anonymous vs. authenticated behavior, ownership, claim token, claim link, and the agent-facing claim endpoint. Combined with a full input schema and output schema, nothing critical is missing.

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%, so the parameters are already well documented in the schema. The description does not add new meaning for ttl, title, markdown, or visibility beyond what the schema provides, so the baseline score of 3 is appropriate.

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?

The description opens with a specific verb and resource: 'Publish Markdown as a beautifully typeset page and receive its https://lucid.page/<slug> URL.' This clearly states what the tool does and its output. It also differentiates from siblings by emphasizing creation/publishing rather than updating, deleting, listing, or getting docs.

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?

The description provides clear usage context: it works anonymously, and with an lp_ API key the page is owned and can be updated later. It also explains the anonymous flow with a claim_token and claim link, which tells an agent what to do after publishing. It does not explicitly name alternatives like update_doc, but the context makes the appropriate paths clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources