Skip to main content
Glama

Update Client

update_client
DestructiveIdempotent

Update a 3PL client by id. Every field is preserve-on-omit — omitting a field keeps the client's current value (it is NOT cleared). Changing code re-checks uniqueness. Requires an operator (unpinned) org token on a 3PL tenant.

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": {
      "clientId": "<clientId>",
      "input": "<input>"
    },
    "name": "update_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesFields to change; omitted fields keep their current value.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is changed until the commit call.
clientIdYesThe client id (GUID) to update.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
idNo
codeNo
nameNo
previewNo
isActiveNo
expiresAtNo
isEntitledNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
managementModeNo
previewReceiptNo
idempotentReplayNo
externalFeedSourceNo
orderHorizonMonthsNo
optionMethodologyOverrideNo
idealOrderCadenceDaysOverrideNo
annualHoldingCostRatePctOverrideNo
externalFeedExpectedCadenceHoursNo
externalFeedStalenessThresholdHoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (destructive, idempotent, non-read-only), the description discloses the critical preserve-on-omit contract, that omitting is NOT clearing, that a code change re-triggers uniqueness checking, and the exact auth requirement (operator unpinned org token on a 3PL tenant). It also clarifies that nothing mutates until the commit call, which materially softens the destructive annotation.

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 lead with the operation, then the omit semantics, then the auth precondition; nothing is decorative. Density is high, though the repeated preserve-on-omit emphasis slightly overlaps what the schema says.

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

Completeness5/5

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

For a destructive, nested-object mutation with an output schema available, the description covers the missing pieces an agent needs: omit behavior, uniqueness side effect, auth scope, and the mandatory two-step write flow. Return values need not be explained because an output schema exists.

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% and every nested field already carries an "omit to keep" note, so the description mostly restates that contract with added emphasis rather than adding new meaning. The uniqueness note on `code` is a genuine addition, but the two-step preview/receipt/idempotency parameters are documented more fully in the schema than in the description.

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?

"Update a 3PL client by id" gives a specific verb, resource, and key, which cleanly separates it from create_client and delete_client by verb alone. It does not explicitly name a sibling or state what distinguishes this from other update_* tools, 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?

The description implicitly tells the agent this is the tool for modifying an existing client, and it explains the required preview-then-commit sequence, but it never states when to prefer an alternative (e.g., create vs. update) or any exclusions. Usage context is present but procedural rather than comparative.

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