Skip to main content
Glama

Deporte Total

checkout_set_customer

Read-onlyIdempotent

Save the customer's details for this order. Pass every detail in its OWN field, already separated: first_name, last_name, email, phone, line1 (street and number), line2 (floor and door), postcode, city, region, country, company and vat_id. Put only the value in each field, never the label or the sentence around it. Use text only as a last resort, when you cannot tell the details apart. It saves what is valid and returns what it understood, what is wrong and what is still missing. Never invent a value: ask for what was not said.

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": "checkout_set_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoThe city or town only. Only if the customer gave it.
noteNoA note for the order, only if the customer asked for one
textNoONLY if you cannot separate the details into the fields: what the customer wrote about themselves, exactly as they wrote it. When you pass any separate field, text is ignored.
emailNoThe email address, nothing else. Only if the customer gave it.
line1NoStreet and number only ("Calle Mayor 1", "Carrer de l'Exemple 9"), without the word "address", the floor or the postcode. Only if the customer gave it.
line2NoFloor, door or staircase only ("3º A", "2n 1a", "bajo"), if given. Only if the customer gave it.
phoneNoThe phone number, digits and an optional + prefix. Only if the customer gave it.
regionNoThe province or region, only if given. Only if the customer gave it.
vat_idNoThe tax or VAT ID exactly as given (keep a country prefix such as "ES"), without the label. Only if the customer gave it.
companyNoThe company name ONLY when a company buys and needs the invoice in its name ("Invoice to company X", "Factura a nombre de X"); then vat_id is required too. The name of an office, hotel or association where the parcel is just delivered goes in line2, not here. Send "" to remove a company saved before. Only if the customer gave it.
countryNoISO 3166-1 alpha-2 code ("ES" for Spain). Only if the customer gave it.
postcodeNoThe postcode only. Only if the customer gave it.
last_nameNoThe surname or surnames, nothing else. Only if the customer gave it.
address_idNoOne of the saved_addresses ids of checkout_status (customers with an account)
first_nameNoThe first name of the person, nothing else. Never a greeting, a yes or a label: "Yes", "Ok", "Hello", "Address" or "Name" are not names. Only if the customer gave it.
session_idNoOnly if your client does not keep the MCP session (the Mcp-Session-Id header): the session_id that an earlier answer of this server gave you. It keeps the same cart between calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior1/5

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

The description states this is a write ("Save the customer's details", "It saves what is valid"), while the annotations declare readOnlyHint=true. An agent that trusts the annotation will believe the call cannot change state, yet the tool records customer and address data on the order and can clear a previously saved company. The otherwise useful disclosure of partial-save/validation behavior does not resolve that direct conflict.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core instruction is front-loaded in the first sentence and the remaining sentences are short and purposeful (field separation, text fallback, save/return semantics, never invent). It loses a little to the enumerating of twelve parameter names that the schema already lists.

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?

With 16 optional parameters and no output schema, the description covers the important unknowns: how to split input across fields, what happens on partial validity, and that the response reports understood, invalid, and missing data. It stops short of explaining the saved-address/address_id path and the relationship to the shipping tool.

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 100%, so the baseline is 3, and the description genuinely adds a composition rule the schema does not state: pass each detail in its own field, values only with no surrounding label, and use `text` only as a fallback when details cannot be separated. It restates field names that already exist in the schema, but the separation/fallback policy is new meaning.

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?

"Save the customer's details for this order" gives a specific verb and resource and clearly separates it from payment/shipping setters by naming customer details. The gap is that the payload also carries postal address fields (line1, postcode, city, country) with no statement of how this differs from checkout_set_shipping, so an agent can see overlap but no resolution rule.

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?

There is real policy guidance for how to fill the tool ("Use text only as a last resort", "Never invent a value: ask for what was not said", "Send \"\" to remove a company saved before"). What is absent is when to call this tool relative to its siblings — no mention of checkout_set_shipping for delivery data, checkout_status saved addresses, or sequencing before checkout_place.

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