delete_webhook
Remove a specific webhook from the ShipBob API MCP Server by providing its unique webhook ID to effectively manage webhook configurations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhookId | Yes | The ID of the webhook to delete |
Implementation Reference
- src/tools/webhook-tools.js:62-77 (handler)The handler function that executes the delete_webhook tool logic, calling the ShipBob API client to delete the webhook and handling the response.handler: async ({ webhookId }) => { try { await shipbobClient.deleteWebhook(webhookId); return { content: [{ type: "text", text: `Webhook deleted successfully` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting webhook: ${error.message}` }], isError: true }; } }
- src/tools/webhook-tools.js:59-61 (schema)Zod schema defining the input parameter webhookId for the delete_webhook tool.schema: { webhookId: z.string().describe("The ID of the webhook to delete") },
- src/server.js:54-54 (registration)Registration of the webhookTools array into the MCP server, which includes the delete_webhook tool.registerTools(webhookTools);
- src/api-client.js:127-129 (helper)Helper method in ShipBobClient that performs the actual DELETE request to the ShipBob webhooks API endpoint.async deleteWebhook(id) { return this.request('DELETE', `/webhooks/${id}`); }