{
  "format": "aner.mcp.predict-observation.example/1",
  "protocolVersion": "2025-11-25",
  "tool": {
    "name": "predict_observation",
    "description": "Return the prediction for the observation authorized by the scientist's local run.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "row_id": {
          "type": "string",
          "pattern": "^(0|-?[1-9][0-9]*)$",
          "maxLength": 20,
          "description": "Canonical decimal Int64 observation ID."
        }
      },
      "required": [
        "row_id"
      ],
      "additionalProperties": false
    },
    "outputSchema": {
      "type": "object",
      "properties": {
        "row_id": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "unit": {
          "type": "string"
        },
        "evidence_id": {
          "type": "string"
        }
      },
      "required": [
        "row_id",
        "value",
        "unit",
        "evidence_id"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": true,
      "openWorldHint": false
    }
  },
  "approved": {
    "request": {
      "method": "tools/call",
      "params": {
        "name": "predict_observation",
        "arguments": {
          "row_id": "401"
        }
      },
      "jsonrpc": "2.0",
      "id": 2
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 2,
      "result": {
        "isError": false,
        "structuredContent": {
          "row_id": "401",
          "value": 107.99999999999999,
          "unit": "kWh",
          "evidence_id": "sha256:e4bafa0861d8be7115e783d09dd4ec63eaf42f7fbea4067882f7417115a37210"
        },
        "content": [
          {
            "type": "text",
            "text": "{\"row_id\":\"401\",\"value\":107.99999999999999,\"unit\":\"kWh\",\"evidence_id\":\"sha256:e4bafa0861d8be7115e783d09dd4ec63eaf42f7fbea4067882f7417115a37210\"}"
          }
        ]
      }
    }
  },
  "denied": {
    "request": {
      "method": "tools/call",
      "params": {
        "name": "predict_observation",
        "arguments": {
          "row_id": "402"
        }
      },
      "jsonrpc": "2.0",
      "id": 2
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 2,
      "result": {
        "isError": true,
        "content": [
          {
            "type": "text",
            "text": "requested row is outside the approved prediction scope"
          }
        ]
      }
    }
  }
}
