Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

list_warehouses

Retrieve warehouse information from ShipStation to manage inventory locations and fulfillment operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_warehouses' tool. It calls shipStationClient.getWarehouses() to fetch all warehouses, returns them as formatted JSON text, or an error message if failed.
    handler: async () => { try { const warehouses = await shipStationClient.getWarehouses(); return { content: [{ type: "text", text: JSON.stringify(warehouses, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
  • The schema definition for the 'list_warehouses' tool, which is empty indicating no input parameters are required.
    schema: {},
  • The complete tool object definition for 'list_warehouses' within the warehouseTools array, which is later registered.
    { name: "list_warehouses", description: "List all warehouses", schema: {}, handler: async () => { try { const warehouses = await shipStationClient.getWarehouses(); return { content: [{ type: "text", text: JSON.stringify(warehouses, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } } },
  • src/server.js:173-191 (registration)
    Registration code that spreads the warehouseTools array (containing list_warehouses) and registers each tool with the MCP server using server.tool().
    // 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 } ); });
  • src/tools/index.js:4-4 (registration)
    Re-export of the warehouseTools array from warehouse-tools.js to make it available for import in server.js.
    export { default as warehouseTools } from './warehouse-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