Skip to main content
Glama

publish_post

Publish a draft or pending WordPress post immediately by providing its post ID, moving unpublished content to live status.

Instructions

Publish a draft or pending post immediately

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

Input Schema

NameRequiredDescriptionDefault
idYesPost ID to publish

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden, and it does not: it never says whether publishing is reversible, whether it fires notifications or cache/site updates, what permissions are needed, or what happens if the post is already published. 'Immediately' hints at an instant state transition, but that is the only behavioral signal.

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?

A single nine-word sentence with the action front-loaded and zero filler. Every word contributes to identifying the operation and its precondition.

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 one-parameter mutation this is the minimum viable amount of information: the schema covers the parameter and there is no output schema to explain. However, with no annotations and no statement of side effects, irreversibility, or permission requirements, an agent lacks what it needs to call this safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single 'id' parameter is already documented as 'Post ID to publish' in the schema. The description adds no format, range, or validation meaning beyond that, so the baseline of 3 applies.

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

Purpose4/5

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

The description gives a specific verb ('Publish') and resource ('post') plus a state precondition ('draft or pending'), which lets an agent distinguish it from create_post or update_post. It stops short of explicitly contrasting with the sibling publish_page, so it is clear but not fully differentiated.

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?

'Publish a draft or pending post immediately' implies when the tool applies, but there is no guidance on what to do for already-published, scheduled, or trashed posts, and no mention of alternatives such as update_post for other edits. Usage is inferable rather than stated.

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