Skip to main content
Glama

Publish to WordPress

publish_to_wordpress

Publish HTML to a WordPress site using the site's Application Password. Creates a post with the given title and HTML body. status is draft, publish, or pending. Default is draft. Needs a StartupHub.ai API key with credit (pay as you go).

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_url": "<site_url>",
      "username": "<username>",
      "application_password": "<application_password>",
      "title": "<title>",
      "content_html": "<content_html>"
    },
    "name": "publish_to_wordpress"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTag names (created in WP if missing). Max 30.
titleYesArticle title (becomes the post title in WP)
statusNoDefault 'draft'. Use 'publish' to go live immediately, 'pending' to queue for editor review.
excerptNoOptional WP excerpt (manual excerpt overrides WP's auto-generated one).
site_urlYesWordPress site URL, e.g. 'https://blog.example.com'. https:// is auto-added if missing.
usernameYesWordPress username (the one shown in /wp-admin → Users)
categoriesNoCategory names (created in WP if missing). Max 10.
content_htmlYesFull article body as HTML. Will land verbatim in the WP block editor.
featured_image_urlNoOptional public URL of an image to sideload to WP media and attach as the featured image.
application_passwordYesApplication Password generated at /wp-admin/profile.php → Application Passwords. NOT the user's login password. 24 chars with spaces: paste as-is, we strip the spaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare non-read-only, non-destructive, open-world, so the description carries real weight and delivers: it names the auth mechanism (Application Password, not login password), the billing requirement, and the live-vs-draft consequence of `status`. It stops short of describing failure modes or what happens on retry, which for an external write tool would be valuable.

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?

Front-loaded with the verb and resource, five short sentences, zero filler. The final sentence about API credit is a prerequisite rather than definitional content, but it is short enough not to hurt scanning.

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?

Ten parameters and no output schema, yet the description never says what comes back (post ID, permalink, or WP API error shape), which an agent needs to confirm success and link the result. Parameter meaning is fully covered by the schema, so the remaining gap is return value and error behavior on an external write.

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 every parameter including the status enum and Application Password format is already documented in structured data. The description adds essentially nothing beyond the schema — the status default and credit note restate what the schema or annotations imply. Baseline 3 applies.

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?

"Publish HTML to a WordPress site ... Creates a post with the given title and HTML body" names a specific verb and resource, and the target (WordPress) is distinct from every sibling tool in the list. An agent can tell immediately that this is the outbound WordPress publishing tool.

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 states the default publishing posture ("Default is draft") and the prerequisite ("Needs a StartupHub.ai API key with credit"), which is the key gating condition for calling it. There are no sibling alternatives to disambiguate against, but it never explicitly says when *not* to use it or whether re-publishing on the same site creates a duplicate.

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