{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-organize-definition",
  "title": "onf_organize_definition",
  "section": "MCP tool reference",
  "description": "Replace discovery tags and folder for a shared asset without publishing a definition or changing runtime pins. expectedRevision:0 creates absent metadata. Omitted/null folderId means Unfiled; tags normalize to lowercase unique sorted values",
  "kind": "mcp",
  "url": "/wiki/tool-onf-organize-definition/",
  "markdown": "/wiki/tool-onf-organize-definition/index.md",
  "json": "/wiki/tool-onf-organize-definition/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/platform-tools.ts"
  ],
  "contract": {
    "name": "onf_organize_definition",
    "description": "Replace discovery tags and folder for a shared asset without publishing a definition or changing runtime pins. expectedRevision:0 creates absent metadata. Omitted/null folderId means Unfiled; tags normalize to lowercase unique sorted values.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "expectedRevision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "tags": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          }
        },
        "folderId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.-]{1,120}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "packId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.-]{1,120}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "discovery": {
          "type": "string",
          "enum": [
            "default",
            "hidden"
          ]
        },
        "definitionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        }
      },
      "required": [
        "expectedRevision",
        "tags",
        "definitionId"
      ]
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    },
    "source": {
      "file": "server/platform-tools.ts",
      "line": 102
    }
  }
}
