Skip to main content
Glama

notionQueryDatabase

Query a Notion database using optional filters, sorts, and result limits to retrieve specific records.

Instructions

Query a Notion database with optional filter and sorts.

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": "notionQueryDatabase"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortsNo
database_idYes
max_resultsNo
database_filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, yet it only implies read-only behavior through the word "Query". It says nothing about pagination, the default 20-result cap, the response shape, or any permission requirements for the database.

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?

A single short sentence with no filler, and the verb and resource are front-loaded. Its brevity is efficient, though it reflects under-specification rather than genuine density of information.

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

Completeness2/5

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

This is a query tool with a free-form filter object, a sorts array, a result cap, and no output schema and no parameter documentation. Given that complexity, the description should explain the filter structure and pagination, and it does neither.

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 description coverage is 0% across four parameters, and the description only echoes two of them ("filter" and "sorts"). It adds no syntax, format, or value meaning for database_filter, sorts, max_results, or the required database_id, leaving all semantics 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 Notion database" gives a clear verb and resource, but the description stops there. It does not distinguish this from sibling tools like notionListDatabases or notionSearchPages, so an agent must infer which one retrieves database entries versus metadata.

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 and no named alternative. The phrase "optional filter and sorts" hints at a filtered read but never states the conditions under which this tool should be chosen over notionSearchPages or notionListDatabases.

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