Skip to main content
Glama

Store Manager for WooCommerce

AddSynapse: draft product custom fields

plan_meta_update

AddSynapse: Prepare a DRAFT that sets or removes custom fields (post meta) of one product or a few chosen products (ids from search_products; get_product shows their custom_fields). Only the custom fields get_product lists as custom_fields (custom_fields_locked and hidden fields starting with "_" are not changed here; prices, stock and SKU have their own tools). Changes nothing by itself: the user approves the draft card; Undo puts the previous values back and removes fields the draft added. Needs Store Assistant 1.3.10 or newer. Put every edit of this request in ONE call (up to 20 products) — the user approves them together with one click and can undo them together; never one call per item.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "plan_meta_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoProduct ids.
keyNoOne field instead of fields: its key (with mode and value).
modeNo
siteNoWhich connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site.
skusNoExact product SKUs, instead of ids.
valueNo
fieldsNocustom field key => new text (null removes the field). The same values for every chosen product.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnly=false and destructive=false; the description adds a lot of behavior that the annotations do not cover: changes are staged as a draft that "changes nothing by itself," the user approves the draft card before anything is applied, Undo restores previous values and removes fields the draft added, and Store Assistant 1.3.10 or newer is required. These facts about the approval workflow and undo would otherwise be invisible to the agent.

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?

Dense but front-loaded: scope first, then constraints, then the draft/undo behavior, then batching rules. Every clause adds a constraint or a fact the agent needs, and the parentheticals add real information instead of 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?

For a 7-parameter mutation tool with nested fields, no output schema, and no required parameters, the description is robust: it covers scope, excluded fields, the draft approval model, undo, version gating, and batching. The remaining gap is that it never says what happens if neither ids nor skus is supplied, or what the draft result looks like.

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 71%, so key details like skus being an "instead of ids" alternative and key replacing fields are already documented. The description adds the meaning that is not in the schema: only keys get_product exposes as custom_fields may be used, while custom_fields_locked and "_"-prefixed hidden fields cannot, which prevents errors the schema alone would not prevent. It does not clarify what happens when neither ids nor skus is given, even though no parameters are required.

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?

States a specific verb and resource: "Prepare a DRAFT that sets or removes custom fields (post meta) of one product or a few chosen products." It goes further and draws boundaries against sibling tools by naming what is out of scope ("prices, stock and SKU have their own tools"), so an agent can pick it without opening another schema.

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

Usage Guidelines5/5

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

Gives explicit prerequisites and alternatives: ids come "from search_products; get_product shows their custom_fields," and only fields get_product lists may be changed. It also gives a firm rule about how to use the tool: put every edit from the request into ONE call, never one call per item, with the reason (the user approves and undoes them together).

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