Skip to main content
Glama

Add a client

client_add
Idempotent

Add a new customer to the shop's customer file. All fields are optional: name, surname, email, phone, address, company registration number, VAT number, barcode, private/public comment, blacklist status, birth date, etc. Use data_list_clients to check if the customer already exists first.

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": {
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "client_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoGPS latitude of the customer address
lngNoGPS longitude of the customer address
cityNoCity
nameNoCustomer first name
emailNoCustomer email address
phoneNoPrimary phone number
titleNoHonorific or title (e.g. Mr, Mrs, Company)
VATnumNoVAT registration number
phone2NoSecondary phone number
barcodeNoCustomer loyalty card barcode
countryNoCountry
surnameNoCustomer surname / last name
positionNoSort order / priority within the customer list
postcodeNoPostal/ZIP code
birthDateNoDate of birth (YYYY-MM-DD or timestamp)
blacklistNo1 to blacklist this customer
activityCodeNoAccounting activity code
addressline1NoStreet address line 1
addressline2NoStreet address line 2
adressCommentNoDelivery instructions or address comment
clientGroupIDNoID of the customer group/segment
commentPublicNoNote visible to the customer
commentPrivateNoInternal staff-only note
idempotencyKeyYesUnique ID for this operation, such as a UUID. After a timeout, retry with the same key and arguments. Use a new key for each distinct operation.
identificationIDNoNational ID or passport number
registrationNumberNoCompany registration number (SIRET, etc.)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already disclose that this is a non-destructive, idempotent write operation in a closed-world system. The description adds that customer fields are optional and recommends a duplicate check, but it does not explain duplicate rejection/merge behavior, the required idempotencyKey, or what the tool returns on success.

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 definition is two sentences and front-loads the core purpose. The long field list is informative but ends with 'etc.', which is slightly vague; otherwise there is little wasted wording.

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

Completeness3/5

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

For a 26-parameter create tool with rich schema coverage and annotations, the description covers purpose and duplicate checking adequately. It omits the idempotencyKey requirement and gives no indication of return values or duplicate-handling behavior, leaving some gaps for an agent to infer.

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 the schema already documents all 26 parameters in detail. The description lists many optional customer fields but adds little beyond the schema, and its phrase 'All fields are optional' could obscure the fact that idempotencyKey is required.

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?

The description states a specific verb and resource: 'Add a new customer to the shop's customer file.' The word 'new' implicitly distinguishes it from client_edit, but the description does not explicitly name or contrast with that sibling.

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 explicitly directs the agent to use data_list_clients first to check whether the customer already exists. This names an alternative and the condition for using it, though it does not explicitly say when to use client_edit instead of adding a new record.

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