Labsco
makenotion logo

database-query

✓ Official17

by notion · part of makenotion/cursor-notion-plugin

Query a Notion database by name or ID and return structured, readable results with optional filters and sorting.

🔥🔥🔥✓ VerifiedFreeQuick setup
🧩 One of 7 skills in the makenotion/cursor-notion-plugin package — works on its own, and pairs well with its siblings.

Query a Notion database by name or ID and return structured, readable results with optional filters and sorting.

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.


name: database-query description: Query a Notion database by name or ID and return structured, readable results with optional filters and sorting.

Query Notion Database

Use the Notion MCP server to query a database on the user's behalf.

Workflow

  1. Interpret the request to extract:
    • Target database (by name or ID)
    • Optional filter(s) or sort(s) the user describes.
  2. If multiple databases match the name, ask the user to choose the correct one.
  3. Perform a query that:
    • Applies the requested filters (e.g. status = Active, owner = Alice, due date this week).
    • Limits to a reasonable number of rows (e.g. 20-50) unless the user explicitly asks for more.
  4. Present the results in a compact table-like format with:
    • Key properties (e.g. Name, Status, Owner, Due).
    • A short summary if the database has rich text content.
  5. If no rows match, say so clearly and suggest alternative filters.

Important

Avoid dumping raw JSON. Focus on readability and decision-making value for the user.