Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

list_carriers

Retrieve a detailed list of available carriers to facilitate shipping operations and optimize logistics management through the ShipStation API.

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 handler function that executes the list_carriers tool: fetches carriers from ShipStation API and returns formatted JSON or error message.
    handler: async () => { try { const carriers = await shipStationClient.getCarriers(); return { content: [{ type: "text", text: JSON.stringify(carriers, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
  • Empty schema indicating the tool requires no input parameters.
    schema: {},
  • Tool definition object for list_carriers, exported as part of carrierTools array.
    { name: "list_carriers", description: "List all carriers available to the account", schema: {}, handler: async () => { try { const carriers = await shipStationClient.getCarriers(); return { content: [{ type: "text", text: JSON.stringify(carriers, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } } },
  • src/server.js:184-191 (registration)
    Registration loop that adds all tools from various toolsets, including list_carriers from carrierTools, to the MCP server.
    ].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