Skip to main content
Glama
notion-mcp-slim
by TakoYunYi

API-post-database-query

Query a Notion database with filters, sorts, and pagination to retrieve matching pages as slim Markdown for MCP workflows.

Instructions

Notion | Query a database

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": "API-post-database-query"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortsNoSort criteria.
filterNoFilter conditions.
archivedNo
in_trashNo
page_sizeNo
database_idYesIdentifier for a Notion database.
start_cursorNo
filter_propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. "Query" weakly implies a read-only retrieval, but nothing is said about pagination, default page size, filter syntax, or rate limits — all of which matter for an 8-parameter tool with a nested filter object.

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

Conciseness2/5

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

The definition is a single fragment with no waste, but it is under-specified rather than concise. There is no front-loaded explanation of what a query returns or how to page through results.

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

Completeness1/5

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

For a tool with 8 parameters, nested objects, no annotations, and no output schema, the description is completely inadequate. An agent cannot know the return shape, default behavior, or how to construct filters from this text alone.

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

Parameters1/5

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

Schema coverage is only 38% across 8 parameters, so the description must compensate — and it does not. It adds zero meaning for sorts, filter, page_size, start_cursor, or filter_properties, all of which the schema leaves undocumented.

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

Purpose3/5

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

"Query a database" names a verb and resource, so an agent can tell it fetches database rows rather than metadata. However, it does not distinguish this from the sibling API-retrieve-a-database, and "query" alone leaves the result type (pages/rows) implicit.

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?

The description gives no when-to-use guidance, no mention of when to prefer retrieve-a-database or search, and no prerequisites. The agent must infer everything from the name and schema.

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