Skip to main content
Glama

Create or update customer

loyverse_upsert_customer
Idempotent

Create a new customer or update an existing one by ID in Loyverse, storing only personal data the customer has provided.

Instructions

Create a customer, or update one by passing its id. This writes personal data to the merchant's Loyverse account, so only pass details the customer has given.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoOmit to create.
cityNo
nameYes
noteNo
emailNo
regionNo
addressNo
postal_codeNo
country_codeNoTwo-letter ISO country code.
phone_numberNo
customer_codeNoLoyalty card or membership code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

The description adds a valuable privacy warning about writing personal data, which goes beyond annotations. It also clarifies the create/update distinction. However, it does not disclose whether updates are partial or full replacements, which is a significant behavioral gap.

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?

Two sentences with no filler, front-loading the core purpose and including a crucial privacy caveat. Each sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 11 parameters and no output schema, the description is under-specified. It lacks details on update behavior, required field validation, and return values, and does not guide the agent on partial updates or idempotency beyond what annotations provide.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 27%, so the description must compensate for the many undocumented parameters. It only mentions 'id' and provides no additional meaning for the other 10 parameters, leaving agents to guess at semantics for fields like city, note, or region.

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 clearly states the tool creates or updates a customer, with an explicit mention of using the id for updates. It differentiates from sibling tools like get_customer or list_customers by focusing on the upsert action.

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

Usage Guidelines3/5

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

It implies usage (when you need to create or update a customer) but provides no explicit guidance on when not to use it or which alternative tools to use for read-only operations. The privacy note adds a usage constraint but doesn't address tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.