Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

unsubscribe_from_webhook

Remove a webhook subscription by specifying its ID to stop receiving notifications from the ShipStation API MCP Server.

Input Schema

NameRequiredDescriptionDefault
webhookIdYesWebhook ID to unsubscribe from

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "webhookId": { "description": "Webhook ID to unsubscribe from", "type": "number" } }, "required": [ "webhookId" ], "type": "object" }

Implementation Reference

  • The MCP tool handler function for 'unsubscribe_from_webhook'. It takes a webhookId, calls shipStationClient.unsubscribeFromWebhook(webhookId), and returns the JSON-stringified 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 }; } }
  • Input schema validation using Zod for the required 'webhookId' parameter (number).
    schema: { webhookId: z.number().describe("Webhook ID to unsubscribe from") },
  • The tool registration object defining name, description, schema, and handler for 'unsubscribe_from_webhook', part of the webhookTools array exported for MCP server registration.
    { 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 API unsubscribe by sending a DELETE request to `/webhooks/${webhookId}`.
    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