Skip to main content
Glama

Loyverse MCP by usefulapi

Create or update a customer

loyverse_upsert_customer
Destructive

Create a loyalty customer, or update one by passing its id. Loyverse does not document whether omitted fields survive an update, so on update fetch the customer first and send the full record. Loyverse: POST /customers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoExisting customer id to update. Omit to create.
cityNoCity, town or village.
nameYesThe customer's name (required).
noteNoA note about the customer.
emailNoEmail address.
regionNoProvince, state or prefecture.
addressNoStreet address.
postal_codeNoPostal / ZIP code.
country_codeNoTwo-letter ISO 3166-1 alpha-2 country code, e.g. US.
phone_numberNoPhone number.
customer_codeNoYour own customer code (e.g. a loyalty card number).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only supply destructiveHint=true; the description adds the far more useful behavioral detail that Loyverse does not document whether omitted fields survive an update, and converts that into the required workflow of fetching and re-sending the full record. That is exactly the destructive-update risk an agent needs surfaced, plus the underlying endpoint.

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?

Three short sentences with zero filler: the create/update distinction comes first, the risky behavior second, the endpoint last. Every clause carries information an agent would otherwise have to guess.

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 an 11-parameter destructive upsert with no output schema, the description covers the highest-risk gap (field loss on update) and the endpoint, which is sufficient to call it correctly. It is slightly thin on what the call returns (created vs updated customer shape) and any auth/rate-limit context, which is minor given the 100% schema coverage.

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%, so every one of the 11 parameters is already documented in the schema, including 'id' with 'Omit to create.' The description's mention of `id` therefore does not add meaning beyond the schema, and the remaining fields (address, country_code, customer_code, etc.) receive no extra semantics. Baseline 3 applies.

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?

The description names a specific resource (loyalty customer) and both verbs (create or update), with the discriminator for the update path stated explicitly ('by passing its `id`'). It also pins the operation to the concrete API surface ('Loyverse: POST /customers'), so an agent can separate it from loyverse_get_customer and loyverse_list_customers without reading any 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?

It clearly states when the update branch applies and gives an actionable prerequisite ('on update fetch the customer first and send the full record'), which is real when-to-use guidance rather than a restatement. It does not, however, name the sibling to fetch with (loyverse_get_customer) or exclude any misuse case, so it stops short of full routing.

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.