Skip to main content
Glama

wp_set_acf

Set Advanced Custom Fields (ACF) values on a page/post — populate ACF-driven templates. Pass fields as a JSON object of {field_name: value}, e.g. {"hero_title":"Welcome","price":"99"}. Field names must be the ACF field NAME (lowercase_with_underscores). Requires writes enabled, the plugin transport, ACF active, and Xyle Connector v0.2.3+.

Input Schema

NameRequiredDescriptionDefault
fieldsYesJSON object of {field_name: value}, e.g. {"hero_title":"Welcome"}
post_idYesThe page/post ID
site_idYesThe WordPress site ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover the safety profile, but the description adds important operational prerequisites and the required ACF field naming convention. It does not explain overwrite/merge behavior, but it meaningfully extends the structured metadata.

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 purpose, then fields format, then naming constraints, then prerequisites. Every sentence adds actionable information with no filler.

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?

For a mutation tool with rich annotations and full schema coverage, the description supplies prerequisites and field-format guidance. It omits whether unspecified ACF fields are left untouched or how existing values are handled, but it is otherwise complete enough to call correctly.

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 adds useful meaning by requiring ACF field NAME format (lowercase_with_underscores) and giving a concrete JSON example, which clarifies how the fields parameter must be formed.

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 states a specific verb and resource: set ACF values on a page/post. It also explains the intended outcome, populating ACF-driven templates, making it clearly distinguishable from getter siblings like wp_get_acf.

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?

The description gives clear context and prerequisites: writes enabled, plugin transport, ACF active, and Xyle Connector v0.2.3+. It does not explicitly name when to use this over alternatives like wp_update_page or wp_patch_page, so it falls short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources