Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

create_order

Submit order data to the ShipStation API via a structured JSON input to create and manage orders efficiently within the ShipStation system.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderDataYesJSON string containing the order data

Implementation Reference

  • The handler function for the create_order tool. Parses the JSON orderData and calls shipStationClient.createOrder, returning the result as formatted JSON or an error message.
    handler: async ({ orderData }) => { try { const parsedData = JSON.parse(orderData); const result = await shipStationClient.createOrder(parsedData); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
  • Zod schema defining the input: a JSON string for orderData.
    schema: { orderData: z.string().describe("JSON string containing the order data") },
  • src/server.js:173-191 (registration)
    Registration of all tools, including create_order from orderTools, using the MCP server's tool() method.
    // Register all tools [ ...orderTools, ...shipmentTools, ...carrierTools, ...warehouseTools, ...productTools, ...customerTools, ...storeTools, ...webhookTools, ...fulfillmentTools ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
  • Helper method in ShipStationClient that performs the actual API call to create an order via POST /orders/createorder.
    async createOrder(orderData) { return this.request('POST', '/orders/createorder', orderData); }
  • Full tool definition including name, description, and schema for create_order.
    name: "create_order", description: "Create a new order in ShipStation",

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