Skip to main content
Glama

create_page_from_file

Create a Notion page from a local markdown file. The file is read, converted to native Notion blocks, and Notion's limits are handled automatically.

Instructions

Create a Notion page from a local markdown file. The server reads and validates the file, then creates the same result as create_page without sending file contents through the agent context. The server converts the markdown to native Notion blocks (not flat text) and automatically handles Notion's limits (100-block batching, 2000-char splitting, deep nesting), so large files need no pre-chunking.

STDIO MODE ONLY. This tool is not available when the server runs over HTTP, because in HTTP mode the server's filesystem belongs to the server host, not the caller.

Restrictions:

  • file_path must be an ABSOLUTE path (no relative paths, no ~ expansion)

  • File must be inside the configured workspace root (defaults to the server's process.cwd(); override via the NOTION_MCP_WORKSPACE_ROOT env var)

  • File extension must be .md or .markdown

  • File size must be ≤ 1 MB (1,048,576 bytes)

  • File must be valid UTF-8

  • Symlinks are resolved and the resolved path must still be inside the workspace root

For supported markdown syntax, read resource easy-notion://docs/markdown. Returns: { id, title, url }, plus note only when created at the workspace root. There is no block count and no per-block IDs in the receipt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesPage title
file_pathYesAbsolute path to a local .md or .markdown file (≤ 1 MB, UTF-8, inside the configured workspace root)
parent_page_idNoParent page ID. Same resolution rules as create_page.
Behavior5/5

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

With no annotations, the description carries full burden. It thoroughly explains server behavior: reads and validates file, converts markdown to native Notion blocks (not flat text), automatically handles Notion's limits (100-block batching, 2000-char splitting, deep nesting), and returns a receipt with id, title, url, and note only at workspace root. It also notes what is not included (no block count, per-block IDs). No contradictions.

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?

The description is well-structured: first paragraph states core purpose and key behavior, second paragraph addresses mode restriction, third lists restrictions clearly, and fourth provides additional return value info. Every sentence adds value, no redundancy, and it is appropriately sized for the tool's complexity.

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

Completeness5/5

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

Given the tool's complexity (file validation, markdown conversion, Notion limits, return receipt), the description covers all necessary aspects. Although there is no output schema, the description explicitly states the return fields. It also references a resource for supported markdown syntax. It is sufficiently complete for an agent to use correctly.

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

Parameters5/5

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

Schema description coverage is 100% already, but the description adds significant value: for file_path it elaborates on absolute path requirement, workspace root, extension, size, and UTF-8 constraints; for parent_page_id it notes 'same resolution rules as create_page' which aids understanding. This goes beyond the schema's minimal 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 explicitly states 'Create a Notion page from a local markdown file' and distinguishes from sibling create_page by noting the same result but without sending file contents through agent context. This provides a clear, specific verb+resource with differentiation.

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 clearly states 'STDIO MODE ONLY' and explains why it's unavailable over HTTP, and enumerates restrictions (absolute path, workspace root, file extension, size, UTF-8, symlinks). However, it does not explicitly contrast when to use this tool vs create_page for scenarios where streaming file contents might be acceptable, but the comparison is implied.

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/Grey-Iris/easy-notion-mcp'

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