delete_presentation
Permanently remove a presentation by providing its identifier. Use this action only when you intend to delete the deck completely.
Instructions
Delete a presentation permanently. Use this destructive action only when the caller explicitly intends to remove the deck.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| presentation_id | Yes | Presentation identifier to delete permanently. |
Implementation Reference
- src/index.js:348-367 (registration)Registration of the 'delete_presentation' tool via server.registerTool, with input schema requiring presentation_id (string).
server.registerTool( "delete_presentation", { description: "Delete a presentation permanently. Use this destructive action only when the caller explicitly intends to remove the deck.", inputSchema: { presentation_id: z .string() .min(1) .describe("Presentation identifier to delete permanently."), }, }, async (args) => { try { return await callRemoteTool("delete_presentation", args); } catch (error) { return normalizeError(error); } }, ); - src/index.js:350-358 (schema)Input schema definition for delete_presentation: presentation_id (z.string().min(1)) described as 'Presentation identifier to delete permanently.'
{ description: "Delete a presentation permanently. Use this destructive action only when the caller explicitly intends to remove the deck.", inputSchema: { presentation_id: z .string() .min(1) .describe("Presentation identifier to delete permanently."), }, - src/index.js:360-366 (handler)Handler function that calls callRemoteTool('delete_presentation', args) to forward the request to the remote MCP endpoint.
async (args) => { try { return await callRemoteTool("delete_presentation", args); } catch (error) { return normalizeError(error); } }, - src/index.js:22-43 (helper)The callRemoteTool helper function that establishes a client connection to the remote MCP endpoint and calls the specified tool by name with provided arguments.
async function callRemoteTool(name, args) { const client = new Client( { name: "alai-mcp-wrapper", version: "1.0.2" }, { capabilities: {} }, ); const transport = new StreamableHTTPClientTransport(new URL(REMOTE_MCP_URL), { requestInit: { headers: createRemoteHeaders(), }, }); try { await client.connect(transport); return await client.callTool({ name, arguments: args, }); } finally { await transport.close().catch(() => {}); await client.close().catch(() => {}); } }