update_integration_setup
Configure webhook notifications for search completion alerts by setting the callback URL that receives updates when searches finish.
Instructions
Update integration configuration. Set the webhook URL that receives notifications when a search completes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| return_url | Yes | URL that will receive webhook notifications when a search completes |
Implementation Reference
- src/tools/integration-setup.ts:20-34 (handler)The handler implementation for the update_integration_setup MCP tool, which updates the integration configuration via a PUT request.
server.tool( "update_integration_setup", "Update integration configuration. Set the webhook URL that receives notifications when a search completes.", { return_url: z.string().url("Must be a valid URL").max(2048).describe("URL that will receive webhook notifications when a search completes"), }, async (params) => { try { const data = await apiPut("/setup", { return_url: params.return_url }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (e) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } ); - src/tools/integration-setup.ts:23-25 (schema)The Zod schema definition for the input parameters (return_url) of the update_integration_setup tool.
{ return_url: z.string().url("Must be a valid URL").max(2048).describe("URL that will receive webhook notifications when a search completes"), }, - src/tools/integration-setup.ts:20-34 (registration)The MCP server tool registration for update_integration_setup.
server.tool( "update_integration_setup", "Update integration configuration. Set the webhook URL that receives notifications when a search completes.", { return_url: z.string().url("Must be a valid URL").max(2048).describe("URL that will receive webhook notifications when a search completes"), }, async (params) => { try { const data = await apiPut("/setup", { return_url: params.return_url }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (e) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );