Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

hold_order_until

Delay processing of a specific order in ShipStation by specifying the order ID and a hold date using this tool. Manage order workflows efficiently.

Input Schema

NameRequiredDescriptionDefault
holdUntilDateYesDate to hold until (YYYY-MM-DD)
orderIdYesOrder ID to hold

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "holdUntilDate": { "description": "Date to hold until (YYYY-MM-DD)", "type": "string" }, "orderId": { "description": "Order ID to hold", "type": "number" } }, "required": [ "orderId", "holdUntilDate" ], "type": "object" }

Implementation Reference

  • The handler function that executes the 'hold_order_until' tool logic, invoking the ShipStation API client and formatting the response.
    handler: async ({ orderId, holdUntilDate }) => { try { const result = await shipStationClient.holdOrderUntil({ orderId, holdUntilDate }); 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 parameters for the tool: orderId (number) and holdUntilDate (string in YYYY-MM-DD format).
    schema: { orderId: z.number().describe("Order ID to hold"), holdUntilDate: z.string().describe("Date to hold until (YYYY-MM-DD)") },
  • src/server.js:184-191 (registration)
    Registration loop in the MCP server that adds the 'hold_order_until' tool (from orderTools) using server.tool().
    ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
  • ShipStationClient method that performs the actual API POST request to the '/orders/holduntil' endpoint.
    async holdOrderUntil(data) { return this.request('POST', '/orders/holduntil', data); }

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