Skip to main content
Glama

Publish a post

publish_post
Idempotent

On one site of the account, named in site. Publishes a draft now, or schedules it for at (an ISO 8601 time; a bare time is read in the site's zone). Readers see it from then on. Editors and above; an author's draft waits for one.

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": {
      "site": "<site>",
      "post_id": "<post_id>"
    },
    "name": "publish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoWhen, for a scheduled post; leave out to publish now
siteYesThe site to work on, as list_sites names it
post_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare non-readonly, idempotent, non-destructive, and open-world, so the bar is lower, but the description still adds genuine context: the post becomes reader-visible immediately or from the scheduled time, and publishing requires editor-level rights while an author's own draft is held for approval. It does not say what happens if the post is already published or how to undo it.

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?

Three tight sentences, front-loaded with scope then behavior then permissions, with no filler. The opening clause about the site slightly duplicates what `site`'s schema description already states, costing a bit of space.

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 three-parameter mutation with annotations and no output schema, the description covers the effect on readers, scheduling semantics, and authorization requirements. Missing pieces are edge-case behavior (already-published posts, failure modes) and any hint of the response.

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?

Beyond the 67%-covered schema, the description explains that `at` is ISO 8601 and that a bare time is interpreted in the site's timezone — a genuine semantic addition the schema lacks. The required `post_id` is left entirely undocumented, which is the main gap.

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 names a specific verb and resource ("Publishes a draft", with the alternative "schedules it for `at`") and scopes it to a single site named in `site`. The publish/unpublish distinction is unambiguous against siblings such as unpublish_post, edit_post, and create_post.

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 gives a real when-to-use condition for the two modes (omit `at` to publish now, supply `at` to schedule) and a permission gate: "Editors and above; an author's draft waits for one." It stops short of explicitly routing to alternatives such as unpublish_post for reversal or edit_post for content changes.

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