Skip to main content
Glama

seo_import_migrate

Migrate SEO data from RankMath or Yoast into WordPress, including per-post and term meta plus redirects, or port global titles, meta, sitemap, and robots settings.

Instructions

Migrate from RankMath or Yoast. Default: per-post/term meta and redirects are migrated (WRITES immediately, dry_run is not honoured here) and { posts_migrated, terms_migrated, redirects_migrated, errors } is returned. With settings=true (RankMath only) ONLY the global titles/meta/sitemap/robots settings are ported instead, and dry_run=true reports { written, skipped, dry_run } without writing.

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>",
      "source": "<source>"
    },
    "name": "seo_import_migrate"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
sourceYesPlugin to migrate from
dry_runNoWith settings=true: compute but write nothing (default false). Ignored for the meta migration.
settingsNoPort the global settings instead of the meta (RankMath only, default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv3.14.0
    • removedInput schema / properties / data
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Migration payload (source plugin, options to migrate, ...)",
      -  "type": "object"
      -}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "With settings=true: compute but write nothing (default false). Ignored for the meta migration.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / settings
      Added value: +{
      +  "description": "Port the global settings instead of the meta (RankMath only, default false)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Plugin to migrate from",
      +  "enum": [
      +    "rankmath",
      +    "yoast"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "site",
      -  "data"
      -]New value: +[
      +  "site",
      +  "source"
      +]
  2. Addedv3.4.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the load and does the most important job: it flags that the default mode WRITES immediately and that dry_run is silently not honoured there, which is the biggest hazard. It also documents the return shapes for both modes, but omits idempotency/overwrite behaviour (does a re-run duplicate redirects or clobber existing meta?) and any permission prerequisites.

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 and front-loaded, with the destructive default behaviour in the first sentence and the return shapes attached to each mode. Slightly repetitive of the schema wording on dry_run being ignored for meta migration, but 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 destructive, mode-split migration with no annotations and no output schema, the description supplies modes, the write warning, and both response shapes. Gaps remain around preconditions (plugin must be present/active), rollback, and post-migration effects on existing meta.

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?

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining parameter interaction: dry_run only takes effect when settings=true, and settings is RankMath-only. That is meaning not derivable from the flat schema alone; only 'site' is left to the schema.

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 ('Migrate from RankMath or Yoast') and immediately scopes it to per-post/term meta plus redirects, with a second explicit mode for global settings. An agent can tell what this tool moves and from where without opening the schema.

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?

Clear conditions are given for the two modes (default vs settings=true, the latter restricted to RankMath) and for dry_run. It stops short of comparing itself to the visible sibling import tools (seo_import_csv, seo_import_settings, seo_import_redirects), so the agent must infer that this is the bulk legacy-plugin path.

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