hermosodocs

query_notion_database

Read a Notion database read-only

Area: Notion · Files & documents. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
databaseIdstringdatabase id or link (list_notion_pages type:"database")
dataSourceIdstringdata source id from an earlier read, as an alternative to databaseId
matchobject{"Column": value} — equality for status/select/checkbox/number/date, contains for text/multi-select
filterobjecta raw Notion filter object
sortBystringcolumn name to sort by, or created_time or last_edited_time
direction"ascending" | "descending"ascending (default) or descending
limitnumber1-100, default 50
cursorstringnextCursor from the previous page of rows
archivedbooleanread 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.

All 37 Files & documents tools · tools.json