Skip to main content
Glama

Create a WordPress page

create_page

Create a new WordPress page via the REST API, specifying title and HTML content. Use to programmatically add pages to a site (requires edit_pages capability).

Instructions

Create a new page via POST /wp-json/wp/v2/pages. content is an HTML string. Requires edit_pages capability on the authenticated user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaNoOptional meta fields object to attach to the page.
titleYesThe page title.
statusNoPublication status. Defaults to "draft" if omitted.
contentYesThe page body as an HTML string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the HTTP method/endpoint and the auth capability requirement, but says nothing about side effects, whether the page is immediately live, rate limits, or failure modes for duplicate titles.

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 short sentences, front-loaded with the action and endpoint, then the format hint and the capability requirement. Every sentence carries information with no filler.

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?

For a tool with no output schema and a nested meta object, the description does not indicate what is returned (e.g., the new page ID needed for later updates) or how meta fields are handled in practice. It covers the essentials but leaves a real gap.

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 the baseline is 3. The description restates that content is an HTML string, which the schema already documents, and adds no format or syntax detail beyond that.

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 ('Create a new page') plus the backing endpoint (POST /wp-json/wp/v2/pages), which clearly separates it from the get/list/update siblings. It stops short of explicitly naming those alternatives, but the intent is unambiguous.

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

Usage Guidelines3/5

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

The prerequisite 'Requires edit_pages capability on the authenticated user' implicitly tells the agent when this tool is viable, but there is no explicit guidance on when to use create_page versus update_page or what happens if the page already exists.

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