Skip to main content
Glama

notion_query_database

Read-only

Use JSON filter and sort syntax to query a Notion database and return matching records.

Instructions

Query a Notion database with optional filter and sort (JSON filter/sort syntax)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseIdYesNotion database ID
filterNoJSON filter object following Notion filter syntax
sortsNoJSON sorts array following Notion sort syntax
pageSizeNoResults per page (max 100)
Behavior3/5

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

Annotations already provide readOnlyHint=true and openWorldHint=true, covering safety and scope. Description adds that filter and sort use JSON syntax, but does not disclose pagination behavior, rate limits, or other traits. Adequate but not enhanced.

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?

Single sentence, front-loaded with verb and resource, no wasted words. Excellent conciseness.

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?

No output schema, so description could cover return structure or examples. Lacks pagination details and error handling. For a simple read operation with good annotations, it is barely adequate.

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

Parameters2/5

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

Schema description coverage is 100%, but description only repeats that filter/sort are JSON strings, which is already in schema. No additional meaning or syntax details beyond the schema. Essentially redundant.

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?

Description clearly states verb 'Query', resource 'Notion database', and optional features filter/sort. Distinguishes from siblings like notion_get_page (single page) and notion_search (broader search).

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

Usage Guidelines3/5

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

Description implies usage for querying with filter/sort, but does not explicitly state when to use this vs alternatives like notion_search or notion_get_page. No when-not or alternative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fideguch/my_pm_tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server