Skip to main content
Glama

seo_import_csv

Import post SEO meta from inline CSV text or a local file to bulk-update WordPress post SEO fields, returning success and error row counts.

Instructions

Import post SEO meta from CSV in the seo_export_csv format (header row, then one row per post with at least 7 columns; export first and edit that). Give the CSV inline (csv) or as a local .csv path (csv_file). It is sent as the raw text/csv request body. Returns { success, errors } row counts.

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

Input Schema

NameRequiredDescriptionDefault
csvNoCSV text including the header row
siteYesSite id (see list_sites)
csv_fileNoAbsolute path to a local .csv file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.14.0
    • addedInput schema / properties / csv
      Added value: +{
      +  "description": "CSV text including the header row",
      +  "type": "string"
      +}
    • addedInput schema / properties / csv_file
      Added value: +{
      +  "description": "Absolute path to a local .csv file",
      +  "type": "string"
      +}
    • removedInput schema / properties / data
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "CSV import payload",
      -  "type": "object"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "site",
      -  "data"
      -]New value: +[
      +  "site"
      +]
  2. Addedv3.4.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose several behavioral facts: the payload is the raw text/csv request body, the header row plus at least 7 columns are required, and the response is { success, errors } with row counts. It does not say whether existing post meta is overwritten, merged, or skipped, nor what happens on partial failure.

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?

Four sentences, front-loaded with the action, then format constraints, then input modes, then return shape. Every sentence carries useful information; the parenthetical column requirement is dense but earns its place. Mild clutter from the parenthetical nesting rather than a genuine flaw.

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?

With no annotations and no output schema, the description supplies the response shape and the payload format, which covers most of what an agent needs. The remaining gap is the mutation semantics for existing SEO meta, which matters for a bulk import but is left unstated.

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 baseline is 3. The description confirms csv carries a header row and csv_file must be a local .csv path, and implies an either/or choice, but it does not state precedence if both are supplied or add anything about the site parameter beyond the schema's pointer to list_sites.

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?

Specific verb plus resource: 'Import post SEO meta from CSV'. It names the exact interchange format (seo_export_csv format) and distinguishes itself from the other import siblings (seo_import_migrate, seo_import_redirects, seo_import_settings) by narrowing scope to post SEO meta.

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?

Gives a clear prerequisite workflow: 'export first and edit that', which ties it to the sibling seo_export_csv. It also explains the two input modes. It does not state when NOT to use it or how it differs behaviorally from the other import tools beyond the format name.

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