Skip to main content
Glama

ELART parts

setAddress

Set guest email and shipping/billing address. Postcode is validated per country (IL=7 digits, DE/LT=5, GB/US/… national format). Wrong zip can hide DHL/Economy quotes — ask the buyer to fix it. Write tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cart_token": "<cart_token>",
      "email": "<email>",
      "first_name": "<first_name>",
      "last_name": "<last_name>",
      "street": "<street>",
      "city": "<city>",
      "postcode": "<postcode>",
      "country": "<country>"
    },
    "name": "setAddress"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity.
emailYesGuest email for the order and shipping message.
phoneNoPhone number for the carrier.
streetYesStreet and house number.
companyNoCompany name. Leave empty for a private buyer.
countryYesISO 3166-1 alpha-2 country code, uppercase, for example LT.
postcodeYesPostal code in the national format for country (validated server-side).
last_nameYesRecipient last name.
cart_tokenYesCart token from createCart. Required on every later cart call.
first_nameYesRecipient first name.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. The HTTP status stays 200.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and openWorldHint=false, so the 'Write tool' line adds little. What does add value is the disclosure that postcode validation is server-side, keyed by country, and that a bad value silently degrades downstream carrier quotes rather than failing loudly.

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?

Three short, front-loaded sentences: action, validation rule with consequence, then write semantics. The trailing 'Write tool' restates the annotations and is the only line that does not earn its place.

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 a 10-parameter mutation with an output schema and annotations, the description covers the action, the riskiest parameter behavior, and the write nature. It leaves sequencing within the checkout flow to inference, which is the main remaining gap.

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; the description exceeds it by giving concrete per-country postcode rules (IL=7 digits, DE/LT=5, GB/US national format) that the schema's generic 'national format' wording does not, and by explaining the consequence of an invalid postcode. It says nothing extra about the optional phone/company fields, which is fine since the schema documents them.

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: 'Set guest email and shipping/billing address.' This clearly separates it from siblings such as setPaymentMethod and setShippingMethod, which handle other checkout fields, so an agent can pick it without opening a schema.

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?

Gives one concrete usage cue — a wrong postcode hides DHL/Economy quotes, so the buyer must be asked to fix it — which implies this must be completed before shipping quotes are meaningful. It does not state ordering relative to createCart/setShippingMethod or when-not-to-use, and relies on the schema's cart_token note for sequencing.

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