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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact 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.` } ] } } )
- src/index.ts:112-126 (handler)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.` } ] } }
- src/index.ts:109-111 (schema)Zod input schema defining the 'name' parameter for the delete-routine tool.{ name: z.string().describe("Exact name of the routine to be deleted.") },