Skip to main content
Glama

acf_update_post_fields

Update multiple Advanced Custom Fields values for a post in one call by passing field names or keys and values; use lowercase names because fields are sanitized.

Instructions

Update multiple ACF field values for a post (field names are run through sanitize_key, so use lowercase names or field keys)

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

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
fieldsYesField name (or key) => value pairs (non-empty)
post_idYesPost ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.14.0
    • changedInput schema / properties / fields / description
      Previous value: -"Field name => value pairs"New value: +"Field name (or key) => value pairs (non-empty)"
    • changedInput schema / properties / post_id / type
      Previous value: -"number"New value: +"integer"
  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",
      -  "fields"
      -]New value: +[
      +  "site",
      +  "post_id",
      +  "fields"
      +]
  3. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does reveal one genuinely non-obvious behavior - field names are normalized through sanitize_key - which prevents silent mismatches. However, it says nothing about what happens to unknown field names (ignored vs. error), whether values are validated against field type, whether updates merge or replace, or what permissions are required for a mutation.

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?

One sentence with the action front-loaded and the caveat in a tight parenthetical. Nothing redundant and no filler.

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

Completeness3/5

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

For a three-parameter, all-required mutation tool with no annotations and no output schema, the definition covers the happy path and the key-naming pitfall but leaves error behavior, value validation, and return shape entirely unspecified.

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, but the description adds real meaning beyond the schema: the fields object keys are sanitized, so callers should use lowercase names or field keys. That is actionable input guidance the schema does not convey.

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 ACF field values for a post, with the 'multiple' qualifier that separates it from the singular acf_update_post_field sibling. The parenthetical about sanitize_key is addition detail rather than purpose, but the core statement 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 Guidelines3/5

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

The word 'multiple' implies this is the bulk variant and the naming caveat hints at correct input form, but there is no explicit when-to-use vs. acf_update_post_field, no prerequisites (field must already exist, auth needs), and no exclusions. Usage is only inferable.

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