list_webhooks
Retrieve a list of active webhooks registered with the ShipBob API to monitor events like order updates, inventory changes, and fulfillment statuses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools/webhook-tools.js:9-23 (handler)The handler function that executes the list_webhooks tool logic: fetches webhooks using shipbobClient.getWebhooks() 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:8-8 (schema)Input schema for the list_webhooks tool (empty, no parameters).schema: {},
- src/server.js:54-54 (registration)Registration of webhookTools array (containing list_webhooks) to the MCP server via registerTools function.registerTools(webhookTools);
- src/tools/webhook-tools.js:6-6 (registration)Tool name definition within the webhookTools array.name: "list_webhooks",