Skip to main content
Glama

Confita

Save a customer's details

save_customer
DestructiveIdempotent

For shop owners: change a customer's name, email or phone, or the seller's private note about them. Only what is sent changes. It never merges or deletes customers: an email or phone another customer has is refused. It saves at once and tells the customer nothing.

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": {
      "customer": "<customer>",
      "request_id": "<request_id>"
    },
    "name": "save_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoTheir name, replacing the one on file.
noteNoThe seller's private note about them, replacing the last one. An empty string clears it. Customers never see it.
emailNoTheir email, replacing the one on file.
phoneNoTheir phone, replacing the one on file.
customerYesThe customer: their id (cus_...) or name.
request_idYesUnique per call; the same id again returns the first result.

Output Schema

NameRequiredDescriptionDefault
nextNo
errorNo
choicesNo
outcomeNo
customerNo
timezoneNo
confirmationNo
orders_reachedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (which only flag destructive and idempotent), it discloses that duplicates are refused when another customer holds the email or phone, that unspecified fields are left untouched, that the write takes effect immediately, and that the customer is never notified. That is exactly the conflict/uniqueness and side-effect context annotations cannot express.

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 tight sentences, front-loaded with audience and scope, then constraints, then side effects. Every clause carries information; only minor friction is the slightly compressed 'it tells the customer nothing' phrasing.

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 an output schema present and full schema coverage, the description need not explain returns, and it covers the mutation semantics well. The main remaining gap is what happens on a refused duplicate (error shape or recovery path), which an agent handling a destructive-with-conflict tool would want.

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 each parameter already carries its own documentation, including request_id idempotency and empty-string note clearing. The description only echoes the four field names and adds nothing about how to format the customer identifier or request_id, so baseline 3 applies.

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 names a specific verb and resource plus the exact mutable fields ('change a customer's name, email or phone, or the seller's private note'), which separates it from save_shop_settings, save_listing and save_drop by subject matter. It does not explicitly name a sibling it is not, so it stops 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'For shop owners' establishes the caller prerequisite and 'Only what is sent changes' implies patch semantics, so usage is reasonably inferable. However, it never states when to reach for this versus find_customers (to locate the customer) or get_customer (to verify current values), and there are no explicit exclusion conditions.

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