Skip to main content
Glama

Fulfillbot: China Sourcing & Dropshipping

Request a shipment from your stock

create_shipment

Request a shipment from your stock. Creates a shipment like the portal's New shipment form and reserves its stock; not enough available stock returns 422 stock_short. The warehouse packs it, sets the shipping and sends a freight quote, which must be confirmed before the shipment goes out. A shipment can be cancelled until the quote is sent. Creating a shipment doesn't charge the wallet. A retry with the same idempotencyKey returns the first result instead of creating it twice. Needs the shipments:write permission.

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": {
      "kind": "<kind>",
      "countryCode": "<countryCode>",
      "lines": "<lines>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "create_shipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
kindYesWHOLESALE ships to an address, FBA to an Amazon warehouse
noteNo
linesYesProducts from your stock (productId from your stock list) with quantities; each product once
address1No
address2No
provinceNo
channelIdNoA shipping option from a shipment estimate (options[].channelId). Leave empty to let us choose; then send transportMode.
postalCodeNo
countryCodeYesTwo-letter country code, for example US
fbaShipmentIdNo
recipientNameNo
transportModeNoHow we should ship it when channelId is empty: AIR, SEA, EXPRESS, TRUCK
idempotencyKeyYesMake up a new unique value for each new action; reuse the same value only when retrying the same action.
recipientPhoneNo
fbaWarehouseCodeNoAmazon warehouse code; required for FBA

Output Schema

NameRequiredDescriptionDefault
dataYes
replayedNotrue when this is the saved result of an earlier call with the same idempotencyKey

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / channelId / description
      Previous value: -"A shipping option from the estimate_shipment tool (options[].channelId). Leave empty to let us choose; then send transportMode."New value: +"A shipping option from a shipment estimate (options[].channelId). Leave empty to let us choose; then send transportMode."
    • changedInput schema / properties / lines / description
      Previous value: -"Products from your stock (productId from the list_inventory tool) with quantities; each product once"New value: +"Products from your stock (productId from your stock list) with quantities; each product once"
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes far beyond the annotations (which only say readOnlyHint=false, destructiveHint=false, idempotentHint=false): it discloses stock reservation, the 422 stock_short failure on insufficient stock, the pack → quote → confirm → ship lifecycle, the cancel window, that no wallet charge occurs, and the permission required. The retry semantics for idempotencyKey explain how safe retries work and are consistent with idempotentHint=false, since a fresh key still creates a new shipment.

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?

Six short sentences, front-loaded with the core action and side effect before lifecycle and permission details, with essentially no filler. Slightly dense and packs several distinct concerns (errors, lifecycle, billing, idempotency, auth) without sectioning, but each sentence earns its place.

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 16-parameter mutation with a full lifecycle and an output schema present, the description covers side effects, error mode, idempotency, permissions and downstream confirmation well. The remaining gap is the parameter-level guidance for the 12 optional shipping-address and FBA fields, which the description leaves to the schema.

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

Parameters2/5

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

Schema description coverage is only 44% and the description compensates little: it never explains the WHOLESALE vs FBA address requirements, what note, city, recipientPhone, or fbaShipmentId do, or which fields the FBA path needs beyond what the schema already labels. The only real added meaning is the idempotencyKey retry rule, which the schema itself already states.

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 ("Request a shipment from your stock") and anchors it to a known UI equivalent (the portal's New shipment form), so the agent knows exactly what action is being created and what side effect (stock reservation) it carries. It is clearly distinguishable from read-oriented siblings like get_shipment or list_shipments.

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?

Embeds the surrounding workflow: the warehouse packs, sends a freight quote, and the quote must be confirmed before shipment goes out, with a cancellation window until the quote is sent, which implicitly routes the agent to confirm_shipment and cancel_shipment. It also states the required shipments:write permission and when to reuse an idempotencyKey. It stops short of explicitly contrasting with estimate_shipment or estimate_shipping_options when the agent only wants pricing.

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.