Skip to main content
Glama
m2ai-mcp-servers

Notion Advisor

query_database

Retrieve specific entries from a Notion database using filters and sorting to find exactly what you need.

Instructions

Query a database with optional filters and sorts. Use when user wants to retrieve specific entries from a database.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortsNoSort configuration
filterNoNotion filter object
page_sizeNoResults per page (max 100)
database_idYesDatabase ID to query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It communicates a read-only query operation with optional filters and sorts, but does not disclose response shape, pagination behavior, or how filters/sorts are applied. This is adequate but thin.

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

Conciseness5/5

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

Two sentences with no filler. The core operation is front-loaded, and the usage cue is stated immediately afterward. Every sentence contributes value.

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?

The description is adequate for simple invocations, but with no output schema and nested filter/sort objects whose schema descriptions are vague, an agent still lacks concrete guidance on constructing complex filters or interpreting results. It relies on external Notion knowledge.

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 the baseline is 3. The description adds that filters and sorts are optional and that the goal is retrieving specific entries, but it does not add meaning beyond the schema's own parameter descriptions.

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

Purpose5/5

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

The description names a specific verb ('Query'), a target resource ('a database'), and the intended outcome ('retrieve specific entries'). This distinguishes it from sibling tools like get_database (metadata) and search (global search) without needing to inspect their schemas.

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

Usage Guidelines4/5

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

The description explicitly says to use the tool when the user wants to retrieve specific entries from a database. It does not name alternatives or exclusions, but the primary usage context is clear and not misleading.

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