Skip to main content
Glama

wp_set_acf

Sets ACF field values for a WordPress post or page, using ACF's update_field to correctly link field keys. Offers dry-run to preview changes before applying.

Instructions

Set a page/post's ACF field VALUES (not the field-group schema).

fields is an object of {field_name: value}; values are arbitrary JSON (string, number, bool, or a list for a repeater/gallery) and are written through ACF's own update_field so the field-key linkage is correct. Leading-underscore selectors are rejected by the site and reported under skipped (the rest still apply, and the result comes back as 'partial' rather than 'applied'). DEFAULTS TO dry_run=true (returns a preview; writes nothing). Pass dry_run=false to apply - the write is verified by reading each value back (ACF's storage normalization, e.g. a true/false stored as 1, is tolerated). Only fields on an ACF field group already registered for the post take effect. Requires the REST transport and ACF active. Prod writes require allow_prod=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsYes
dry_runNo
installYes
post_idYes
allow_prodNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.4.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations provided, the description carries the full transparency burden and does so well. It discloses that dry_run writes nothing, that apply mode writes and verifies values, that leading-underscore selectors are rejected and reported as skipped, and that prod writes require allow_prod=true.

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

Conciseness5/5

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

The description is front-loaded with the core purpose and then adds dense, useful caveats in a logical order. Each sentence earns its place, covering side effects, verification, constraints, and safety guards without unnecessary padding.

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

Completeness4/5

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

The description covers the main behavioral edge cases, prerequisites, and result statuses like 'applied' and 'partial'. It lacks explicit detail about the 'install' parameter and does not describe the full response shape, but since there is no output schema, the most important calling context is still provided.

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?

The description does a good job explaining fields, dry_run, and allow_prod, but the required 'install' parameter is never described, and post_id is only indirectly implied by 'page/post's'. Since schema coverage is 0%, the description needs to compensate more fully for all parameters.

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

Purpose5/5

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

The description clearly states a specific action ('Set a page/post's ACF field VALUES') and identifies the exact resource, while also distinguishing this from the field-group schema. It is easy to tell this tool writes ACF field values rather than reading them or editing core content.

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

Usage Guidelines3/5

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

The description explains important usage constraints such as dry_run defaults, registered-field requirements, and the prod guard, but it does not explicitly state when to choose this tool over alternatives like wp_get_acf or wp_edit_page. The intended use is implied by the name and first sentence rather than directly contrasted with sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ad02/wp-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server