Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

unsubscribe_from_webhook

Remove a webhook subscription in ShipStation to stop receiving automated notifications for specific events.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
webhookIdYesWebhook ID to unsubscribe from

Implementation Reference

  • The MCP tool handler for 'unsubscribe_from_webhook'. It calls shipStationClient.unsubscribeFromWebhook and returns the JSON result or error message.
    handler: async ({ webhookId }) => {
      try {
        const result = await shipStationClient.unsubscribeFromWebhook(webhookId);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
        };
      } catch (error) {
        return {
          content: [{ type: "text", text: error.message }],
          isError: true
        };
      }
    }
  • Zod schema defining the input parameter 'webhookId' as a number.
    schema: {
      webhookId: z.number().describe("Webhook ID to unsubscribe from")
    },
  • The tool registration object including name, description, schema, and handler reference within the webhookTools array.
    {
      name: "unsubscribe_from_webhook",
      description: "Unsubscribe from a webhook",
      schema: {
        webhookId: z.number().describe("Webhook ID to unsubscribe from")
      },
      handler: async ({ webhookId }) => {
        try {
          const result = await shipStationClient.unsubscribeFromWebhook(webhookId);
          return {
            content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
          };
        } catch (error) {
          return {
            content: [{ type: "text", text: error.message }],
            isError: true
          };
        }
      }
    }
  • ShipStationClient helper method that performs the actual DELETE API request to unsubscribe from the specified webhook.
    async unsubscribeFromWebhook(webhookId) {
      return this.request('DELETE', `/webhooks/${webhookId}`);
    }

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