# Hermoso: query_notion_database · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/files/query_notion_database/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Files & documents](https://hermoso.ai/docs/reference/files/) / query_notion_database

# `query_notion_database`

Read a Notion database read-only

Area: Notion · [Files & documents](https://hermoso.ai/docs/reference/files/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

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](https://hermoso.ai/docs/credits/).

## Related tools

- [update_notion_row](https://hermoso.ai/docs/reference/files/update_notion_row/) Update a Notion database row
- [export_schedule_to_notion](https://hermoso.ai/docs/reference/files/export_schedule_to_notion/) Export the schedule to Notion
- [read_notion_page](https://hermoso.ai/docs/reference/files/read_notion_page/) Read a Notion page
- [append_to_notion_page](https://hermoso.ai/docs/reference/files/append_to_notion_page/) Add to a Notion page
- [save_to_notion](https://hermoso.ai/docs/reference/files/save_to_notion/) Save to Notion
- [list_notion_pages](https://hermoso.ai/docs/reference/files/list_notion_pages/) List Notion pages

[All 37 Files & documents tools](https://hermoso.ai/docs/reference/files/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
