{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-delete-variable",
  "title": "onf_delete_variable",
  "section": "MCP tool reference",
  "description": "Delete a declared workspace variable using its current expectedRevision. Flows referencing its name will fail until explicitly reconfigured. Deleting does not execute or replay workflows.",
  "kind": "mcp",
  "url": "/wiki/tool-onf-delete-variable/",
  "markdown": "/wiki/tool-onf-delete-variable/index.md",
  "json": "/wiki/tool-onf-delete-variable/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/variable-tools.ts"
  ],
  "contract": {
    "name": "onf_delete_variable",
    "description": "Delete a declared workspace variable using its current expectedRevision. Flows referencing its name will fail until explicitly reconfigured. Deleting does not execute or replay workflows.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "variableId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_.-]{1,120}$"
        },
        "expectedRevision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "variableId",
        "expectedRevision"
      ]
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": true,
      "idempotentHint": false,
      "openWorldHint": false
    },
    "source": {
      "file": "server/variable-tools.ts",
      "line": 116
    }
  }
}
