Skip to main content
Glama

Update SEO title and meta description

wp_update_seo
Idempotent

Saves SEO titles and meta descriptions for WordPress posts where Yoast SEO, Rank Math, or AI Site Auditor reads them, so search snippets match the content.

Instructions

Saves the SEO title and/or meta description for a post where the site's SEO plugin reads them (Yoast SEO, Rank Math, or AI Site Auditor itself). Aim for a 30–60 character title and a 70–160 character description. Needs AI Site Auditor.

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_update_seo"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPost ID
titleNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-destructive, idempotent, closed-world write semantics, and the description adds real context on top: which plugin storage is targeted, that the write is partial (title and/or description), and a dependency on AI Site Auditor being active. It stops short of stating what happens to fields that are omitted or what a failed save looks like.

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?

Three short sentences, front-loaded with the write target, followed by usage guidance and the prerequisite. The trailing "Needs AI Site Auditor." is terse and slightly cryptic given it repeats the parenthetical mention, but nothing is wasted overall.

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 3-parameter write tool with no output schema and annotations already covering safety, the description supplies purpose, storage target, length targets, and a prerequisite. The main unaddressed item is partial-update behavior for omitted title/description, plus any permission or error expectations.

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?

With only 33% schema coverage (just "id": "Post ID"), the description carries the burden for the two undocumented parameters and does so reasonably: title is the SEO title with a 30–60 character target, description is the meta description with a 70–160 character target, and "and/or" signals both are optional. It does not explicitly state that omitted values are left unchanged, which is the remaining gap.

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?

States a specific verb and resource (saves SEO title and/or meta description for a post) and pins down where the values land (the SEO plugin store: Yoast, Rank Math, or AI Site Auditor). This clearly separates it from siblings like wp_update_content or wp_update_alt_text without naming them, because the resource is unambiguous.

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?

Gives practical authoring guidance (30–60 character title, 70–160 character description) and a prerequisite ("Needs AI Site Auditor"), which implies when the tool is usable. However, it never says when to prefer this over wp_update_content for body edits or wp_get_seo for reading, so routing must be inferred from the resource name.

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