Skip to main content
Glama

Superprecio MCP Server

by bunkerapps
removeShoppingList.ts1.31 kB
/** * MCP Tool: Remove Shopping List * Delete a shopping list (soft delete) */ import type { SuperPrecioApiClient } from '../client/superPrecioApi.js'; export const removeShoppingListTool = { name: 'remove_shopping_list', description: `Delete a shopping list. This removes the list and all its items from the active lists. The list is soft-deleted (marked as inactive) so it can be recovered if needed.`, inputSchema: { type: 'object', properties: { listId: { type: 'number', description: 'ID of the shopping list to delete', }, }, required: ['listId'], }, }; export async function executeRemoveShoppingList( client: SuperPrecioApiClient, args: { listId: number } ) { const response = await client.deleteShoppingList(args.listId); if (!response.success) { return { content: [ { type: 'text', text: `Failed to delete shopping list: ${response.message || 'Unknown error'}`, }, ], isError: true, }; } return { content: [ { type: 'text', text: ` ✅ Shopping list deleted successfully! List ID ${args.listId} has been removed. You can: - View remaining lists with get_shopping_lists - Create a new list with create_shopping_list `, }, ], }; }

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/bunkerapps/superprecio_mcp'

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