Bulk Update ACF Fields


Updates multiple field values on a single post in one call. With atomic=true, no field is written unless every field passes validation.

Property Value
Ability slug mosmcp/bulk-update-fields
Wire tool name mosmcp__bulk-update-fields
Category Advanced Custom Fields (mosmcp-acf)
Plan Free

 

Required access

Requirement Value
Capability edit_posts, edit_post (checked against the specific post)
Minimum default role Contributor
Requires Advanced Custom Fields
Annotations readOnly: false · destructive: false · idempotent: true · openWorld: true

 

Input schema

Field Type Required Default Description
post_id integer Yes — Post/page/CPT entry to update.
fields object[] Yes — List of field/value pairs to apply.
fields[].field_key string Yes —
fields[].value any Yes — New value for the field.
atomic boolean true If true, write nothing when any single field fails validation.

 

Output schema

Field Type Required
success boolean
results array

 

Example

Sample prompt
On post 42, set the subtitle to 'Limited edition' and the price label to '$29'.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 411,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__bulk-update-fields",
    "arguments": {
      "input": {
        "post_id": 42,
        "fields": [
          {
            "field_key": "subtitle",
            "value": "Limited edition"
          },
          {
            "field_key": "price_label",
            "value": "$29"
          }
        ]
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 411,
  "result": {
    "isError": false,
    "structuredContent": {
      "success": true,
      "results": [
        {
          "field_key": "subtitle",
          "saved": true,
          "errors": [],
          "value": "Limited edition"
        },
        {
          "field_key": "price_label",
          "saved": true,
          "errors": [],
          "value": "$29"
        }
      ]
    }
  }
}

 

Edge cases / errors

  • Every field is resolved and ACF-validated before anything is written; with atomic: true (default) a single unknown field or failed validation → success: false and nothing is saved.
  • atomic: false → valid fields are saved, invalid ones are reported with their errors, and success is false overall.
  • fields empty → acfa_missing_fields error.
  • Missing post → acfa_invalid_post; no edit access to the post → permission refused.

 


<< Previous Next >>
Append ACF Repeater Row Clear ACF Field Value

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.