Skip to main content
Glama

Delete Client

delete_client
Destructive

Soft-delete a 3PL client by id (reversible in the DB; the client stops appearing in listings and recommendations). 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>"
    },
    "name": "delete_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewNoStep 1 of the required two-step write: set true to validate and receive a structured cascade/impact preview plus a single-use previewReceipt. Nothing is deleted until the commit call.
clientIdYesThe client id (GUID) to soft-delete.
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
okNo
previewNo
clientIdNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds materially: the delete is a soft-delete reversible in the DB, and the concrete side effect that the client stops appearing in listings and recommendations. It stops short of surfacing the mandatory two-step preview/commit requirement, which lives only in the schema.

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 tightly packed sentences: the action and its effect first, the auth prerequisite second. No boilerplate and no redundancy with the schema.

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 parameter documentation, the description covers the essential unknowns for a destructive tool: reversibility, visibility impact, and token scope. The one notable omission at description level is that the write is a required two-step preview/commit flow, which an agent skimming only the description would miss.

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% and each of the four parameters carries its own detailed description, so the schema does the heavy lifting. The description only restates that the target is identified by id; baseline 3 applies.

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 ('Soft-delete a 3PL client') plus the lookup key ('by id'), which is unambiguous against the other delete_* siblings such as delete_tax_rate or delete_machine that operate on wholly different resources.

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?

It gives a real applicability condition ('Requires an operator (unpinned) org token on a 3PL tenant'), which tells an agent whether it can even call the tool. However, it names no alternative and gives no when-not guidance (e.g., when to prefer update_client or a deactivation path), so usage is only implied.

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