Skip to main content
Glama

Opus Growth, Ad Platforms MCP Connector

Read/Write WordPress Setting

wordpress_option
Destructive

Read, and when asked, write a single WordPress setting by name — including the theme option that holds a theme's own tracking code.

Read first with write=false. Themes and plugins keep settings like tracking snippets in these options, which is where a stray tag usually lives when wordpress_tracking reports it under "Seçenek:". Writing returns the previous value so the change can be undone.

ARRAY OPTIONS: many plugins store a whole settings tab as one array option. Reading now tells you which case you are in — exists says whether the option is in the database at all, and type says array or string, so "not set yet, plugin default applies" is no longer indistinguishable from "array we could not read". To WRITE an array option pass value_json (a real object/list), not value: writing plain text over an array corrupts it, and the connector now refuses that instead of silently breaking the site. force_type=true overrides the refusal if you really mean it. Needs Connector 0.6.1 or newer.

ONE KEY INSIDE AN ARRAY OPTION: pass key=... to change a single setting inside an array option and leave every other key untouched. This is the normal case for plugins that keep a whole settings tab in one option: Yoast's wpseo_titles holds more than 150 keys, so turning author archives into noindex means flipping noindex-author-wpseo alone. Without key you would have to send the entire array back and risk the site-wide title templates. The reply gives previous_value, new_value, how many keys the option still has, and applied read back from the database, so a change that did not stick is not reported as success. A key that does not exist is refused with the closest matching names instead of being created. Needs Connector 0.8.1 or newer. Inside an array option most settings are true/false or numbers, not text: pass them as value_json=false / value_json=3 so the type is kept. value="false" would store the text "false", which PHP reads as ON.

PROTECTED SETTINGS: a handful of options can lock the site out or change who may sign in — siteurl, home, users_can_register, default_role and friends. Writing one of those is refused unless you also pass force=true. That is the deliberate override for the real cases (moving a site to a new domain, switching to https): read the current value first, tell the owner exactly what will change, and only then repeat the call with force=true. A wrong siteurl makes the site unreachable from the browser, so never set it blind.

NAMES WITH A DOT: plugins that keep every setting under one prefix name them like litespeed.conf.cache-exc. Reading those needs Connector 0.7.7 or newer; older versions answer plugin_outdated for the dotted name only, while plain names on the same site work. If you see that, the site simply needs the connector update. Writing a dotted name has always worked, but never write one blind — read it first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNo
nameYes
forceNo
valueNo
writeNo
site_urlNo
force_typeNo
value_jsonNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added
  4. Removed
  5. Added
  6. Removed
  7. Added
  8. Removed
  9. Added
  10. Removed
  11. Added
  12. Removed
  13. Added
  14. Removed
  15. Added
  16. Removed
  17. Added
  18. Removed
  19. Added
  20. Removed
  21. Added
  22. Removed
  23. Added
  24. Removed
  25. Added
  26. Removed
  27. Added
  28. Removed
  29. Added
  30. Removed
  31. Added
  32. Removed
  33. Added
  34. Removed
  35. Added
  36. Removed
  37. Added
  38. Removed
  39. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint, openWorldHint and non-idempotent, but the description adds substantial behavior: writes return the previous value for undo, array writes are refused unless value_json/force_type is used, protected options require force, and connector version gates exist (0.6.1/0.7.7/0.8.1). It stops short of describing permission/auth requirements.

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?

Purpose is front-loaded and the section headers (ARRAY OPTIONS, ONE KEY INSIDE AN ARRAY OPTION, PROTECTED SETTINGS, NAMES WITH A DOT) make it scannable. It is long but the length tracks genuine complexity; a little repetition on the read-first rule keeps it from a 5.

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?

An output schema exists, yet the description still usefully characterizes the reply (previous_value, new_value, key count, applied read-back). Combined with array, key, force and dotted-name guidance, an agent has everything needed to call this correctly.

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 0% across 8 params, so the description must carry the load, and it does explain name, key, write, value vs value_json (including the type-preservation trap and value="false" pitfall), force, and force_type. Only site_url is left unexplained, a minor 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 — read and optionally write a single WordPress setting by name — and carves out the specific case of theme tracking-code options. This clearly separates it from siblings like wordpress_set_seo or wordpress_tracking, which manage higher-level intent.

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 operating instructions: read first with write=false, only write when asked, read before writing a dotted name, and use force=true only after reading and warning the owner. When-not conditions (protected settings, array overwrite) are spelled out with the alternative.

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.