Skip to main content
Glama

Create Client

create_client

Create a 3PL client (publisher/owner). Name and code are required; code must be unique within the tenant (re-using an existing code is rejected, not duplicated). Management mode is pssc_managed (default) or publisher_managed. Requires an operator (unpinned) org token on a 3PL tenant. Returns the created client, whose id is what you pin subsequent inventory/price-book/quote work to.

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

Input Schema

NameRequiredDescriptionDefault
inputYesThe client to create (name and code required).
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is created until the commit call.
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
Behavior4/5

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

Annotations only declare the write/safety profile (readOnly=false, destructive=false, idempotent=false); the description adds substance beyond them — collision behavior is a hard rejection rather than an upsert, and the auth scope is stated. It omits the mandatory two-step preview/commit gate and idempotency-key requirement, which is the single largest behavioral trait of this tool, though the schema documents it.

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?

Four tight sentences, front-loaded with what the tool creates, then requirements, then auth, then the return/pinning outcome. No filler and no repetition of schema text at length.

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?

For a nested-input mutation with an output schema, the description covers purpose, prerequisites, failure mode, and follow-on usage — enough to call it correctly. The gap is that the required preview→commit write flow is only disclosed in the schema, not flagged here where a caller would look first.

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 per-field semantics are already fully carried by the schema (managementMode values, override fields, ranges). The description repeats the name/code requirement and the two managementMode values but adds no new meaning beyond that. Baseline 3 is appropriate.

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?

Opens with a specific verb+resource and immediately disambiguates the domain term: "Create a 3PL client (publisher/owner)". That gloss distinguishes it from create_supplier/create_warehouse siblings. It does not explicitly route against update_client or delete_client, but the verb itself does most of that work.

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?

Supplies real preconditions an agent needs before calling: name and code required, code must be unique within the tenant, and an operator (unpinned) org token on a 3PL tenant is needed. It also names the downstream consequence (pin the returned id for inventory/price-book/quote work). No explicit when-not-to-use guidance against update_client.

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