Skip to main content
Glama

1ClickSiteAI

Set a page's SEO values

set_seo
Idempotent

Sets the SEO values of one page or post: the title and description that search results show, the canonical address, and whether search engines may list the page. Send post_id as get_state lists it, base_version from your latest read of the site, and only the values that change; the others stay as they are. Read the post's values with get_state scope seo first. Set noindex to true only when your user asks, because it hides the page from search results. A canonical address on another website is not written: the result lists it for your user. It returns the change set id and the resulting state_version, and rollback_change_set can undo it. A stale_state_version error means the site changed after your read: read again. No content check runs on what you write, so your user owns the wording. For any other edit of a page, use apply_change_set.

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": {
      "post_id": "<post_id>",
      "siteId": "<siteId>",
      "base_version": "<base_version>"
    },
    "name": "set_seo"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoThe SEO title that search results show.
siteIdYesSite id from list_sites or create_site.
noindexNoTrue asks search engines to leave the page out of their results; false lets them list it.
post_idYesThe id of the page or post, as get_state lists it.
canonicalNoAn absolute https address on this website, or the empty text to use WordPress's own address.
descriptionNoThe SEO description that search results show.
base_versionYesThe state_version from your latest get_state or get_schema result for this site. A stale_state_version error means the site changed since: read again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say it is a non-destructive, idempotent write; the description adds substantial behavior beyond that: partial-update semantics, the fact that an external canonical is not written but surfaced in the result, the return values (change set id and state_version), the undo path via rollback_change_set, and recovery from stale_state_version. It also discloses that no content validation runs, which is exactly the kind of caveat annotations cannot express.

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 dense block that is front-loaded with the purpose and ends with the sibling routing, with the riskiest instruction (noindex) placed prominently. A few clauses restate schema descriptions, so it is slightly longer than strictly necessary, but no sentence is filler.

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

Completeness5/5

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

With seven parameters and no output schema, the description carries the full burden and does so: it names the return values, the failure mode and its remedy, the reversal tool, and the concurrency contract via base_version. An agent has everything needed to call it correctly and to explain the outcome to a user.

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 every parameter including base_version and canonical. The description reinforces meaning rather than adding it — the partial-update rule and the noindex caution are genuinely useful, but post_id "as get_state lists it" and the stale_state_version explanation duplicate the schema text verbatim. Baseline 3 reflects that the schema carries the load.

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 ("Sets the SEO values of one page or post") and then enumerates the exact fields affected: title, description, canonical address, and indexability. It also explicitly bounds the scope by naming the sibling to use for other page edits (apply_change_set), so the agent can route without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit sequencing ("Read the post's values with get_state scope seo first"), a conditional rule for the dangerous field ("Set noindex to true only when your user asks"), and a clear alternative for out-of-scope edits ("For any other edit of a page, use apply_change_set"). The partial-update instruction ("only the values that change; the others stay as they are") tells the agent how to call it, not just when.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources