Skip to main content
Glama

create_import_upload

Mint a presigned upload for a Notion export .zip (source='export_file' imports). Owner/admin only. Only application/zip is accepted. Returns a file envelope with id, upload_url, and upload_url_fields (a presigned POST). SEQUENCE: create_import_upload -> POST the bytes to upload_url with the given form fields -> commit_file(id) -> create_import_job(source='export_file', file_id=id). The file is importable as soon as commit_file returns status=='available'. Mirrors POST /v1/orgs/{org_id}/import-jobs:upload.

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>",
      "filename": "<filename>"
    },
    "name": "create_import_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
org_idYes
filenameYes
size_bytesNo
content_typeNoapplication/zip

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the load and does so well: it discloses the authorization requirement (owner/admin only), the content-type restriction, the returned envelope's key fields, and the downstream lifecycle state that makes the file usable. It omits presigned-URL expiry, size limits, and what happens to a prior uncommitted upload, so it is not exhaustive.

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?

Front-loads the action, then prerequisites, then the return shape, then the sequence in an explicit arrow notation. Every clause carries information; even the 'Mirrors POST /v1/...' line gives API-literate agents a mapping, and there is no padding.

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

Completeness4/5

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

For a multi-step upload flow with an output schema present, the description supplies the prerequisites, the sequencing, and the terminal condition an agent needs to act correctly. The remaining gap is operational detail (URL lifetime, size_bytes handling) rather than anything that would cause a wrong call.

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 0%, so the description must supply meaning. It explains filename's purpose (a Notion export .zip) and constrains content_type to application/zip, but never mentions size_bytes at all and does not say org_id scopes authorization. Half of the parameters get real semantics; the rest remain bare in the schema.

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?

States a specific verb and resource ('Mint a presigned upload for a Notion export .zip') and pins the scope with 'source=export_file imports', which separates it from the generic presign_file_upload sibling without naming it. An agent opening only the description would know exactly what it produces.

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?

Explicitly gives the ordering contract (create_import_upload -> POST bytes -> commit_file -> create_import_job) and the availability condition (commit_file returns status=='available'), plus the owner/admin prerequisite. It stops short of naming the alternative to use for non-export uploads, so an agent needing a generic presigned URL has to infer the routing.

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