query_notion_database
Read a Notion database read-only
Description
Read the ROWS of a Notion database the user shared with Hermoso — e.g. the team's content calendar: each row's title, id, link and every property as a plain value (status, date, channels, caption, links), plus the database's columns with their types and options. Filter with match {"Status": "Scheduled"} (typed from the database's own columns) or a raw Notion filter object; sort with sortBy (a column, or created_time / last_edited_time) and direction. Up to 100 rows per call, cursor for more; the answer says when Notion stopped at its 10,000-result limit. Use it to import a calendar and schedule its posts, or to find the row update_notion_row changes. Read-only, free. Needs Notion connected (Connectors > Notion).
Parameters
| Parameter | Type | Description |
|---|---|---|
databaseId | string | database id or link (list_notion_pages type:"database") |
dataSourceId | string | data source id from an earlier read, as an alternative to databaseId |
match | object | {"Column": value} — equality for status/select/checkbox/number/date, contains for text/multi-select |
filter | object | a raw Notion filter object |
sortBy | string | column name to sort by, or created_time or last_edited_time |
direction | "ascending" | "descending" | ascending (default) or descending |
limit | number | 1-100, default 50 |
cursor | string | nextCursor from the previous page of rows |
archived | boolean | read archived rows instead |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/query_notion_database.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_notion_database","arguments":{}}}
CLI
hermoso call query_notion_database --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
update_notion_rowUpdate a Notion database rowexport_schedule_to_notionExport the schedule to Notionread_notion_pageRead a Notion pageappend_to_notion_pageAdd to a Notion pagesave_to_notionSave to Notionlist_notion_pagesList Notion pages