#4713·composio

[Feature]: Notion toolkit — write rows to multi-data-source databases (Notion API 2025-09-03)

Author: hyacinthusCreated Sep 30, 2026Updated Sep 30, 2026
Labelssupport

Area of Improvement

Tools / Toolkits: Notion (notion, version 20260915_00)

Feature Name

Write rows to multi-data-source Notion databases (Notion API 2025-09-03)

Describe the Feature

Since Notion API 2025-09-03, one database can hold several data sources. Reading already works (NOTION_QUERY_DATA_SOURCE takes a data_source_id), but no Notion tool can create or upsert a row in such a database:

  • NOTION_INSERT_ROW_DATABASE, NOTION_FETCH_DATABASE and NOTION_RETRIEVE_DATABASE_PROPERTY still call Notion-Version 2022-06-28, which fails with 400 multiple_data_sources_for_database (minimum_api_version: 2025-09-03).
  • NOTION_CREATE_NOTION_PAGE accepts only a page or a database as parent_id, not a data source.
  • NOTION_UPSERT_ROW_DATABASE documents data_source_id as the preferred input. Passing a valid data source id returns a per-item http_404 "Could not find database with ID: <data_source_id>". The same id works with NOTION_QUERY_DATA_SOURCE in the same session, so the id looks like it's being resolved as a database.

Use Case / Motivation

Our agent keeps a team's CRM in Notion. Their contacts database has three data sources. Adding a contact fails on every write path above, while reads of the same data source succeed. As more teams adopt Notion data sources, this shape will become more common.

Proposed Solution or API Design (Optional)

Create pages with parent: {"type": "data_source_id", "data_source_id": …} on Notion-Version 2025-09-03. Concretely:

  • honor data_source_id in NOTION_UPSERT_ROW_DATABASE;
  • accept a data_source_id parent in NOTION_INSERT_ROW_DATABASE and NOTION_CREATE_NOTION_PAGE;
  • let NOTION_FETCH_DATABASE return the database's data sources (or add a fetch-data-source tool).

For reference, Notion's hosted MCP (notion_mcp) creates rows in the same database with a data_source_id parent.

Who does this impact?

  • Developers using the SDK
  • AI Agent frameworks (LangChain, OpenAI, etc.)
  • End users of connected apps

Would you like to contribute to this feature?

  • Maybe, I can help test or review

Additional Context

To reproduce: create a Notion database, add a second data source (database … → Manage data sources → Add data source), connect it to the Composio Notion integration, then call NOTION_UPSERT_ROW_DATABASE or NOTION_INSERT_ROW_DATABASE on it.