Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Wordpress Request

wordpress_request
Destructive

Edits a Cloud for WordPress site's pages, posts, menus, comments, and settings by running one WordPress REST API call, so content changes need no password or extra setup.

Instructions

EDIT A CLOUD FOR WORDPRESS SITE'S CONTENT: pages, posts, menus, categories, comments, site title and anything else in the WordPress REST API. This is the tool to use when the user asks to change what is on their WordPress site. It runs one REST call inside the site, so no password or extra setup is needed. path is the REST route without /wp-json, e.g.:

  • list pages: GET /wp/v2/pages with query {"_fields": "id,title,link,status"}

  • read a page to edit it: GET /wp/v2/pages/12 with query {"context": "edit"} (content.raw is the block markup to change)

  • update it: POST /wp/v2/pages/12 with body {"content": "..."} (send the whole new content, keeping the block comments)

  • new post: POST /wp/v2/posts with body {"title": "...", "content": "...", "status": "draft"} (draft first, publish when the user says so)

  • menus: /wp/v2/navigation, /wp/v2/menu-items; search: GET /wp/v2/search?search=...

  • widgets (classic themes, e.g. a footer): GET /wp/v2/sidebars first for the real widget-area ids, then POST /wp/v2/widgets with that sidebar id. Without a valid sidebar, WordPress still answers 201 but parks the widget in Inactive widgets, so check the sidebar afterwards. Block themes have no widget areas: edit the footer template part (/wp/v2/template-parts) instead. It acts as the porkbun-agent WordPress editor by default (pages, posts, media, comments). Site settings (title, tagline, homepage), plugins, themes and users need as_administrator: true with acknowledge_full_access: true; ask the user first. Use _fields and per_page to keep answers small. Show the user what will change before overwriting a page, and offer create_wordpress_backup before big edits. Images: upload with wordpress_upload_media, then use its id or url. WordPress's own errors come back as WP_REST_ERROR with httpStatus and its message.

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": {
      "domain": "<domain>",
      "path": "<path>"
    },
    "name": "wordpress_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH.
pathYesREST route, e.g. `/wp/v2/pages` or `/wp/v2/posts/42`. No query string: use `query`.
embedNoInclude linked resources (_embed), e.g. the featured image.
queryNoQuery parameters, e.g. {"per_page": 10, "context": "edit", "_fields": "id,title"}.
domainYesThe domain of the Cloud for WordPress site, e.g. `example.com`.
methodNoHTTP method (default GET). POST updates an existing item when the path has its id.
dry_runNoFor writes: check the request without sending it to WordPress.
as_administratorNoAct as the site administrator (settings, plugins, themes, users). Needs acknowledge_full_access.
acknowledge_full_accessNoConfirms the user agreed to administrator-level changes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.62.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare destructive/openWorld/non-idempotent; the description goes far beyond them, disclosing that it runs a single REST call inside the site with no password or extra setup, that it acts as the porkbun-agent editor by default, that privilege escalation needs two flags and prior user consent, and that WordPress errors surface as WP_REST_ERROR with httpStatus. It also warns about a real behavioral trap: a missing/invalid `sidebar` still returns 201 but silently parks the widget in Inactive widgets.

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 one-line purpose and the routing rule, then a tight bulleted recipe list that is easy to scan. It is long for a description, and a few bullets (widgets/block themes) run dense, but nearly every sentence carries actionable detail rather than restating the schema.

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?

For a 9-parameter, open-ended REST proxy with no output schema, this covers what an agent actually needs: route/method/body composition, draft-then-publish workflow, size-limiting via _fields and per_page, escalation consent, and the error envelope. Return-value documentation is unnecessary here because it is a passthrough to documented WP REST responses.

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?

Schema coverage is 100%, so the baseline is 3; the description earns above that by tying `path` to concrete route shapes and showing it must exclude /wp-json and the query string, and by pairing `query` with `_fields`/`per_page`/`context:edit` usage and `body` with full-content replacement. The as_administrator/acknowledge_full_access pairing is reinforced with a consent requirement the schema does not state, though `embed` and `dry_run` are not elaborated beyond the schema text.

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?

Opens with a specific verb+resource pair in caps ('EDIT A CLOUD FOR WORDPRESS SITE'S CONTENT') and enumerates the surface area (pages, posts, menus, categories, comments, title, anything in the REST API). It explicitly carves itself out from siblings by routing image work to wordpress_upload_media and backups to create_wordpress_backup, so an agent can distinguish it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a direct when-to-use rule ('the tool to use when the user asks to change what is on their WordPress site'), a when-not/escalation path (settings, plugins, themes, users require as_administrator plus acknowledge_full_access, and the user must be asked first), and workflow prerequisites (show the user what will change before overwriting, offer a backup before big edits). Alternative routes for widgets vs. block-theme template parts are spelled out explicitly.

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

Deploy Server

Other Tools