Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

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
NameRequiredDescriptionDefault
orderDataYesJSON string containing the fulfillment order data

Implementation Reference

  • 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 }; }
  • 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 } ); });
  • ShipStationClient helper method that performs the actual API POST request to create fulfillment order.
    async createFulfillmentOrder(data) { return this.request('POST', '/fulfillments/createorder', data); }
  • Re-export of fulfillmentTools from index.js, making it available for import in server.js.
    export { default as fulfillmentTools } from './fulfillment-tools.js';

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mattcoatsworth/shipstation-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server