list_webhooks
Retrieve all configured webhooks to monitor ShipBob fulfillment events like order status changes and inventory updates.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/webhook-tools.js:9-24 (handler)The handler function that executes the list_webhooks tool logic: fetches webhooks using shipbobClient and returns formatted JSON or error.handler: async () => { try { const webhooks = await shipbobClient.getWebhooks(); return { content: [{ type: "text", text: JSON.stringify(webhooks, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error listing webhooks: ${error.message}` }], isError: true }; } }
- src/tools/webhook-tools.js:6-25 (registration)The tool definition object for list_webhooks, part of the exported webhookTools array.name: "list_webhooks", description: "List all webhooks configured in your ShipBob account", schema: {}, handler: async () => { try { const webhooks = await shipbobClient.getWebhooks(); return { content: [{ type: "text", text: JSON.stringify(webhooks, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error listing webhooks: ${error.message}` }], isError: true }; } } },
- src/server.js:54-54 (registration)Registers the webhookTools array (including list_webhooks) with the MCP server using the registerTools helper function.registerTools(webhookTools);
- src/tools/webhook-tools.js:8-8 (schema)Empty schema indicating no input parameters required for the list_webhooks tool.schema: {},