Skip to main content
Glama

Request publication

request_publication

Asks the owner to publish a draft, or to update a live post from its working copy, at a specific revision (baseRevision). It does not publish anything: the request waits in Entry, with status pending, until the owner reviews the draft and approves or rejects it. Saving the draft afterwards makes the request stale. Shown to the owner as a request card. Requires the publish:request scope. Publishing, unpublishing and changes to the live profile are made only by the owner, in Entry.

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": {
      "entryId": "<entryId>",
      "draftId": "<draftId>",
      "baseRevision": "<baseRevision>"
    },
    "name": "request_publication"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoA short note to the owner. At most 500 characters.
draftIdYesThe draft's id (starts with drf_), as returned by list_drafts or create_draft.
entryIdYesThe Entry's id (starts with ent_), as returned by list_entries.
baseRevisionYesThe draft revision the change is made against. If the draft has been saved since, the call fails with a conflict and the current revision.

Output Schema

NameRequiredDescriptionDefault
codeNoOnly when the call failed (isError): the error code, e.g. conflict, forbidden, not_found, validation_failed, rate_limited.
detailsNoOnly when the call failed: conflict has revision, forbidden has requiredScope, rate_limited has retryAfter (seconds), validation_failed has problems; a refused page bundle has errors (code, path, detail, fix for each) and a stale page revision has revision.
messageNoOnly when the call failed: what went wrong and what to do.
publishRequestNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-destructive, non-idempotent write), the description discloses the full behavioral model: the request sits in Entry with status pending, the owner approves or rejects it, a later draft save makes the request stale, the owner sees a request card, and the publish:request scope is required. Those are the exact facts an agent needs and none are recoverable from 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.

Conciseness4/5

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

The key distinction (asks, does not publish) is front-loaded, and each following sentence carries operational information — pending status, staleness, scope. The 'Shown to the owner as a request card' sentence is the one marginally expendable item, keeping it from a 5.

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?

An output schema exists, so return values need no prose, and the remaining gaps an agent would care about — auth scope, asynchronous pending state, staleness/conflict triggers, and who actually performs the publish — are all covered. Nothing needed to call this correctly is missing.

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, and the description earns more by explaining baseRevision's role — the revision the change is made against — and the staleness consequence of saving the draft afterward, which contextualizes the conflict behavior the schema only mentions for that one field. The other parameters (entryId, draftId, note) are left entirely to their already-complete schema descriptions.

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 opening sentence names a specific verb and resource — asking the owner to publish a draft or update a live post from its working copy — and immediately bounds the scope with 'It does not publish anything,' which cleanly separates it from any actual publish operation. An agent knows exactly what action this performs without opening the schema.

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?

It clearly states the context in which to call it (draft ready for publishing, or live post needing an update from its working copy) and excludes the wrong assumption by noting that publishing, unpublishing and live-profile changes belong to the owner. It does not explicitly name a sibling alternative such as submit_page_revision, so it stops short of full routing guidance.

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.