Skip to main content
Glama

Frontman for WordPress

wp_duplicate_post

Duplicates an existing post or page as a draft, copying content and Elementor/page metadata. Use this instead of wp_create_post when cloning a page.

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_id": "<site_id>",
      "source_id": "<source_id>"
    },
    "name": "wp_duplicate_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional title for the duplicated post. Defaults to "{source title} Copy".
site_idYesThe connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID.
source_idYesThe post/page ID to duplicate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, but do not say that a new draft entity is created rather than the source being modified; the description supplies that critical detail plus the fact that content and Elementor metadata are copied. It does not disclose permission requirements or whether the original remains untouched, which would have earned a 5. No contradiction with annotations.

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?

Two sentences, zero filler. The core behavior and the output state are front-loaded, with the disambiguation sentence following immediately. Every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a non-destructive clone operation with a fully documented schema and clear annotations, the description covers what is produced (a draft), what is copied, and how it differs from the create tool. The one gap is that there is no output schema and the description does not say what is returned (e.g., the new post ID), which an agent would need to chain follow-up calls.

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 coverage is 100% and all three parameters are documented in-schema, including the title default and the site_id resolution instruction. The description adds no parameter-level detail beyond noting the result is a draft, so the baseline of 3 is appropriate when the schema does the heavy lifting.

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 names a specific verb and resource ('Duplicates an existing post or page'), states the resulting state ('as a draft'), and enumerates what is carried over ('content and Elementor/page metadata'). It also explicitly contrasts with the sibling wp_create_post, so an agent can distinguish the two without opening either 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?

It names an alternative (wp_create_post) and the condition that selects this tool ('when cloning a page'), which is exactly the guidance an agent needs for the common confusion. It stops short of stating when NOT to use it or what preconditions apply (e.g., the source must already exist on the connected site), so it is strong but not exhaustive.

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.