Skip to main content
Glama

update-database-entry

Modify specific properties of a Notion database entry by providing the page ID and updated property values, ensuring data accuracy and consistency in your workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdYes
propertiesYes

Implementation Reference

  • Handler function that updates a Notion database entry by calling notion.pages.update with the provided pageId and properties.
    async ({ pageId, properties }) => { try { // Update the page properties (database entry) const response = await notion.pages.update({ page_id: pageId, properties: properties }); return { content: [{ type: "text", text: `Database entry updated successfully!\nID: ${response.id}` }] }; } catch (error: any) { return { content: [{ type: "text", text: `Error updating database entry: ${error.message}` }], isError: true }; } }
  • Zod schema defining the input parameters: pageId (string) and properties (record of any).
    { pageId: z.string(), properties: z.record(z.any()) },
  • src/index.ts:420-421 (registration)
    Registration of the 'update-database-entry' tool using server.tool method.
    server.tool( "update-database-entry",

Other Tools

Related Tools

Latest Blog Posts

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

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