delete_price_alert
Remove a price alert by specifying its unique identifier.
Instructions
Delete a price alert by ID. Requires IWMM_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/tools/alerts.ts:44-50 (handler)The handler for the delete_price_alert tool. Validates input with zod (requires 'id' string), then calls apiFetch to DELETE /api/v1/price-alerts/:id with authentication.
export const deleteAlertTool = { name: "delete_price_alert", description: "Delete a price alert by ID. Requires IWMM_API_KEY.", inputSchema: z.object({ id: z.string() }), handler: ({ id }: { id: string }) => apiFetch({ path: `/api/v1/price-alerts/${encodeURIComponent(id)}`, method: "DELETE", authenticated: true }), }; - src/tools/alerts.ts:47-47 (schema)Input schema for delete_price_alert: requires a single 'id' string field.
inputSchema: z.object({ id: z.string() }), - src/tools/index.ts:28-33 (registration)Import of deleteAlertTool from alerts.ts into the central tools registry.
import { listAlertsTool, createAlertTool, updateAlertTool, deleteAlertTool, } from "./alerts.js"; - src/tools/index.ts:48-82 (registration)Registration of deleteAlertTool in the tools array, making it available via toolsByName lookups.
export const tools: ToolDefinition[] = [ // Read-only (no auth) searchCardsTool, getCardTool, getCardPricesTool, getCardPriceHistoryTool, searchSetsTool, getSetTool, listSetCardsTool, getSealedProductsTool, // Inventory (auth) listInventoryTool, getInventoryQuantitiesTool, addInventoryTool, updateInventoryTool, removeInventoryTool, // Transactions (auth) listTransactionsTool, recordTransactionTool, updateTransactionTool, deleteTransactionTool, getCostBasisTool, // Portfolio (auth; most are Premium-gated) getPortfolioSummaryTool, getPortfolioHistoryTool, getCardPerformanceTool, getCashFlowTool, getRealizedGainsTool, getPortfolioBreakdownTool, refreshPortfolioTool, // Price alerts (auth) listAlertsTool, createAlertTool, updateAlertTool, deleteAlertTool, - src/tools/index.ts:90-92 (registration)toolsByName maps tool names (including 'delete_price_alert') to their definitions for MCP call routing.
export const toolsByName: Record<string, ToolDefinition> = Object.fromEntries( tools.map((t) => [t.name, t]), );