Skip to main content
Glama

Assign Items to Client

assign_items_to_client
DestructiveIdempotent

Re-tag existing items to a 3PL client (publisher/owner), so the client owns them for inventory, price books, quotes and recommendations. Select the items by skus OR itemIds (supply exactly one of the two), max 200 per call. Items already owned by the target client are reported as alreadyAssigned rather than failing, so a retried call converges. A per-item failure (e.g. the SKU already exists under the target client — item identity is unique per client, not per tenant) is reported in errors while the remaining items still apply. Use list_items to see current owners. 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": "assign_items_to_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
skusNoItem SKUs to re-tag. Supply this OR itemIds, not both. Case-insensitive.
itemIdsNoItem ids (GUIDs) to re-tag. Supply this OR skus, not both.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview (resolved items with their current owner + not-found/ambiguity reports) plus a single-use previewReceipt. Nothing is re-tagged until the commit call. NOTE: the commit re-tags the whole batch ATOMICALLY (any per-item failure rolls the entire batch back).
clientIdYesThe client id (GUID) to tag the items to.
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
errorsNo
previewNo
assignedNo
clientIdNo
notFoundNo
expiresAtNo
clientNameNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
alreadyAssignedNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Well beyond the annotations (destructiveHint=true, idempotentHint=true): it explains that already-owned items are reported as alreadyAssigned so retries converge, that identity is unique per client rather than per tenant, and that partial failures are surfaced in errors. However, its claim that 'the remaining items still apply' directly conflicts with the schema's statement that commit 're-tags the whole batch ATOMICALLY (any per-item failure rolls the entire batch back)', leaving the failure semantics ambiguous.

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?

Dense, front-loaded prose that leads with scope and ownership effect, then constraints, then failure behavior and auth. Every sentence carries information, though the atomicity sentence introduces an internal inconsistency rather than clarity.

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 destructive, two-step, idempotent write with an output schema, it covers the essentials: selection mode, batch limit, auth/tenant requirements, idempotency convergence, and error reporting. The main gap is the unresolved atomic-vs-partial application semantics, which is the one thing an agent most needs to reason about before retrying.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds constraints the schema does not state, notably the 200-item cap and the XOR requirement between skus and itemIds. It adds little on preview/previewReceipt beyond what the parameter descriptions already say, which keeps it from a 5.

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 with business meaning: 're-tag existing items to a 3PL client (publisher/owner)' and what that ownership enables (inventory, price books, quotes, recommendations). It is clearly distinguished from related siblings like list_items (read owners) and merge_items, so an agent can select it without opening a schema.

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 concrete selection rules: pick items by skus OR itemIds but 'supply exactly one of the two', cap of 200 per call, and points to list_items to inspect current owners. It also states the token/tenant prerequisite ('operator (unpinned) org token on a 3PL tenant'). It stops short of naming explicit when-not-to-use cases against mutating siblings such as merge_items.

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