Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

list_carrier_services

Retrieve available shipping services for a specific carrier by providing its carrier code, enabling efficient management of shipping options within the ShipStation API MCP Server.

Input Schema

NameRequiredDescriptionDefault
carrierCodeYesCarrier code (e.g., 'ups', 'fedex', 'usps')

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "carrierCode": { "description": "Carrier code (e.g., 'ups', 'fedex', 'usps')", "type": "string" } }, "required": [ "carrierCode" ], "type": "object" }

Implementation Reference

  • Handler function that fetches and returns carrier services for the given carrierCode using shipStationClient, or an error message if failed.
    handler: async ({ carrierCode }) => { try { const services = await shipStationClient.getCarrierServices(carrierCode); return { content: [{ type: "text", text: JSON.stringify(services, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
  • Zod schema defining the input parameter 'carrierCode' as a string.
    schema: { carrierCode: z.string().describe("Carrier code (e.g., 'ups', 'fedex', 'usps')") },
  • src/server.js:174-191 (registration)
    Registration loop that spreads carrierTools (among others) and registers each tool with 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 } ); });

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