get-webhook
Retrieve webhook details by providing the webhook ID. Access configuration and metadata for a specific webhook.
Instructions
Get webhook details by ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Webhook ID |
Implementation Reference
- src/tools/webhooks.ts:72-74 (handler)The getWebhook handler function that makes a GET request to /webhooks/get with the webhook ID.
export async function getWebhook(params: z.infer<typeof getWebhookSchema>) { return mlflowClient.get("/webhooks/get", { id: params.id }); } - src/tools/webhooks.ts:68-70 (schema)Zod schema for get-webhook input: requires a string 'id' field.
export const getWebhookSchema = z.object({ id: z.string().describe("Webhook ID"), }); - src/index.ts:257-257 (registration)Registration of the 'get-webhook' tool with the MCP server, using getWebhookSchema and the getWebhook handler wrapped with wrapToolHandler.
tool("get-webhook", "Get webhook details by ID", getWebhookSchema.shape, wrapToolHandler(getWebhook)); - src/tools/webhooks.ts:1-1 (helper)Imports used by get-webhook: zod for schema validation and mlflowClient for the API call.
import { z } from "zod/v4"; - src/index.ts:100-107 (registration)Import statement bringing getWebhookSchema and getWebhook into index.ts from webhooks.ts.
import { createWebhookSchema, createWebhook, listWebhooksSchema, listWebhooks, getWebhookSchema, getWebhook, updateWebhookSchema, updateWebhook, deleteWebhookSchema, deleteWebhook, testWebhookSchema, testWebhook, } from "./tools/webhooks.js";