{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-storage-question-decide",
  "title": "onf_storage_question_decide",
  "section": "MCP tool reference",
  "description": "Re-correlate an exact stored identity/anchor/actor, validate an allowed option and atomically select/enqueue once.",
  "kind": "mcp",
  "url": "/wiki/tool-onf-storage-question-decide/",
  "markdown": "/wiki/tool-onf-storage-question-decide/index.md",
  "json": "/wiki/tool-onf-storage-question-decide/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_storage_question_decide",
    "description": "Re-correlate an exact stored identity/anchor/actor, validate an allowed option and atomically select/enqueue once.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
        },
        "expectedVersion": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "match": {
          "type": "object",
          "properties": {
            "identity": {
              "type": "object",
              "propertyNames": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "additionalProperties": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              }
            },
            "threadId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "replyToCommentId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "actorId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "actorIsBot": {
              "type": "boolean"
            }
          },
          "required": [
            "identity",
            "actorId"
          ],
          "additionalProperties": false
        },
        "optionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
        },
        "dedupKey": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
        },
        "payload": {},
        "workspaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "namespace": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        }
      },
      "required": [
        "key",
        "expectedVersion",
        "match",
        "optionId",
        "dedupKey",
        "workspaceId",
        "namespace"
      ]
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    },
    "source": {
      "file": "server/platform-tools.ts",
      "line": 14
    }
  }
}
