List ACF Field Groups
Lists all registered ACF field groups with the location rules (post types, templates, taxonomies) that determine where they appear.
| Property | Value |
|---|---|
| Ability slug | mosmcp/list-field-groups |
| Wire tool name | mosmcp__list-field-groups |
| Category | Advanced Custom Fields (mosmcp-acf) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_posts |
| Minimum default role | Contributor |
| Requires | Advanced Custom Fields |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| post_type | string | — | Filter to groups that apply to a given post type, e.g. "page" or "product". | |
| active_only | boolean | true |
If true, excludes disabled/inactive field groups. |
Output schema
| Field | Type | Required |
|---|---|---|
| groups | array | |
| count | integer |
Example
Sample prompt
Which custom field groups show up on my product pages?
Example request (json)
{
"jsonrpc": "2.0",
"id": 424,
"method": "tools/call",
"params": {
"name": "mosmcp__list-field-groups",
"arguments": {
"input": {
"post_type": "product"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 424,
"result": {
"isError": false,
"structuredContent": {
"groups": [
{
"key": "group_64f1a2b3",
"title": "Product Details",
"active": true,
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "product"
}
]
],
"field_count": 6,
"is_local": false
}
],
"count": 1
}
}
}
Edge cases / errors
- active_only defaults to true → disabled field groups are left out unless you pass active_only: false.
- post_type is passed to ACF's location matching, so only groups whose location rules apply to that post type are returned.
- Groups registered in PHP or local JSON are included and flagged is_local: true (they cannot be edited through the structural abilities).
- No groups match → empty groups array with count: 0.
| << Previous | Next >> |
|---|---|
| Get Hidden ACF Fields | List ACF Field Types in Use |
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.