Skip to main content
Glama

Read a page or post

wp_get_content
Read-only

Retrieves a single WordPress page or post with title, status, excerpt, content, ACF fields, and SEO metadata; use text for readable output or blocks for raw Gutenberg markup before editing.

Instructions

Reads one page or post: title, status, excerpt, content, ACF fields (when ACF exposes them to REST) and the SEO title and meta description (when AI Site Auditor is active). format "text" returns readable text; "blocks" returns the raw Gutenberg block markup, use it before editing content.

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": {
      "id": "<id>"
    },
    "name": "wp_get_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPost ID
formatNotext
max_charsNoContent is cut after this many characters
post_typeNoPost type slug or REST base: "page", "post" or a custom post type. Default "page".page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real conditional context that annotations cannot: ACF fields appear only "when ACF exposes them to REST" and SEO fields only "when AI Site Auditor is active," warning the agent that results vary by site configuration. It does not mention error behavior for a missing ID or what an empty/truncated body looks like, so it adds value but not a full behavioral picture.

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?

Dense but front-loaded: the return payload comes first, then the format guidance that affects invocation. Every clause carries information, though the parenthetical conditionals stack up and make the single sentence slightly run-on.

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?

With no output schema, the description carries the return-value burden and does so by enumerating the fields, including conditionally available ones. Combined with the schema's max_chars truncation note, an agent has enough to call it correctly; only failure modes and the default page-vs-post resolution are unaddressed.

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 75%, with id, max_chars and post_type already documented in the schema. The description's main addition is explaining both enum values of format ("text" vs "blocks" raw Gutenberg markup), which the schema leaves undocumented — a real gain, but the remaining parameters get no extra semantic depth from the prose.

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?

"Reads one page or post" gives a specific verb and a singular resource, and the description enumerates exactly what comes back (title, status, excerpt, content, ACF, SEO title/meta). The word "one" implicitly separates it from the list-style sibling wp_list_content, but no sibling is named, so an agent must infer the boundary with wp_get_seo, which also returns SEO fields.

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 format clause is genuine usage guidance: "blocks" returns raw Gutenberg markup and should be used "before editing content," which routes the agent to wp_update_content correctly. It stops short of explicit exclusions, e.g. when to prefer wp_get_seo or wp_get_audit_report instead of pulling SEO fields here.

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