Skip to main content
Glama

create_post

Destructive

Create WordPress posts, pages, or custom post types with title, content, status, taxonomies, meta fields, and featured images.

Instructions

Create a post, page, or any post type. Supports title, content (HTML or blocks), excerpt, status, slug, author, date, categories/tags (by name or ID), custom taxonomies, meta fields, featured image (URL or media ID), and page template/parent.

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": {
      "title": "<title>"
    },
    "name": "create_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoY-m-d H:i:s (for scheduling use status=future).
metaNoMap of meta_key => value.
slugNo
tagsNo
titleYes
authorNo
parentNo
statusNodraft
contentNoHTML or Gutenberg block markup.
excerptNo
templateNo
post_typeNopost
categoriesNoCategory names or IDs.
taxonomiesNoMap of taxonomy => [terms].
featured_imageNoImage URL or existing media ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

B3.1/5.0
Behavior2/5

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

Annotations supply only destructiveHint=true, so the description must carry most of the behavioral burden, and it does not. It says nothing about what is returned (e.g. the new post ID), permission requirements, whether meta keys must be pre-registered, or the consequences of the destructiveHint flag on a create operation; the sentence is a capability list rather than behavioral disclosure.

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?

A single front-loaded sentence: purpose first, then the supported field inventory. The long enumeration is dense but each item maps to a real parameter, so there is little wasted text.

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 15-parameter mutation tool with nested objects (meta, taxonomies) and no output schema, the definition covers the input surface well but leaves gaps: no return value, no error/failure behavior, and no mention that only title is required while status defaults to draft. Adequate but not complete given the complexity.

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 description coverage is only 40%, and the description compensates substantially by adding semantics the schema lacks: categories/tags accepted "by name or ID", content as "HTML or blocks", featured image as "URL or media ID", plus coverage of slug, author, date, parent, template, meta and custom taxonomies. Only the absence of per-field constraints (e.g. author ID validity, meta value typing) keeps it from a 5.

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?

The description opens with a specific verb and resource ("Create a post, page, or any post type") and then enumerates the supported fields, so an agent knows exactly what the tool produces. It is implicitly distinguishable from update_post/delete_post by the verb, but it never names or contrasts those siblings explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no precondition (e.g. authentication or capability requirements), and no routing to alternatives such as update_post for existing content or manage_taxonomy for taxonomy creation. The only conditional hint in the whole definition ("for scheduling use status=future") lives in the schema, not the description.

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