mcp_set_option
Create or update any WordPress option value by site and key, with optional autoload. Rejects masked values to prevent overwriting stored secrets.
Instructions
Create or update an option (any option, no allow-list: be careful with siteurl, home, active_plugins etc.). A value containing "[masked]" is refused, since writing back a masked read would destroy the stored secret. The echoed value is masked like reads. Note: created is always false (cvrt-mcp-endpoints 1.14.2 checks it after 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>",
"key": "<key>"
},
"name": "mcp_set_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Option name (letters, digits, _ and -; the server lowercases it) | |
| site | Yes | Site id (see list_sites) | |
| value | No | Option value (any JSON type; arrays/objects are stored serialized). Required. | |
| autoload | No | Load on every page (default true). Only applied when the value changes or the option is new. |