Skip to main content
Glama

Duplicate a post or page

wp_duplicate_post

Copy an existing post or page into a new draft, as a starting point for a new page; the original stays unchanged and each call creates another copy. The draft gets the title with " (Copy)" appended, the content, excerpt, parent, menu order and the terms of taxonomies the account may assign (of those, the terms it may assign one by one, assign_term), and, for an account that may edit the original, its custom fields, featured image, page template and page builder layout, so a page built with Elementor, Beaver Builder, SiteOrigin or another builder that stores its layout in post meta stays a builder page. Page builder data holds markup and is copied only with the unfiltered_html capability; a builder's keys, its page template included, are copied together or not at all; Elementor element ids are renewed. Never copied: credential-like keys, the original's editing state (edit lock, last editor, former slugs, trash data), caches the builder rebuilds, protected keys of other plugins, and a revision's meta. Media files cannot be duplicated, and a password-protected post only by an account that may edit it. Returns {duplicated: true, new_id}, the copied and skipped keys (with reasons) and the original's builder. Needs the right to read the original and to create entries of its type. Forwarded by AlphaBridge Connect to the one site this connection reaches.

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": "wp_duplicate_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the post or page to copy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"Id of the post or page to copy."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false; the description earns those hints with substance — it explains exactly what is and is not copied, that the original is untouched (non-destructive), that repeats create further copies (non-idempotent), and that page-builder markup requires unfiltered_html and is copied atomically. It also documents exceptions (media, password-protected posts) and the return payload, which annotations cannot express.

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 action and the guarantee that the original is unchanged, which is the right priority. The remainder is dense — a long multi-clause sentence with nested parentheticals and an awkward inline "assign_term" reference — but nearly every clause carries distinct behavioral information, so little is wasted.

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?

With no output schema, the description supplies the return shape ({duplicated, new_id}, copied/skipped keys with reasons, builder info). Combined with capability requirements, builder specifics and the media/password exceptions, an agent has everything needed to call this correctly and interpret the result.

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% and already defines the single id parameter, so the description needn't restate format. It still adds constraint meaning beyond the schema: the id must be readable by the account, may be a post, page or revision (with revision meta excluded), and its type must be creatable.

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 ("Copy an existing post or page into a new draft") and immediately distinguishes itself from the create/update siblings by stating "the original stays unchanged and each call creates another copy." An agent can tell this apart from wp_create_post and wp_update_post without opening any schema.

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 a clear use case ("as a starting point for a new page") plus prerequisites ("Needs the right to read the original and to create entries of its type"). It doesn't explicitly name the alternative tools or state when not to use it, but the context for selecting it is unambiguous.

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