Skip to main content
Glama

wp_get_page

Retrieve a WordPress page by site and page ID, optionally including raw stored content markup for editing.

Instructions

Get a single page by ID (content, when requested, is the raw stored markup)

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

Input Schema

NameRequiredDescriptionDefault
idYesPage ID
siteYesSite id (see list_sites)
contentNoInclude the full content (raw block markup, safe to edit and send back)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.14.0
    • changedInput schema / properties / content / description
      Previous value: -"Include full content"New value: +"Include the full content (raw block markup, safe to edit and send back)"
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
  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: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

B3.4/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 discloses one useful trait, that requested content is raw stored markup rather than rendered output, but says nothing about permissions, behavior for invalid or trashed IDs, or whether the call is purely read-only — significant gaps for a tool with zero annotation coverage.

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?

A single front-loaded sentence with a clarifying parenthetical and no wasted words. The key action and resource come first, and the qualifier is scoped precisely to the content parameter.

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?

For a simple three-parameter read tool with fully documented schema and no output schema, this is close to sufficient: the agent knows it fetches one page by ID and what the content flag gives. A brief note that the site parameter refers to an existing site listing, or what happens on a missing ID, would round it out.

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%, so the schema already documents site, id, and the content flag, including that content is 'raw block markup, safe to edit and send back'. The description's parenthetical largely restates the schema's content description and adds no new semantics for site or id, so the baseline of 3 is appropriate.

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: 'Get a single page by ID'. It is clearly a single-item read, distinct from list or mutation siblings implied by names like wp_create_page/wp_update_page. It does not, however, differentiate itself from the similarly named legal_get_page or explain how a 'page' differs from a 'post' (wp_get_post).

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?

Usage is only implied: you fetch by ID when you already have the ID. The parenthetical hints that content should be requested only when the raw markup is needed, which is a mild when-to-use cue, but there are no explicit exclusions, prerequisites, or named alternatives for retrieving content another way.

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