Skip to main content
Glama

Switch a WordPress site's main address

set_wordpress_primary_domain
DestructiveIdempotent

primary=true makes the site's domain its main address (WordPress rewrites its address, the kenjtec.ai address then leads there); primary=false goes back to the kenjtec.ai address. Works once the domain answers.

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": {
      "wordpress_site_id": "<wordpress_site_id>",
      "primary": "<primary>"
    },
    "name": "set_wordpress_primary_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
primaryYesTrue makes this the site's main address; the others then redirect to it.
wordpress_site_idYesThe WordPress site id from list_wordpress_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavior beyond that: WordPress rewrites its own address so the kenjtec.ai address then leads to the new domain, and the switch only takes effect once DNS resolves — mutation consequences the annotations do not convey.

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?

Two tight sentences with the primary=true case front-loaded ahead of the revert case and the prerequisite. The parenthetical is dense but every clause carries information; nothing is wasted.

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 two-parameter mutation with no output schema and annotations covering safety, the description supplies the missing pieces: what changes on the site, where traffic ends up, and the DNS prerequisite. It is slightly thin on what happens to the site if the domain stops answering later, but is otherwise complete.

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 both parameters are already documented, including the primary boolean's redirect effect. The description restates the primary semantics and adds only the kenjtec.ai fallback detail, so it does little beyond the schema baseline.

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?

The description names the resource (the site's domain) and the operation precisely, explaining both directions of the boolean: primary=true promotes the domain to the site's main address while primary=false reverts to the kenjtec.ai address. It does not explicitly differentiate itself from siblings like attach_wordpress_domain or set_domain_redirect, so an agent must infer the distinction.

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?

It gives one concrete precondition ("Works once the domain answers"), which is valuable usage context. However, it never states when to choose this over attach_wordpress_domain or the other set_domain_* tools, leaving alternative selection to inference.

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