Skip to main content
Glama

create_import_job

Create + start an import for an org. Owner/admin only. Two sources. source='notion_api' (default): pass the transient Notion integration token (never stored, logged, or echoed) with either database_id (single database) or whole_workspace=true (all shared databases → one board each with best-effort inter-DB relation links); optional column_property names the Notion status/select property whose options become the board's columns (blank = auto-detect). source='export_file' (NOV-297): import a Notion export .zip previously uploaded via create_import_upload; pass file_id (no token). REQUIRED SEQUENCE for export_file: call create_import_upload -> PUT the bytes to the returned upload_url -> commit_file(file_id) -> THEN create_import_job(source='export_file', file_id=...). The file is importable as soon as commit_file returns status=='available'. Returns the queued job WITHOUT any token. Mirrors POST /v1/orgs/{org_id}/import-jobs.

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": {
      "org_id": "<org_id>"
    },
    "name": "create_import_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNo
org_idYes
sourceNonotion_api
file_idNo
database_idNo
column_propertyNo
whole_workspaceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses auth requirements ('Owner/admin only'), a security-relevant guarantee ('token never stored, logged, or echoed'), the return shape ('queued job WITHOUT any token'), and semantic nuances such as best-effort inter-DB relation links and auto-detect fallback for column_property.

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?

Content is front-loaded—purpose, then auth, then sources, then the required sequence, then return—and no sentence is filler. The trade-off is density: the source='notion_api' sentence is a long run-on loaded with parentheticals, which slows parsing compared with a short bulleted structure.

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?

For a 7-parameter, token-handling, sequencing-sensitive job-creation tool, everything an agent needs to call it correctly is present: permissions, mode selection, ordering dependency, and file-readiness condition. The output schema exists, so the description needn't detail return fields beyond noting the token is absent.

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 0% across 7 parameters, yet the description explains token (transient, notion_api only), database_id vs whole_workspace as mutually exclusive scopes, column_property (names the status/select property whose options become columns; blank = auto-detect), and file_id (export_file only, no token). This more than compensates for the missing schema documentation.

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 opening sentence states a specific verb and resource plus scope: 'Create + start an import for an org.' It then splits the tool's two distinct modes (source='notion_api' vs source='export_file') so an agent can tell exactly what the tool does and which mode applies.

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

Usage Guidelines5/5

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

It names the prerequisites (Owner/admin only), the alternative flow explicitly ('previously uploaded via create_import_upload'), and enumerates the exact call sequence required for export_file: create_import_upload -> PUT bytes -> commit_file -> create_import_job. The condition selecting each source is stated, not implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources