Skip to main content
Glama

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

NameRequiredDescriptionDefault
webhookIdYesThe ID of the webhook to delete

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "webhookId": { "description": "The ID of the webhook to delete", "type": "string" } }, "required": [ "webhookId" ], "type": "object" }

Implementation Reference

  • 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 }; } }
  • 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);
  • 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}`); }

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/shipbob-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server