Skip to main content
Glama

Notion MCP Server

delete_block.ts507 B
import { notionClient, NotionClient } from "../../notion/client"; import { defineTool } from "../../utils/defineTool"; type DeleteBlockInput = Parameters<NotionClient["blocks"]["delete"]>[0]; export const NOTION_DELETE_BLOCK_TOOL = defineTool((z) => ({ name: "notion_delete_block", description: "Delete a block in Notion.", inputSchema: { deleteOptions: z.custom<DeleteBlockInput>(), }, handler: async (input) => { return await notionClient.blocks.delete(input.deleteOptions); }, }));

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/orbit-logistics/notion-mcp-server'

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