Skip to main content
Glama

acf_create_field_group

Create an ACF field group with custom fields, location rules, and display settings to organize WordPress edit-screen fields and control REST exposure.

Instructions

Create an ACF field group with fields (active, shown in REST, labels on top)

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>",
      "title": "<title>",
      "fields": "<fields>"
    },
    "name": "acf_create_field_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoField group key (default group_ + a UUID)
siteYesSite id (see list_sites)
styleNoMeta box style (default default)
titleYesField group title
fieldsYesField definitions (at least one)
locationNoLocation rules (default: post_type == post)
positionNoMeta box position (default normal)
hide_on_screenNoEdit screen elements to hide (permalink, the_content, excerpt, featured_image, ...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changedv3.14.0
    • changedInput schema / properties / fields / description
      Previous value: -"Array of field definitions"New value: +"Field definitions (at least one)"
    • removedInput schema / properties / fields / items / properties / default_value / default
      Removed value: -""
    • addedInput schema / properties / fields / items / properties / default_value / description
      Added value: +"Default value (default empty)"
    • removedInput schema / properties / fields / items / properties / instructions / default
      Removed value: -""
    • addedInput schema / properties / fields / items / properties / instructions / description
      Added value: +"Instructions shown to editors (default empty)"
    • changedInput schema / properties / fields / items / properties / key / description
      Previous value: -"Field key (auto-generated if omitted)"New value: +"Field key (default: field_ + md5(group key + name), so the same name keeps its key)"
    • changedInput schema / properties / fields / items / properties / label / description
      Previous value: -"Field label"New value: +"Field label (default: the name)"
    • changedInput schema / properties / fields / items / properties / name / description
      Previous value: -"Field name"New value: +"Field name (meta key; run through sanitize_title)"
    • removedInput schema / properties / fields / items / properties / required / default
      Removed value: -0
    • changedInput schema / properties / fields / items / properties / required / description
      Previous value: -"1 = required"New value: +"1 = required (default 0)"
    • addedInput schema / properties / fields / items / properties / required / maximum
      Added value: +1
    • addedInput schema / properties / fields / items / properties / required / minimum
      Added value: +0
    • changedInput schema / properties / fields / items / properties / required / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / fields / items / properties / settings / description
      Previous value: -"ACF field settings (choices, min, max, etc.)"New value: +"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"
    • removedInput schema / properties / fields / items / properties / type / default
      Removed value: -"text"
    • changedInput schema / properties / fields / items / properties / type / description
      Previous value: -"Field type"New value: +"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)"
    • addedInput schema / properties / fields / minItems
      Added value: +1
    • removedInput schema / properties / hide_on_screen / default
      Removed value: -[]
    • addedInput schema / properties / hide_on_screen / description
      Added value: +"Edit screen elements to hide (permalink, the_content, excerpt, featured_image, ...)"
    • changedInput schema / properties / key / description
      Previous value: -"Field group key (auto-generated if omitted)"New value: +"Field group key (default group_ + a UUID)"
    • changedInput schema / properties / location / description
      Previous value: -"Location rules (defaults to post_type == post)"New value: +"Location rules (default: post_type == post)"
    • 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"
      +]
    • removedInput schema / properties / position / default
      Removed value: -"normal"
    • addedInput schema / properties / position / description
      Added value: +"Meta box position (default normal)"
    • removedInput schema / properties / style / default
      Removed value: -"default"
    • addedInput schema / properties / style / description
      Added value: +"Meta box style (default default)"
  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: -[
      -  "title",
      -  "fields"
      -]New value: +[
      +  "site",
      +  "title",
      +  "fields"
      +]
  3. First observedv2.0.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose behavior not present in the schema: the created group is active, shown in REST, and uses top label placement. It does not say what happens on duplicate titles or keys, what permissions are needed, or what the tool returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely short and front-loaded with the action, which is good. But the parenthetical "(active, shown in REST, labels on top)" is underspecified — an agent cannot tell whether these are fixed defaults the tool sets or options it must supply.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex creation tool: eight parameters, a nested fields array, location rules, and a filtered settings object, with no output schema and no annotations. A single sentence with a vague parenthetical leaves the agent without needed context on return values or side effects.

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 all eight parameters including the nested field definitions, location rules, and settings allow-list are already documented in the schema. The description adds no additional semantics about required vs optional arguments, so the baseline 3 applies.

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: "Create an ACF field group with fields." That is enough to distinguish it from acf_update_field_group and acf_get_field_group by name and verb. The trailing parenthetical is cryptic but the core action is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no prerequisites (e.g. that 'site' is required and refers to list_sites), and no note about when to prefer acf_update_field_group after creation or acf_import_field_groups for bulk work. The agent must infer all routing from sibling names.

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