Skip to main content
Glama

delete-routine

Remove a specific routine by its exact name from the Routine MCP server. Confirms user intent before deletion and verifies the correct routine by referencing the list of all routines.

Instructions

Delete a routine by name. Always confirm with user that they want to delete it. User may supply a name that's not exactly as how it's stored. Use the load-routines tool to get the list of all routines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesExact name of the routine to be deleted.

Implementation Reference

  • src/index.ts:106-127 (registration)
    Registration of the 'delete-routine' MCP tool, including description, input schema, and handler function.
    server.tool(
      "delete-routine",
      "Delete a routine by name. Always confirm with user that they want to delete it. User may supply a name that's not exactly as how it's stored. Use the load-routines tool to get the list of all routines.",
      {
        name: z.string().describe("Exact name of the routine to be deleted.")
      },
      async ({ name }) => {
        await deleteRoutine({
          name,
          filename:routineFilename
        })
    
        return {
          content: [
            {
              type: "text",
              text: `Successfully deleted routine ${name}. Always tell user to refresh their MCP tools.`
            }
          ]
        }
      }
    )
  • Handler function that executes the tool logic: deletes the routine using the imported deleteRoutine helper and returns a success response.
    async ({ name }) => {
      await deleteRoutine({
        name,
        filename:routineFilename
      })
    
      return {
        content: [
          {
            type: "text",
            text: `Successfully deleted routine ${name}. Always tell user to refresh their MCP tools.`
          }
        ]
      }
    }
  • Zod input schema defining the 'name' parameter for the delete-routine tool.
    {
      name: z.string().describe("Exact name of the routine to be deleted.")
    },
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/mquan/routine'

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