query_database
Retrieve records from a Notion database using property-based filters, sorting, and pagination to return precise matches.
Instructions
데이터베이스를 필터, 정렬, 페이지네이션으로 쿼리합니다. 프로퍼티 기반 정밀 필터링이 가능합니다.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database_id": "<database_id>"
},
"name": "query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sorts | No | 정렬 배열. 예: [{"property": "Name", "direction": "ascending"}] 또는 [{"timestamp": "created_time", "direction": "descending"}] | |
| filter | No | Notion 필터 객체. 단일: {"property": "Status", "select": {"equals": "Done"}}, 복합: {"and": [{"property": "Status", "select": {"equals": "Done"}}, ...]} | |
| page_size | No | 반환할 결과 수 (1-100, 기본값 50) | |
| database_id | Yes | 데이터베이스 ID 또는 Notion URL | |
| start_cursor | No | 페이지네이션 커서 |