Skip to main content
Glama

Send a draft to WordPress

send_draft_to_wordpress
Idempotent

Send one page draft to the user's WordPress site as a WordPress DRAFT, never published. Called without approval it returns a preview and an approval code; call again with that approval only after the user agrees. Needs the Goppa WordPress plugin 0.16.0 or newer with Comparison pages on, and write access.

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": {
      "draft_id": "<draft_id>"
    },
    "name": "send_draft_to_wordpress"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoOne of your sites in Goppa, by domain (example.com). Required when the account has more than one site: without it, the answer lists the sites to choose from. With a single site it can be left out.
approvalNoLeave out the first time: you get a preview and an approval code. Send that code only after the user agrees.
draft_idYesThe draft id from get_page_drafts.

Output Schema

NameRequiredDescriptionDefault
siteNo
as_ofNo
draftNo
errorNo
needsNo
readyNo
savedNo
stateNo
marketNo
periodNo
reasonNo
sampleNo
missingNo
partialNo
previewNo
startedNo
summaryNo
approvalNo
languageNo
availableNo
arrives_asNo
data_statusNo
next_actionNo
evidence_idsNo
plugin_readyNo
open_in_goppaNo
site_requiredNo
workspace_urlNo
plugin_versionNo
approval_changedNo
sites_in_accountNo
untrusted_fieldsNo
comparison_pages_option_onNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, open-world, idempotent, non-destructive call. The description adds the crucial behavior the annotations cannot convey: a two-step preview/approval handshake, the guarantee it never publishes, and the plugin version and permission prerequisites.

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?

Three tight sentences with no filler: the core action and its non-publishing guarantee come first, the approval protocol second, prerequisites last. Every sentence carries information the agent needs.

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?

The tool has an output schema, so return values need no explanation, and the description still covers the preview response. Approval flow, prerequisites, and single-vs-multi-site behavior (in the schema) are all accounted for; nothing an agent needs 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.

Parameters3/5

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

Schema description coverage is 100%, so site, approval, and draft_id are already documented. The description restates the approval gating but adds no syntax or edge-case detail beyond the schema, so the baseline 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?

States a specific verb and resource ('Send one page draft to the user's WordPress site') and pins the outcome with 'as a WordPress DRAFT, never published.' It does not explicitly distinguish itself from the sibling write_page_draft, so the agent must infer the boundary from names alone.

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?

Gives explicit call sequencing: omit approval first to get a preview and code, then resend the code only after the user agrees. It also lists prerequisites (Goppa WordPress plugin 0.16.0+, Comparison pages on, write access). It stops short of naming alternatives, so it earns a 4 rather than a 5.

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