Skip to main content
Glama
@devheerim/notion-mcp-server

@devheerim/notion-mcp-server

by Henry-Hong

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

NameRequiredDescriptionDefault
sortsNo정렬 배열. 예: [{"property": "Name", "direction": "ascending"}] 또는 [{"timestamp": "created_time", "direction": "descending"}]
filterNoNotion 필터 객체. 단일: {"property": "Status", "select": {"equals": "Done"}}, 복합: {"and": [{"property": "Status", "select": {"equals": "Done"}}, ...]}
page_sizeNo반환할 결과 수 (1-100, 기본값 50)
database_idYes데이터베이스 ID 또는 Notion URL
start_cursorNo페이지네이션 커서

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It implies a read operation and acknowledges that pagination exists, but it does not confirm read-only semantics, explain how the cursor is used or returned, state result limits, or describe any permission or rate-limit constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no filler, and the core capabilities are front-loaded. The listing of filter, sort, and pagination largely restates the parameter set, so a small amount of the text does not earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with nested objects, no output schema, and no annotations, the description is thin: it never says what a call returns, such as a page of results plus a next cursor. It is adequate to identify the operation but leaves an agent guessing about the response and about pagination semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all five parameters, including the nested filter and sorts shapes, are already documented in the schema. The description adds only that filtering can be property-based and precise, which confirms intent but contributes no syntax or format detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource (query the database) and enumerates the supported capabilities: filtering, sorting, and pagination. It is clearly distinguishable from the sibling tools, which are create/update/fetch page or database operations, but it does not name any of them for contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, no prerequisites, and no mention of alternatives (for example, a search tool). An agent must infer that this is the retrieval path purely from the verb 'query' and cannot tell from the text when a different tool would be more appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.