Skip to main content
Glama

Edit a client

client_edit
DestructiveIdempotent

Edit an existing customer by their ID. All fields are optional except the ID. Use data_list_clients to find the customer ID 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": {
      "id": "<id>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "client_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the customer to modify
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.7/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true, so safety is covered. The description usefully clarifies partial-update semantics ("All fields are optional except the ID"), meaning omitted fields are untouched rather than cleared, but it says nothing about the destructiveHint implication, permission needs, or whether blacklisting/field clears are reversible.

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 short sentences, zero filler, with the identity/scope statement front-loaded before the prerequisite hint. Nothing needs trimming and nothing important is buried.

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 27-parameter mutation tool with destructiveHint=true and no output schema, the description covers identity and lookup but omits permission requirements, partial-vs-full replacement confirmation beyond implication, and any error/return behavior. It is minimally viable but leaves real gaps given the tool's complexity.

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 coverage is 100% across all 27 parameters, so the schema already documents each field. The description adds only the blanket statement that all fields except ID are optional, without clarifying semantics like whether blacklist expects 1 vs 0, or how birthDate formats are accepted beyond what the schema says. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ("Edit an existing customer by their ID"), which cleanly separates it from siblings like client_add and client_delete. It does not explicitly contrast with those siblings, so it falls short of a 5.

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?

Gives a concrete prerequisite workflow: "Use data_list_clients to find the customer ID first," naming a sibling and the condition that routes to it. It provides no when-not-to-use guidance (e.g., when to use client_add instead of editing), which keeps it at 4.

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