Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

list_webhooks

Retrieve all configured webhooks from ShipStation to monitor order updates, shipment notifications, and other events automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_webhooks' tool. Fetches all webhooks using shipStationClient.getWebhooks() and returns them as formatted JSON string, or an error message if failed.
    handler: async () => { try { const webhooks = await shipStationClient.getWebhooks(); return { content: [{ type: "text", text: JSON.stringify(webhooks, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
  • Input schema for 'list_webhooks' tool, which is empty indicating no parameters are required.
    schema: {},
  • src/server.js:174-191 (registration)
    Registration of all ShipStation tools, including 'list_webhooks' from webhookTools, using the MCP server's tool() method.
    [ ...orderTools, ...shipmentTools, ...carrierTools, ...warehouseTools, ...productTools, ...customerTools, ...storeTools, ...webhookTools, ...fulfillmentTools ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
  • Local registration of the 'list_webhooks' tool within the webhookTools array that is exported and later used for server registration.
    { name: "list_webhooks", description: "List all webhooks for the account", schema: {}, handler: async () => { try { const webhooks = await shipStationClient.getWebhooks(); return { content: [{ type: "text", text: JSON.stringify(webhooks, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } } },

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