Skip to main content
Glama

publish_rendered_page

Turn a rendered_page into a ready-to-share guest URL in one call. Pass an existing rendered_page entity_id, or inline {title, html_body, custom_css} to create one.

Instructions

Turn a rendered_page into a ready-to-share guest URL in one call. Pass an existing rendered_page entity_id, or inline {title, html_body, custom_css} to create one. Mints a guest_access_token scoped to that page and returns the absolute …/entities//html?access_token= URL plus ttl_seconds. html_body is injected verbatim into a server template — no html/head/body wrappers. Each call mints a fresh token (tokens are hash-only at rest). A link opens only that page and lasts the shorter of its stored lifetime and NEOTOMA_GUEST_TOKEN_TTL_SECONDS (default 30 days); if a link returns 401 GUEST_TOKEN_INVALID, call publish_rendered_page again for a fresh link.

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": "publish_rendered_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoPage title (used when creating a new rendered_page). Rendered into <title> and the <h1> if no html_body header overrides.
user_idNoOptional. Inferred from authentication if omitted.
entity_idNoExisting rendered_page entity id to publish. Omit to create a new page from the inline fields below.
html_bodyNoPage body HTML, injected verbatim into the server template. Do NOT include <html>/<head>/<body> wrappers. Used when creating a new rendered_page.
custom_cssNoOptional CSS injected as an inline <style> in <head> (used when creating a new rendered_page).
idempotency_keyNoOptional idempotency key for the inline-create path (mutating op). Same key + same content reuses the same rendered_page instead of creating a duplicate. Ignored when entity_id is supplied.
meta_descriptionNoOptional <meta name=description> value, escaped on render (used when creating a new rendered_page).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.16.0

TDQS

A4.6/5.0
Behavior5/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 so well: it discloses that each call mints a fresh token, that tokens are hash-only at rest, that the token is scoped to one page, and that lifetime is the shorter of the stored lifetime and NEOTOMA_GUEST_TOKEN_TTL_SECONDS (default 30 days). It also discloses rendering behavior (html_body injected verbatim, no wrappers) and a concrete failure mode with the remedy.

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 outcome, then input modes, then return shape, then lifetime and error recovery — a logical order with no filler sentences. It is dense to the point of being a single long block, which slightly hurts scanability but not content quality.

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?

There is no output schema, so the description must explain returns, and it does: an absolute URL of the form …/entities/<id>/html?access_token=<token> plus ttl_seconds. Combined with token lifecycle, rendering constraints, and the 401 remedy, an agent has everything needed to call this correctly and handle failure.

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 baseline is 3, but the description adds cross-parameter meaning the schema only implies: entity_id and the inline create fields are mutually exclusive paths, and each call mints a new token rather than reusing one. It also restates the no-wrapper constraint on html_body, reinforcing a non-obvious rendering rule.

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 transformation with a concrete verb and resource: turn a rendered_page into a ready-to-share guest URL. It immediately distinguishes the two input modes (existing entity_id vs. inline creation) and names the concrete artifact produced, so an agent knows exactly what the tool yields.

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 conditions for each path: pass entity_id for an existing page, or supply inline fields to create one, and adds recovery guidance (on 401 GUEST_TOKEN_INVALID, call publish_rendered_page again). It does not name any sibling alternative or state when not to use this tool, which keeps it short of a 5.

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