create_fulfillment_order
Generate and send fulfillment order data to ShipStation API for processing and order management, streamlining e-commerce operations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderData | Yes | JSON string containing the fulfillment order data |
Implementation Reference
- src/tools/fulfillment-tools.js:35-47 (handler)MCP tool handler: parses JSON input, calls ShipStation API via client, returns result or error response.handler: async ({ orderData }) => { try { const parsedData = JSON.parse(orderData); const result = await shipStationClient.createFulfillmentOrder(parsedData); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; }
- src/tools/fulfillment-tools.js:32-34 (schema)Input schema using Zod: requires 'orderData' as a JSON string.schema: { orderData: z.string().describe("JSON string containing the fulfillment order data") },
- src/server.js:174-191 (registration)Tool registration loop in MCP server that includes fulfillmentTools (containing create_fulfillment_order) and calls server.tool for each.[ ...orderTools, ...shipmentTools, ...carrierTools, ...warehouseTools, ...productTools, ...customerTools, ...storeTools, ...webhookTools, ...fulfillmentTools ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
- src/api-client.js:208-210 (helper)ShipStationClient helper method that performs the actual API POST request to create fulfillment order.async createFulfillmentOrder(data) { return this.request('POST', '/fulfillments/createorder', data); }
- src/tools/index.js:9-9 (helper)Re-export of fulfillmentTools from index.js, making it available for import in server.js.export { default as fulfillmentTools } from './fulfillment-tools.js';