Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

list_warehouses

Retrieve a list of warehouses to manage and organize inventory locations within the ShipStation API, enabling efficient order fulfillment and logistics operations.

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {}, "type": "object" }

Implementation Reference

  • The main handler function for the list_warehouses tool. It calls shipStationClient.getWarehouses() and returns the JSON stringified result or error message.
    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 }; } }
  • Tool definition including name, description, and empty input schema indicating no parameters are required.
    name: "list_warehouses", description: "List all warehouses", schema: {},
  • src/server.js:174-191 (registration)
    Registration of all tools, including those from warehouseTools (which contains list_warehouses), to the MCP server via server.tool().
    [ ...orderTools, ...shipmentTools, ...carrierTools, ...warehouseTools, ...productTools, ...customerTools, ...storeTools, ...webhookTools, ...fulfillmentTools ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
  • Supporting helper method in ShipStationClient that performs the actual API call to retrieve warehouses.
    async getWarehouses() { return this.request('GET', '/warehouses'); }

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