{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-import-data",
  "title": "onf_import_data",
  "section": "MCP tool reference",
  "description": "Validate and atomically import an ONF JSON package. Existing conflicting IDs/versions fail; new workflows are imported disabled. Does not import secrets, history or durable state.",
  "kind": "mcp",
  "url": "/wiki/tool-onf-import-data/",
  "markdown": "/wiki/tool-onf-import-data/index.md",
  "json": "/wiki/tool-onf-import-data/index.json",
  "headings": [
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "exact-input-schema",
      "title": "Exact input schema",
      "depth": 2
    },
    {
      "id": "mcp-annotations",
      "title": "MCP annotations",
      "depth": 2
    },
    {
      "id": "calling-this-tool",
      "title": "Calling this tool",
      "depth": 2
    }
  ],
  "sources": [
    "server/mcp-tools.ts"
  ],
  "contract": {
    "name": "onf_import_data",
    "description": "Validate and atomically import an ONF JSON package. Existing conflicting IDs/versions fail; new workflows are imported disabled. Does not import secrets, history or durable state.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "package": {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "const": "onf"
            },
            "version": {
              "type": "number",
              "const": 1
            },
            "workspaces": {
              "maxItems": 1000,
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "definitions": {
              "maxItems": 10000,
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "workflows": {
              "maxItems": 1000,
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "contextDocumentation": {
              "maxItems": 10000,
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "libraryFolders": {
              "maxItems": 2000,
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "libraryMetadata": {
              "maxItems": 10000,
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "libraryPacks": {
              "maxItems": 1000,
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "workspaceLibraries": {
              "maxItems": 1000,
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            }
          },
          "required": [
            "format",
            "version",
            "workspaces",
            "definitions",
            "workflows"
          ]
        }
      },
      "required": [
        "package"
      ]
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": true
    },
    "source": {
      "file": "server/mcp-tools.ts",
      "line": 1318
    }
  }
}
