Skip to main content
Glama

PHP Point of Sale MCP by usefulapi

Update customer

phppos_update_customer
DestructiveIdempotent

WRITE: change fields of an existing customer; only the fields you pass are sent. Overwrites the current values. Needs a Read/Write API key. The store's 'edit customer' webhook, if configured, fires. POST /customers/{person_id}.

Input Schema

NameRequiredDescriptionDefault
zipNoPostal code.
cityNoCity.
emailNoEmail address.
stateNoState or region.
countryNoCountry.
taxableNoWhether sales to this customer are taxed.
commentsNoComments.
address_1NoAddress line 1.
address_2NoAddress line 2.
last_nameNoLast name.
person_idYesCustomer person id (find it with phppos_list_customers).
first_nameNoFirst name.
company_nameNoCompany name.
phone_numberNoPhone number.
account_numberNoCustomer account number.
internal_notesNoInternal notes (not shown to the customer).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations: discloses partial-update semantics ('only the fields you pass are sent'), that passed values overwrite existing ones, the API-key requirement, the 'edit customer' webhook side effect, and the underlying HTTP verb/path. Annotations already flag destructive/idempotent; the description adds the operational consequences.

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?

Five compact clauses, front-loaded with the WRITE marker and the core semantics before auth and side-effect details. No filler sentences.

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?

Covers what matters for a 16-parameter mutation: partial-update behavior, auth, overwrite risk, and side effects, with all parameters documented in the schema. It does not say what the response contains (no output schema exists), which is the one remaining gap.

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% across all 16 parameters, and the schema itself points to phppos_list_customers for person_id, so the schema carries the parameter burden. The description only generalizes that supplied fields are sent, adding no per-field meaning beyond the schema.

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 ('change fields of an existing customer') and pins the target with the endpoint POST /customers/{person_id}. The 'WRITE:' prefix and 'existing customer' wording separate it cleanly from phppos_create_customer and phppos_get_customer without needing the schema.

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 clear conditions for use: only the supplied fields are sent, so it is a partial update, and a Read/Write API key is required. It does not name alternatives (e.g. use phppos_create_customer for new records, phppos_get_customer to inspect before editing), so the bar for a 5 is not met.

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.