Skip to main content
Glama

deleteBot

Remove a Typebot chatbot by specifying its unique bot ID using this tool on the MCP-Typebot server.

Instructions

Elimina un Typebot por su ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
botIdYes

Implementation Reference

  • The main handler function for the 'deleteBot' tool. It ensures authentication, validates the botId, and sends a DELETE request to the Typebot API to delete the specified bot.
    export async function deleteBot(args: DeleteBotArgs) {
      ensureAuth(); 
      const { botId } = args;
      if (!botId) throw new Error('deleteBot: falta botId');
    
      const response = await axios.delete(
        `https://app.typebot.io/api/v1/typebots/${botId}`
      );
      return response.data;
    }
  • TypeScript interface defining the input arguments for the deleteBot function, requiring a botId string.
    export interface DeleteBotArgs {
      botId: string;
    }
  • src/index.ts:64-68 (registration)
    Registration of the 'deleteBot' tool in the MCP server's toolsMap. Specifies the handler function, description, and Zod input schema for validation.
    ['deleteBot', {
      func: deleteBot,
      description: 'Elimina un Typebot por su ID',
      schema: z.object({ botId: z.string().min(1, "El campo 'botId' es obligatorio.") }),
    }],
  • Zod schema used for input validation of the 'deleteBot' tool during registration, ensuring botId is a non-empty string.
    schema: z.object({ botId: z.string().min(1, "El campo 'botId' es obligatorio.") }),
Install Server

Other Tools

Related Tools

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/osdeibi/MCP-typebot'

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