checkout_set_customer
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
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | The city or town only. Only if the customer gave it. | |
| note | No | A note for the order, only if the customer asked for one | |
| text | No | ONLY 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. | |
| No | The email address, nothing else. Only if the customer gave it. | ||
| line1 | No | Street 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. | |
| line2 | No | Floor, door or staircase only ("3º A", "2n 1a", "bajo"), if given. Only if the customer gave it. | |
| phone | No | The phone number, digits and an optional + prefix. Only if the customer gave it. | |
| region | No | The province or region, only if given. Only if the customer gave it. | |
| vat_id | No | The tax or VAT ID exactly as given (keep a country prefix such as "ES"), without the label. Only if the customer gave it. | |
| company | No | The 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. | |
| country | No | ISO 3166-1 alpha-2 code ("ES" for Spain). Only if the customer gave it. | |
| postcode | No | The postcode only. Only if the customer gave it. | |
| last_name | No | The surname or surnames, nothing else. Only if the customer gave it. | |
| address_id | No | One of the saved_addresses ids of checkout_status (customers with an account) | |
| first_name | No | The 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_id | No | Only 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. |