Skip to main content
Glama

publish_to_wordpress

Publish or update WordPress posts, pages, and custom post types via REST API with SEO metadata, defaulting to draft status for safe review.

Instructions

Publish or update content on WordPress via REST API. Supports posts, pages, and custom post types. Includes Yoast SEO metadata (title, description, focus keyword). Requires WordPress Application Password for authentication. Defaults to 'draft' status for safety.

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": {
      "siteUrl": "<siteUrl>",
      "conversationId": "<conversationId>",
      "title": "<title>",
      "content": "<content>"
    },
    "name": "publish_to_wordpress"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoURL slug.
tagsNoTag IDs.
titleYesPost title.
authorNoAuthor user ID.
postIdNoIf provided, updates an existing post instead of creating a new one.
statusNoPost status. Defaults to 'draft' for safety.draft
contentYesPost content (HTML).
excerptNoPost excerpt.
ogImageNoOpen Graph image URL.
ogTitleNoOpen Graph title for social sharing.
siteUrlYesWordPress site URL (e.g., https://example.com)
postTypeNoPost type endpoint: 'posts', 'pages', or custom post type slug.posts
seoTitleNoSEO title (meta title). Works with Yoast, Rank Math, and AIOSEO.
usernameNoWordPress username for Basic Auth.
categoriesNoCategory IDs.
ogDescriptionNoOpen Graph description.
conversationIdYesThe conversation ID obtained from learn_wordpress_api.
seoDescriptionNoSEO meta description.
featuredImageIdNoFeatured image (attachment) ID.
seoCanonicalUrlNoCanonical URL override.
seoFocusKeywordNoFocus keyword / keyphrase.
applicationPasswordNoWordPress Application Password for auth.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry disclosure burden, and it does cover two important traits: authentication requires a WordPress Application Password, and writes default to 'draft' for safety. However, it is silent on whether an update with postId replaces or merges existing fields, on permissions needed, and on what a successful call returns (no output schema exists), which are substantive gaps for a mutation tool.

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?

Four short sentences, front-loaded with the core action, and each sentence carries distinct information (capability, content types, SEO support, auth, safety default). The final sentence duplicates the schema's stated 'draft' default, a minor redundancy.

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 22-parameter write tool with no annotations and no output schema, the definition covers purpose, auth, and safety but omits the update-vs-create semantics beyond the name and never indicates what the call returns (e.g., created post ID or status). These are exactly the gaps an agent needs filled when no structured metadata compensates.

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%, so all 22 parameters are already documented at the field level, establishing a baseline of 3. The description's mentions of SEO metadata fields and the draft default merely restate what the schema already declares rather than adding format, constraint, or interaction details beyond it.

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 opens with a specific verb-and-resource pair ('Publish or update content on WordPress via REST API') and clarifies scope with supported post types (posts, pages, custom post types) plus SEO metadata handling. An agent can immediately tell this is the write/publish tool versus the read-only or analysis siblings.

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?

Usage is implied by 'publish or update' and the note that 'postId, if provided, updates an existing post,' but that routing detail lives in the schema, not the description. The description adds a useful prerequisite (Application Password required) and a safety default, but never states when to prefer this over alternatives or calls out that conversationId must be obtained from learn_wordpress_api first — leaving dependency guidance to the schema.

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