Skip to main content
Glama

Create content

create_content

Create WordPress posts, pages, or custom post types as drafts or publish directly. Assign taxonomy terms by name, auto-creating missing ones for your site.

Instructions

Create a post, page, or any custom post type. Content is created as a DRAFT unless you explicitly pass status: "publish" — this server never publishes to a live site implicitly. Taxonomy terms can be given by name and are created if missing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoPublish date in site time, ISO 8601 (2026-01-31T09:00:00). With status "future" this schedules the post.
metaNoCustom fields, as key/value pairs. A key only writes if it is registered with show_in_rest — use set_content_meta for unregistered keys.
slugNoURL slug. Changing this on published content breaks existing links unless you add a redirect.
typeNoContent type to create.post
termsNoTaxonomy assignments keyed by taxonomy REST base, e.g. {"categories": [3], "tags": ["news"]}. Names that do not exist yet are created.
titleNoThe title, as plain text.
authorNoUser ID of the author.
formatNoPost format: standard, aside, gallery, link, image, quote, status, video, audio, chat.
parentNoParent ID, for hierarchical types such as pages.
statusNopublish | future | draft | pending | private | trash.
stickyNoPin the post to the top of the blog. Posts only.
contentNoFull content body, replacing whatever is there. For the block editor this is block markup (<!-- wp:paragraph --><p>…</p><!-- /wp:paragraph -->); classic content is plain HTML. Use `edits` instead for a small change.
excerptNoHand-written excerpt.
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
passwordNoPassword-protect the content.
templateNoPage template file, e.g. "templates/full-width.php".
menu_orderNoSort order for hierarchical types.
ping_statusNoWhether pingbacks and trackbacks are accepted.
comment_statusNoWhether comments are open on this item.
featured_mediaNoAttachment ID of the featured image. Upload it with create_media first.
Behavior4/5

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

The description discloses that the tool never publishes to a live site implicitly and creates drafts by default, which is a crucial behavioral trait beyond annotations. It also mentions taxonomy terms are created if missing, indicating a side effect. The annotations already indicate it's not read-only and not destructive, so this description adds value without contradiction.

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?

The description is a single concise paragraph that front-loads the action and then provides two key behavioral clarifications. Every sentence earns its place: purpose, draft default, and taxonomy behavior. No fluff.

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?

The tool is complex with 20 parameters and no output schema. The description provides the essential rules (draft default, explicit publish, taxonomy term creation) but does not cover what happens if a custom post type is not registered, or whether the created object's ID is returned. Given the schema covers parameter details well, this is adequate but could be more complete.

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 all 20 parameters have descriptions. The main description adds the default status of 'draft' which is not in the status parameter description, and reiterates the taxonomy term creation behavior which is already in the terms parameter description. It adds minimal but useful context, so a baseline of 3 is appropriate.

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 states the verb 'Create' and the resource 'content' (post, page, any custom post type). It clearly differentiates from siblings like update_content and delete_content by the action it performs. The additional detail about draft-by-default and taxonomy term auto-creation provides clarity on the tool's behavior.

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?

The description explains when to use the tool (to create any content type) and provides important context that content is created as a draft unless published explicitly. It does not explicitly mention alternatives like update_content for modifications or bulk_update_content, but the purpose is unambiguous. It implicitly suggests that for small changes, one should use `edits` (though that's in parameter description). This is clear usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alokemajumder/wpxmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server