Skip to main content
Glama

Replace BrewPage publication content

update_publication
Destructive

Replace an existing publication using its kind and target or private manageUrl. A site update fully replaces its file bundle. File updates fetch a public HTTP(S) URL. KV writes one key. A missing publication is never created.

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

Input Schema

NameRequiredDescriptionDefault
idNoPublication id, or a secret's 10-character ref
keyNoKV key. Excludes hosting.
urlNoPublic HTTP(S) URL fetched directly by the tool. No local download needed.
jsonNoPass objects/arrays directly: {"x":1}. Strings are stored as strings.
kindNoPublication kind returned by publish or list; secret with its ref as id
tagsNoTags. Updates accept tags only on HTML and sites
entryNoRequired for sites. Keep the existing entryFile unless changing it.
filesNoFull site bundle.
stateNoPage data configuration for HTML-format pages and sites. {} enables, null disables on update
valueNoString value for kind=kv
formatNoOmit to keep the saved format. Send html when replacing with HTML.
contentNoHTML, Markdown or code.
filenameNoOriginal filename.
verbatimNoPreserve inline source by default. False allows paste repair.
manageUrlNoPrivate link as target and proof.
namespaceNo
ownerTokenNoPrivate owner proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"Publication id, or a secret's 10-character ref"
    • changedInput schema / properties / kind / description
      Previous value: -"Publication kind returned by publish or list"New value: +"Publication kind returned by publish or list; secret with its ref as id"
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "html",
      -  "site",
      -  "file",
      -  "json",
      -  "kv"
      -]New value: +[
      +  "html",
      +  "site",
      +  "file",
      +  "json",
      +  "kv",
      +  "secret"
      +]
  2. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already flag destructive and openWorld, so the safety profile is given. The description still earns credit for saying what is destroyed (a site's entire file bundle) and that file updates hit a public HTTP(S) URL. It does not address owner/secret proof requirements, reversibility, or failure modes beyond the no-create rule.

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?

Four short sentences, zero filler, with the replacement/identification rule front-loaded before the per-kind details. Every clause carries operational information.

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

Completeness4/5

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

For a 17-parameter, zero-required, kind-dispatch mutation tool the description covers the main branches and the destructive semantics. Some kind branches (json payloads, secret refs) and the ownerToken/manageUrl authorization story are left to 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 94%, so the baseline is 3, but the description adds real meaning: which parameters select the target (kind plus target or manageUrl) and that behavior is kind-dependent. It does not clarify the html/json/secret paths or the 0-required-parameter combinations.

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 (replace) and resource (publication), plus the two ways to identify it (kind+target or private manageUrl). 'A missing publication is never created' cleanly separates it from publish without naming it.

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?

Makes clear this is for existing publications and implicitly routes creation elsewhere via 'never created'. Per-kind sentences (site replaces the whole bundle, file fetches a URL, kv writes one key) tell the agent which mode applies. No explicit 'when not to use' or named alternative, so not a 5.

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.