Skip to main content
Glama

wp_create_comment

Creates a comment on a WordPress post or a block editor note, letting you set author, content, reply parent, and status to add discussions or editorial notes to a site.

Instructions

Create a comment on a post (or a block note with type=note)

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": "<site>",
      "post": "<post>",
      "content": "<content>"
    },
    "name": "wp_create_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate in the site timezone (ISO8601)
metaNoRegistered comment meta fields (show_in_rest) as key/value
postYesPost ID
siteYesSite id (see list_sites)
typeNocomment (default) or note (block editor note, WP 6.9+)
authorNoUser ID of the author (instead of author_name/author_email)
parentNoParent comment ID (for replies; 0 = top level)
statusNoInitial status (requires moderate_comments)
contentYesComment content
date_gmtNoDate in GMT (ISO8601)
author_ipNoAuthor IP address (requires moderate_comments)
author_urlNoAuthor website URL
author_nameNoAuthor display name
author_emailNoAuthor email
author_user_agentNoAuthor user agent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv3.14.0
    • addedInput schema / properties / author
      Added value: +{
      +  "description": "User ID of the author (instead of author_name/author_email)",
      +  "type": "integer"
      +}
    • changedInput schema / properties / author_email / description
      Previous value: -"Author email (if not logged in)"New value: +"Author email"
    • addedInput schema / properties / author_ip
      Added value: +{
      +  "description": "Author IP address (requires moderate_comments)",
      +  "type": "string"
      +}
    • changedInput schema / properties / author_name / description
      Previous value: -"Author name (if not logged in)"New value: +"Author display name"
    • addedInput schema / properties / author_url
      Added value: +{
      +  "description": "Author website URL",
      +  "type": "string"
      +}
    • addedInput schema / properties / author_user_agent
      Added value: +{
      +  "description": "Author user agent",
      +  "type": "string"
      +}
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Date in the site timezone (ISO8601)",
      +  "type": "string"
      +}
    • addedInput schema / properties / date_gmt
      Added value: +{
      +  "description": "Date in GMT (ISO8601)",
      +  "type": "string"
      +}
    • addedInput schema / properties / meta
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Registered comment meta fields (show_in_rest) as key/value",
      +  "type": "object"
      +}
    • removedInput schema / properties / parent / default
      Removed value: -0
    • changedInput schema / properties / parent / description
      Previous value: -"Parent comment ID (for replies)"New value: +"Parent comment ID (for replies; 0 = top level)"
    • changedInput schema / properties / parent / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / post / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "Initial status (requires moderate_comments)",
      +  "enum": [
      +    "approve",
      +    "hold",
      +    "spam",
      +    "trash"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "comment (default) or note (block editor note, WP 6.9+)",
      +  "enum": [
      +    "comment",
      +    "note"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "post",
      -  "content"
      -]New value: +[
      +  "site",
      +  "post",
      +  "content"
      +]
  3. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does not say what the call returns (e.g., the new comment ID), what the default status is, that status/author_ip require moderate_comments, or that the created comment may be held for moderation — all of which matter for a mutation.

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 with no filler. It is efficient, though its brevity is under-specification rather than deliberate economy.

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

Completeness2/5

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

For a 15-parameter write tool with no annotations and no output schema, one sentence is not enough. The agent is left without return-value expectations, default status behavior, or permission implications.

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% with 15 well-documented parameters, so the schema does the heavy lifting. The description only echoes the type=note semantics already spelled out in the schema's enum description, adding no new meaning.

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 comment) and adds the non-obvious variant that type=note produces a block editor note. An agent can distinguish it from wp_create_post or wp_update_comment, though no sibling is named 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?

The parenthetical implies when to set type=note, but there is no guidance on when to call this versus wp_update_comment for replies, no mention of prerequisites, and no when-not-to-use conditions.

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

Deploy Server

Other Tools