Skip to main content
Glama

acf_update_field_group

Update an existing ACF field group’s settings while preserving only the fields you include; pass the complete field list because omitted fields are deleted during re-import.

Instructions

Update an existing ACF field group. Only the given group settings change. The endpoint re-imports the whole group through acf_import_field_group, which deletes stored fields whose key is not in the imported list, so pass the COMPLETE fields list (fields without a key get field_ + md5(group key + name), matching ones made by acf_create_field_group).

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": "acf_update_field_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesField group key (e.g. group_abc123)
siteYesSite id (see list_sites)
styleNoMeta box style
titleNoNew title
activeNoWhether the field group is active
fieldsNoComplete list of field definitions for the group (an empty list is ignored)
locationNoLocation rules: OR-groups of AND-ed rules, e.g. [[{param:'post_type',operator:'==',value:'page'}]]
positionNoMeta box position
menu_orderNoOrder of the field group on the edit screen
show_in_restNoExpose the fields in the WP REST API
hide_on_screenNoEdit screen elements to hide
label_placementNoLabel placement
instruction_placementNoInstruction placement

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv3.14.0
    • addedInput schema / properties / active / description
      Added value: +"Whether the field group is active"
    • changedInput schema / properties / fields / description
      Previous value: -"Updated field definitions (replaces all fields)"New value: +"Complete list of field definitions for the group (an empty list is ignored)"
    • changedInput schema / properties / fields / items / additionalProperties
      Previous value: -{}New value: +false
    • addedInput schema / properties / fields / items / properties
      Added value: +{
      +  "default_value": {
      +    "description": "Default value (default empty)",
      +    "type": "string"
      +  },
      +  "instructions": {
      +    "description": "Instructions shown to editors (default empty)",
      +    "type": "string"
      +  },
      +  "key": {
      +    "description": "Field key (default: field_ + md5(group key + name), so the same name keeps its key)",
      +    "type": "string"
      +  },
      +  "label": {
      +    "description": "Field label (default: the name)",
      +    "type": "string"
      +  },
      +  "name": {
      +    "description": "Field name (meta key; run through sanitize_title)",
      +    "type": "string"
      +  },
      +  "required": {
      +    "description": "1 = required (default 0)",
      +    "maximum": 1,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "settings": {
      +    "additionalProperties": {},
      +    "description": "Extra ACF field settings. Only these keys are kept: choices, other_choice, allow_null, multiple, placeholder, rows, new_lines, min, max, step, prepend, append, maxlength, conditional_logic, wrapper, return_format, display_format, first_day, library, min_size, max_size, mime_types, preview_size, taxonomy, field_type, save_terms, load_terms, add_term, save_other_choice, layout, sub_fields, min_rows, max_rows, button_label",
      +    "type": "object"
      +  },
      +  "type": {
      +    "description": "ACF field type: text, textarea, number, email, url, image, file, wysiwyg, select, checkbox, radio, true_false, link, post_object, relationship, taxonomy, user, date_picker, color_picker, repeater, group, ... (default text)",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / items / required
      Added value: +[
      +  "name"
      +]
    • addedInput schema / properties / hide_on_screen / description
      Added value: +"Edit screen elements to hide"
    • addedInput schema / properties / instruction_placement
      Added value: +{
      +  "description": "Instruction placement",
      +  "enum": [
      +    "label",
      +    "field"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / key / description
      Previous value: -"Field group key"New value: +"Field group key (e.g. group_abc123)"
    • addedInput schema / properties / key / pattern
      Added value: +"^[a-zA-Z0-9_-]+$"
    • addedInput schema / properties / label_placement
      Added value: +{
      +  "description": "Label placement",
      +  "enum": [
      +    "top",
      +    "left"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / location / description
      Previous value: -"Updated location rules"New value: +"Location rules: OR-groups of AND-ed rules, e.g. [[{param:'post_type',operator:'==',value:'page'}]]"
    • changedInput schema / properties / location / items / items / additionalProperties
      Previous value: -{
      -  "type": "string"
      -}New value: +false
    • addedInput schema / properties / location / items / items / properties
      Added value: +{
      +  "operator": {
      +    "description": "Comparison operator: == or != (add-ons may register more)",
      +    "type": "string"
      +  },
      +  "param": {
      +    "description": "Rule parameter (post_type, page_template, taxonomy, options_page, user_role, ...)",
      +    "type": "string"
      +  },
      +  "value": {
      +    "description": "Value to compare against (e.g. post, page, product)",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / location / items / items / required
      Added value: +[
      +  "param",
      +  "operator",
      +  "value"
      +]
    • addedInput schema / properties / menu_order
      Added value: +{
      +  "description": "Order of the field group on the edit screen",
      +  "type": "integer"
      +}
    • addedInput schema / properties / position / description
      Added value: +"Meta box position"
    • addedInput schema / properties / position / enum
      Added value: +[
      +  "normal",
      +  "acf_after_title",
      +  "side"
      +]
    • addedInput schema / properties / show_in_rest
      Added value: +{
      +  "description": "Expose the fields in the WP REST API",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / style / description
      Added value: +"Meta box style"
    • addedInput schema / properties / style / enum
      Added value: +[
      +  "default",
      +  "seamless"
      +]
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "key"
      -]New value: +[
      +  "site",
      +  "key"
      +]
  3. First observedv2.0.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it names the destructive side effect (stored fields whose key is not in the imported list are deleted), states the half-mutation semantics (only given settings change), and explains the key-derivation fallback and its match with acf_create_field_group. These are non-obvious traits that cannot be inferred from the schema.

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?

Three sentences, front-loaded with the action, then the consequence, then the required call shape; nothing is padding. The middle sentence is long and clause-heavy, which slightly reduces scannability.

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?

For a 13-parameter mutation tool with no annotations and no output schema, the description covers the one behavior that would silently cause data loss and clarifies partial-update semantics; remaining parameter detail is fully documented in the schema.

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; the description earns a bump by explaining what the fields array must contain (a complete list, not a delta) and how keys are derived when omitted. It adds no meaning for the other parameters (location, position, style), leaving those to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Update an existing ACF field group") and immediately scopes the behavior ("Only the given group settings change"), so an agent knows this is a partial in-place update rather than a create/replace. It stops short of naming siblings such as acf_create_field_group for new groups, so differentiation is implied rather than explicit.

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 concrete precondition that selects correct usage: pass the COMPLETE fields list, because the endpoint re-imports via acf_import_field_group. It does not explicitly say when to pick this over acf_create_field_group or a field-level update tool, but the completeness constraint is the guidance an agent most needs.

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