Skip to main content
Glama

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
NameRequiredDescriptionDefault
return_urlYesURL that will receive webhook notifications when a search completes

Implementation Reference

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

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/rolliinc/rolli-mcp'

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