Skip to main content
Glama

woo_update_customer

Update selected WooCommerce customer fields, including billing and shipping address details, while leaving unspecified data unchanged.

Instructions

Update a customer; only the given fields (and address keys) 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>",
      "id": "<id>"
    },
    "name": "woo_update_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCustomer ID
siteYesSite id (see list_sites)
emailNoCustomer email
billingNoBilling address; only the given keys are set
shippingNoShipping address; only the given keys are set
last_nameNoLast name
first_nameNoFirst name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv3.14.0
    • changedInput schema / properties / billing / additionalProperties
      Previous value: -{
      -  "type": "string"
      -}New value: +false
    • addedInput schema / properties / billing / description
      Added value: +"Billing address; only the given keys are set"
    • addedInput schema / properties / billing / properties
      Added value: +{
      +  "address_1": {
      +    "type": "string"
      +  },
      +  "address_2": {
      +    "type": "string"
      +  },
      +  "city": {
      +    "type": "string"
      +  },
      +  "company": {
      +    "type": "string"
      +  },
      +  "country": {
      +    "description": "ISO 3166-1 alpha-2 country code, e.g. DE",
      +    "type": "string"
      +  },
      +  "email": {
      +    "type": "string"
      +  },
      +  "first_name": {
      +    "type": "string"
      +  },
      +  "last_name": {
      +    "type": "string"
      +  },
      +  "phone": {
      +    "type": "string"
      +  },
      +  "postcode": {
      +    "type": "string"
      +  },
      +  "state": {
      +    "description": "State/county code, e.g. BY",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / email / description
      Added value: +"Customer email"
    • addedInput schema / properties / first_name / description
      Added value: +"First name"
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / last_name / description
      Added value: +"Last name"
    • changedInput schema / properties / shipping / additionalProperties
      Previous value: -{
      -  "type": "string"
      -}New value: +false
    • addedInput schema / properties / shipping / description
      Added value: +"Shipping address; only the given keys are set"
    • addedInput schema / properties / shipping / properties
      Added value: +{
      +  "address_1": {
      +    "$ref": "#/properties/billing/properties/address_1"
      +  },
      +  "address_2": {
      +    "$ref": "#/properties/billing/properties/address_2"
      +  },
      +  "city": {
      +    "$ref": "#/properties/billing/properties/city"
      +  },
      +  "company": {
      +    "$ref": "#/properties/billing/properties/company"
      +  },
      +  "country": {
      +    "$ref": "#/properties/billing/properties/country"
      +  },
      +  "first_name": {
      +    "$ref": "#/properties/billing/properties/first_name"
      +  },
      +  "last_name": {
      +    "$ref": "#/properties/billing/properties/last_name"
      +  },
      +  "phone": {
      +    "$ref": "#/properties/billing/properties/phone"
      +  },
      +  "postcode": {
      +    "$ref": "#/properties/billing/properties/postcode"
      +  },
      +  "state": {
      +    "$ref": "#/properties/billing/properties/state"
      +  }
      +}
  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: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden. It does disclose the most important non-obvious trait — that this is a partial merge, not a replace — but says nothing about required permissions, behavior when the customer id does not exist, validation failures on email, or what the response contains.

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?

A single short clause with the mutation semantics front-loaded and no filler. Every word earns its place.

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 7-parameter mutation tool with nested address objects, no annotations, and no output schema, the description covers only the merge behavior. Missing are permission requirements, error/failure semantics, and any indication of the return value, which the absence of an output schema leaves entirely undocumented.

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% and the nested billing/shipping objects already document that "only the given keys are set," so the description's parenthetical about address keys largely restates the schema. Baseline 3 is appropriate since the schema does the heavy lifting and the description adds no format, constraint, or example details.

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 customer") and adds the partial-update qualifier, so an agent can tell it apart from woo_create_customer and woo_get_customer by name alone. It does not explicitly name those siblings, which keeps it from 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 Guidelines2/5

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

There is no statement of when to reach for this tool versus woo_create_customer, woo_get_customer, or the bulk/helper update siblings. The only usage-relevant signal is the implied PATCH semantics ("only the given fields change"), which an agent must infer rather than be told.

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