madeonsol_first_touch_subscriptions_delete
Permanently delete a first-touch subscription using its UUID. Requires ULTRA access.
Instructions
Delete a first-touch subscription permanently. ULTRA only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Subscription UUID |
Implementation Reference
- src/index.ts:950-958 (registration)Registration of the tool 'madeonsol_first_touch_subscriptions_delete' via server.tool(), with schema (id: z.string()) and handler that calls restQuery('DELETE', ...) on the API endpoint /kol/first-touches/subscriptions/{id}
server.tool( "madeonsol_first_touch_subscriptions_delete", "Delete a first-touch subscription permanently. ULTRA only.", { id: z.string().describe("Subscription UUID") }, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true }, async ({ id }) => ({ content: [{ type: "text" as const, text: await restQuery("DELETE", `/kol/first-touches/subscriptions/${encodeURIComponent(id)}`) }], }) ); - src/index.ts:951-951 (schema)Input schema for the tool: requires a single parameter 'id' of type string (Subscription UUID)
"madeonsol_first_touch_subscriptions_delete", - src/index.ts:955-957 (handler)Handler function that takes { id } and sends a DELETE request to /kol/first-touches/subscriptions/{id} via the restQuery helper
async ({ id }) => ({ content: [{ type: "text" as const, text: await restQuery("DELETE", `/kol/first-touches/subscriptions/${encodeURIComponent(id)}`) }], }) - src/index.ts:451-466 (helper)The restQuery helper function used by the handler to make authenticated HTTP requests to the MadeOnSol API
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); } - dist/index.js:637-639 (handler)Compiled JS handler for the tool in dist/index.js
server.tool("madeonsol_first_touch_subscriptions_delete", "Delete a first-touch subscription permanently. ULTRA only.", { id: z.string().describe("Subscription UUID") }, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true }, async ({ id }) => ({ content: [{ type: "text", text: await restQuery("DELETE", `/kol/first-touches/subscriptions/${encodeURIComponent(id)}`) }], }));