Skip to main content
Glama
company-mcp-server

company-mcp-server

by jaiswalpuza2

query_notion_database

Read-onlyIdempotent

Query a Notion database to return matching pages, with optional filter objects, sort criteria, and page size limits. Read-only, so no data is modified.

Instructions

Query a Notion database and return matching pages. Supports optional Notion filter objects and sort criteria. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
sortsNoOptional array of sort criteria.
filtersNoOptional Notion filter object forwarded verbatim to the Notion API. Example: {"property":"Status","select":{"equals":"Done"}}
page_sizeNoNumber of results to return (1–100, default 50).
database_idYesThe Notion database ID to query (32-char hex or hyphenated UUID).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so 'Read-only' merely restates structured data. The description adds no behavior beyond them: no pagination semantics (cursor/has_more), no rate-limit or auth context, and no indication of what 'matching pages' contain.

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?

Three short sentences, front-loaded with the core action and scope. The final 'Read-only' sentence is redundant with the annotations and could be dropped, but overall there is little waste.

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?

With no output schema, the description should say more about the return shape and pagination behavior for a query tool whose page_size caps at 100. It states that pages are returned but omits whether results are paginated, what fields each page carries, or how filter objects must be shaped (only the schema hints at this).

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 coverage is 100%, so the schema already documents database_id, filters, sorts and page_size, including the 'forwarded verbatim' filter note. The description only echoes that filters and sorts exist, adding no syntax or format meaning beyond the schema; baseline 3 applies.

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

Purpose4/5

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

The description gives a specific verb and resource ('Query a Notion database and return matching pages'), which lets an agent distinguish it from get_notion_page (single page) even though the sibling is never named. It is clear but lacks explicit sibling differentiation.

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. Nothing tells the agent when to choose this over query_supabase_table or get_notion_page, and no prerequisites (integration access, database sharing) are stated.

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