madeonsol_coordination_alerts_delete
Permanently delete a coordination alert rule using its UUID. Keep your alert system organized by removing obsolete rules.
Instructions
Delete a coordination alert rule permanently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Rule UUID |
Implementation Reference
- src/index.ts:844-852 (handler)Handler for the madeonsol_coordination_alerts_delete tool. Calls restQuery with DELETE method to permanently remove a coordination alert rule by UUID, hitting endpoint /kol/coordination/alerts/{id}.
server.tool( "madeonsol_coordination_alerts_delete", "Delete a coordination alert rule permanently.", { id: z.string().describe("Rule UUID") }, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true }, async ({ id }) => ({ content: [{ type: "text" as const, text: await restQuery("DELETE", `/kol/coordination/alerts/${encodeURIComponent(id)}`) }], }) ); - src/index.ts:847-848 (schema)Schema: single required parameter 'id' (string UUID) identifying the coordination alert rule to delete.
{ id: z.string().describe("Rule UUID") }, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true }, - src/index.ts:844-852 (registration)Tool registered via server.tool() with name 'madeonsol_coordination_alerts_delete' inside the Webhook & Streaming tools section, guarded by hasRestAuth (requires MADEONSOL_API_KEY).
server.tool( "madeonsol_coordination_alerts_delete", "Delete a coordination alert rule permanently.", { id: z.string().describe("Rule UUID") }, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true }, async ({ id }) => ({ content: [{ type: "text" as const, text: await restQuery("DELETE", `/kol/coordination/alerts/${encodeURIComponent(id)}`) }], }) ); - src/index.ts:451-466 (helper)Helper function restQuery used by the tool handler to make authenticated REST API calls to the MadeOnSol backend.
async function restQuery(method: string, path: string, body?: unknown): Promise<string> { const headers: Record<string, string> = { "Content-Type": "application/json", ...apiKeyHeaders(), }; const res = await fetch(`${BASE_URL}/api/v1${path}`, { method, headers, ...(body ? { body: JSON.stringify(body) } : {}), }); if (!res.ok) { const text = await res.text().catch(() => ""); return `Error ${res.status}: ${text}`; } return JSON.stringify(await res.json(), null, 2); }