[Feature]: Notion toolkit — write rows to multi-data-source databases (Notion API 2025-09-03)
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_DATABASEandNOTION_RETRIEVE_DATABASE_PROPERTYstill call Notion-Version2022-06-28, which fails with400 multiple_data_sources_for_database(minimum_api_version: 2025-09-03).NOTION_CREATE_NOTION_PAGEaccepts only a page or a database asparent_id, not a data source.NOTION_UPSERT_ROW_DATABASEdocumentsdata_source_idas the preferred input. Passing a valid data source id returns a per-itemhttp_404 "Could not find database with ID: <data_source_id>". The same id works withNOTION_QUERY_DATA_SOURCEin 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_idinNOTION_UPSERT_ROW_DATABASE; - accept a
data_source_idparent inNOTION_INSERT_ROW_DATABASEandNOTION_CREATE_NOTION_PAGE; - let
NOTION_FETCH_DATABASEreturn 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.
Source: ComposioHQ/composio