Skip to main content
Glama

acf_update_post_field

Update a specific Advanced Custom Fields value on a WordPress post by site ID, post ID, and field name; set null to clear the field and detect unchanged values.

Instructions

Update a single ACF field value for a post (updated is false when the value did not change)

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>",
      "post_id": "<post_id>",
      "field": "<field>"
    },
    "name": "acf_update_post_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
fieldYesField name or key (lowercased by the endpoint)
valueNoNew value (required; null clears the field)
post_idYesPost ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.14.0
    • changedInput schema / properties / field / description
      Previous value: -"Field name"New value: +"Field name or key (lowercased by the endpoint)"
    • addedInput schema / properties / field / pattern
      Added value: +"^[a-zA-Z0-9_-]+$"
    • changedInput schema / properties / post_id / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / value / description
      Previous value: -"New value"New value: +"New value (required; null clears the field)"
  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: -[
      -  "post_id",
      -  "field"
      -]New value: +[
      +  "site",
      +  "post_id",
      +  "field"
      +]
  3. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden; it does contribute one genuine signal not present in the schema — that the response returns updated=false when the value did not change. It omits permissions/capability requirements, whether updates are reversible, and any confirmation of what the endpoint returns beyond that flag.

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?

A single front-loaded sentence with a parenthetical caveat; nothing is wasted. Minor loss for the slightly terse parenthetical, which reads as an afterthought rather than structured return-value context.

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 four-parameter mutation tool with no annotations and no output schema, the definition covers the core action and one return-value signal, and the schema handles parameter detail. It remains thin on the mutation's side effects and the full response shape, so it is not fully complete.

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 description coverage is 100%, so the schema already documents site, field, post_id, and value (including null-to-clear). The description adds no meaning beyond that, making the baseline 3 appropriate rather than a deficiency.

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 a single ACF field value for a post. The word 'single' hints at the distinction from the plural sibling acf_update_post_fields, but the description never names or contrasts that alternative explicitly.

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?

Usage is only implied — the singular 'a single ACF field' suggests this is the per-field counterpart to acf_update_post_fields, but no when-to-use, when-not-to-use, or prerequisite conditions are stated. An agent must infer the choice between the two update tools.

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