Skip to main content
Glama

Frontman for WordPress

wc_update_catalog_display

Destructive

Updates only a WooCommerce catalog display setting through its native Customizer save path. Ask the user for confirmation before calling with confirm=true. Uses the native WooCommerce Customizer setting using local WordPress authentication; no WooCommerce REST API keys are required.

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_id": "<site_id>",
      "name": "<name>",
      "value": "<value>",
      "confirm": "<confirm>"
    },
    "name": "wc_update_catalog_display"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe shop page or product category archive display setting.
valueYesEmpty string shows products directly; subcategories shows categories; both shows both.
confirmYesMust be true only after the user explicitly confirms this WooCommerce mutation.
site_idYesThe connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety bar is lower; the description adds real context beyond them — that the write goes through the native Customizer save path and requires local WordPress auth rather than REST keys. It does not spell out what specifically is at risk or whether the previous value can be recovered, which keeps it from a 5.

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?

Three short sentences, front-loaded with the scope constraint and the confirmation requirement, with no padding. Minor redundancy between 'through its native Customizer save path' and 'Uses the native WooCommerce Customizer setting' costs it a point.

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?

With four required params, full schema coverage, rich annotations, and no output schema, the description supplies what an agent needs to call this correctly: scope, auth model, and the human-confirmation gate. Return-value behavior is the only unaddressed area, and no output schema exists to lean on, though that is a minor gap for a settings setter.

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 coverage is 100% and both enums carry descriptions, so the schema already documents name, value, site_id, and confirm fully. The description reinforces the confirm=true confirmation workflow and implies name is limited to the single catalog setting, but adds no syntax or format detail beyond the schema — baseline 3.

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 ('Updates only a WooCommerce catalog display setting') and the word 'only' narrows scope to a single setting, which distinguishes it from broad siblings like wp_update_customizer_setting or wc_update_setting_option. It does not name the natural read counterpart (wc_get_catalog_display) or any alternative, so it falls short of a 5.

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?

Gives an explicit procedural condition: ask the user for confirmation before calling with confirm=true, which tells the agent how to sequence the call. It also clarifies the authentication path (local WordPress auth, no REST API keys), but it never states when to prefer this over wp_update_customizer_setting or wc_get_catalog_display for reads.

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.