Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

get_warehouse

Retrieve warehouse details by ID from the ShipStation API to manage inventory locations and shipping operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
warehouseIdYesWarehouse ID to retrieve

Implementation Reference

  • The handler function that executes the get_warehouse tool, retrieving warehouse details by ID from ShipStation API and returning formatted JSON response.
    handler: async ({ warehouseId }) => { try { const warehouse = await shipStationClient.getWarehouse(warehouseId); return { content: [{ type: "text", text: JSON.stringify(warehouse, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; }
  • Zod input schema defining the required warehouseId parameter (number) for the get_warehouse tool.
    schema: { warehouseId: z.number().describe("Warehouse ID to retrieve") },
  • src/server.js:174-191 (registration)
    Registration of all tools including get_warehouse (via warehouseTools array) to the MCP server using server.tool().
    [ ...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 called by the tool handler to fetch warehouse data via API request.
    async getWarehouse(warehouseId) { return this.request('GET', `/warehouses/${warehouseId}`); }

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