Skip to main content
Glama

Publish on BrewPage

publish
Destructive

Creates public BrewPage links for HTML, Markdown, JSON, files, and multi-file static sites, or private expiring secret links for passwords and keys.

Instructions

Shared public namespace: public:true (or namespace:"public"); ordinary link-only: omit both. HTML: content; kind=site: files; kind=file: url; kind=json: json; kind=kv: key,value. Site: {"kind":"site","public":true,"files":[{"path":"index.html","content":"Hi"}]}. A public input URL does not request listing. New HTML titles go in ; preserve supplied HTML. For visitor input read get_guide topic page-data first; publish HTML and state together. Use domain for an owned hostname, linkName for a readable public link. To share a password or key: {"kind":"secret","title":"...","text":"..."}, a private link that stops working after maxViews openings; returns its owner token and manage 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"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoKV key. Excludes hosting.
ttlNokind=secret only. How long it stays readable, default 7d
urlNoPublic HTTP(S) URL fetched directly by the tool. No local download needed.
jsonNoPass objects/arrays directly: {"x":1}. Strings are stored as strings.
kindNoDefault html. secret: one-time secret link from title and text (optional filename, note, tags, ttl, maxViews, ownerToken)
noteNokind=secret only. Your own note; the recipient never sees it
tagsNoTags. Updates accept tags only on HTML and sites
textNokind=secret only. The password, key or file text; encrypted by this server before upload
entryNoSite entry path, default index.html
filesNoFull site bundle.
stateNoPage data configuration for HTML-format pages and sites. {} enables, null disables on update
titleNoAt most 200 Unicode code points. kind=secret: required, one line the recipient sees before opening; never the secret itself. HTML create: checks the existing static document head title before publishing, not stored metadata or script changes; omit when no check is needed.
valueNoString value for kind=kv
domainNoHostname on HTML-format pages or sites, with the required owning profile
formatNoHTML only. html, markdown or a code language
lambdaNoServer code for HTML-format pages and sites: the text of lambda.js, at most 32 KiB, with a BrewPage profile; never a site file. null removes it on update. Read get_guide topic lambda first
publicNoTrue selects the shared public namespace. Conflicting namespace refuses. Omit for existing defaults; false disallows namespace=public.
contentNoHTML, Markdown or code.
ttlDaysNo
filenameNoOriginal filename.
linkNameNoReadable name for the public link of a page, site or file, with the required owning profile: 6-20 of a-z, 0-9 and hyphens, with a letter
maxViewsNokind=secret only. Openings allowed, 1-10, default 1
passwordNoNew reader password. Omit for no password. Send only the exact password requested, never a placeholder.
templateNoTemplate slug for an HTML copy
verbatimNoPreserve inline source by default. False allows paste repair.
namespaceNoUse public for the shared public namespace, or a custom namespace. Omit for existing defaults.
ownerTokenNoPrivate owner proof.
deliveryModeNo
requireAccountNoRequire account ownership.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.5.1
    • addedInput schema / properties / lambda
      Added value: +{
      +  "description": "Server code for HTML-format pages and sites: the text of lambda.js, at most 32 KiB, with a BrewPage profile; never a site file. null removes it on update. Read get_guide topic lambda first",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed7 schema fields changedv3.3.1
    • changedInput schema / properties / kind / description
      Previous value: -"Default html"New value: +"Default html. secret: one-time secret link from title and text (optional filename, note, tags, ttl, maxViews, ownerToken)"
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "html",
      -  "site",
      -  "file",
      -  "json",
      -  "kv"
      -]New value: +[
      +  "html",
      +  "site",
      +  "file",
      +  "json",
      +  "kv",
      +  "secret"
      +]
    • addedInput schema / properties / maxViews
      Added value: +{
      +  "description": "kind=secret only. Openings allowed, 1-10, default 1",
      +  "maximum": 10,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / note
      Added value: +{
      +  "description": "kind=secret only. Your own note; the recipient never sees it",
      +  "type": "string"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "kind=secret only. The password, key or file text; encrypted by this server before upload",
      +  "type": "string"
      +}
    • changedInput schema / properties / title / description
      Previous value: -"HTML create only, at most 200 Unicode code points. Checks the existing static document head title before publishing, not stored metadata or script changes. Omit when no check is needed."New value: +"At most 200 Unicode code points. kind=secret: required, one line the recipient sees before opening; never the secret itself. HTML create: checks the existing static document head title before publishing, not stored metadata or script changes; omit when no check is needed."
    • addedInput schema / properties / ttl
      Added value: +{
      +  "description": "kind=secret only. How long it stays readable, default 7d",
      +  "enum": [
      +    "1h",
      +    "1d",
      +    "7d",
      +    "30d"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changedv3.1.2
    • addedInput schema / properties / linkName
      Added value: +{
      +  "description": "Readable name for the public link of a page, site or file, with the required owning profile: 6-20 of a-z, 0-9 and hyphens, with a letter",
      +  "type": "string"
      +}
  4. Addedv3.0.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the bar is lower. The description does add genuine behavior beyond that: the secret path returns an owner token and manage link and stops working after maxViews openings, and the public namespace is a shared, listing-visible space while omitted namespace is link-only. What it never addresses is the destructive side the annotation flags — whether re-publishing overwrites an existing publication at the same link or what is lost — and "A public input URL does not request listing" is too cryptic to count as disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The prose is telegraphic to the point of being hard to parse ("public:true (or namespace:"public"); ordinary link-only: omit both"), and it is not front-loaded with purpose — the first clause is about namespaces. It is short in character count but dense and poorly sequenced, and one sentence ("A public input URL does not request listing") does not earn its place because its meaning is unclear.

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

Completeness3/5

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

For a 29-parameter tool with six kinds and no output schema, the description covers a lot: kind-to-parameter mapping, namespace rules, and the secret return contract. Gaps remain on the aspects an agent most needs before calling a destructive tool — create-vs-update/overwrite behavior, and any conflict/error conditions beyond "Conflicting namespace refuses". Adequate, but not complete for this complexity.

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 93%, so baseline would be 3, but the description adds cross-parameter rules the schema cannot express: which parameter pair goes with which kind, that titles belong in <title> for new HTML, that supplied HTML is preserved, and the end-to-end example payload. It also explains the intent of domain and linkName (owned hostname, readable public link). It still repeats several per-parameter facts the schema already states, and leaves ttlDays and deliveryMode unexplained in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states plainly that the tool creates/publishes a page, site, file, JSON, KV pair or secret; the reader has to infer the action from the enumerated kinds and the per-kind input mapping ("HTML: content; kind=site: files..."). The kinds do convey the resource space, but the opening sentence is about namespace selection rather than purpose, so an agent gets only an indirect sense of what the tool does. It is distinguishable from read/update siblings only by inference, not by an explicit statement.

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

Usage Guidelines3/5

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

There is real conditional guidance: "For visitor input read get_guide topic page-data first; publish HTML and state together" and the public vs link-only rule ("public:true ... ordinary link-only: omit both"). However, nothing routes an agent between this tool and update_publication, publication_settings or delete_publication, so the when-to-use-versus-alternatives dimension is only implied. It reads as operational notes for someone who already knows the tool.

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