{
  "schemaVersion": 1,
  "appId": "swissdlt_oracle",
  "kind": "data",
  "title": "SwissOracle",
  "summary": "Read-only SwissOracle data on SwissDLT chain 94: yes/no markets with state, bonds and deadlines, final answers, parameters and the SORC token. Not audited.",
  "category": "prediction",
  "icon": "https://oracle.swissdlt.tech/mark.svg",
  "docsUrl": "https://oracle.swissdlt.tech/#agents",
  "upstream": {
    "transport": "mcp_remote",
    "url": "https://oracle.swissdlt.tech/mcp",
    "auth": "none"
  },
  "pricing": {
    "model": "none"
  },
  "redistribution": {
    "displayValues": true,
    "displayRaw": true,
    "attribution": "SwissOracle public-chain data, SwissDLT chain 94"
  },
  "manifestVersion": 1,
  "actions": [
    {
      "action": "get_swissoracle_protocol",
      "readOnly": true,
      "billingTier": "read_offchain",
      "credits": 0.045,
      "description": "Read the SwissOracle deployment on SwissDLT chain 94: the four contracts with explorer links, parameters for new markets, the market count, the 60/25/10/5 fee split, the SORC/WBCTS liquidity records (sealed full-range and concentrated), superseded markets and the risk notices. Not audited.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "const": "text"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": true
            }
          },
          "structuredContent": {
            "type": "object",
            "properties": {
              "chainId": {
                "type": "number",
                "const": 94
              },
              "protocol": {
                "type": "string",
                "const": "SwissOracle"
              },
              "status": {
                "type": "string"
              },
              "statusLine": {
                "type": "string"
              },
              "audited": {
                "type": "boolean",
                "const": false
              },
              "blockNumber": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "blockTimestamp": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "deployedAt": {
                "type": "string"
              },
              "contracts": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "blockNumber": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "transactionHash": {
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{64}$"
                    },
                    "explorerUrl": {
                      "type": "string"
                    },
                    "deploymentTransactionUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "address",
                    "blockNumber",
                    "transactionHash",
                    "explorerUrl",
                    "deploymentTransactionUrl"
                  ],
                  "additionalProperties": false
                }
              },
              "amm": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "runtimeCodeHash": {
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{64}$"
                    },
                    "explorerUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "address",
                    "runtimeCodeHash",
                    "explorerUrl"
                  ],
                  "additionalProperties": false
                }
              },
              "liquidity": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string"
                  },
                  "pair": {
                    "type": "string"
                  },
                  "pool": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "vault": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "positionTokenId": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "feeTier": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "custody": {
                    "type": "string"
                  },
                  "mintTransactionHash": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{64}$"
                  },
                  "poolExplorerUrl": {
                    "type": "string"
                  },
                  "notice": {
                    "type": "string"
                  }
                },
                "required": [
                  "status",
                  "pair",
                  "pool",
                  "vault",
                  "positionTokenId",
                  "feeTier",
                  "custody",
                  "mintTransactionHash",
                  "poolExplorerUrl",
                  "notice"
                ],
                "additionalProperties": false
              },
              "concentratedLiquidity": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string"
                  },
                  "pool": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "positionTokenId": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "owner": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "feeTier": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "rangePercent": {
                    "type": "number"
                  },
                  "tickLower": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "tickUpper": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "custody": {
                    "type": "string"
                  },
                  "mintTransactionHash": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{64}$"
                  },
                  "notice": {
                    "type": "string"
                  }
                },
                "required": [
                  "status",
                  "pool",
                  "positionTokenId",
                  "owner",
                  "feeTier",
                  "rangePercent",
                  "tickLower",
                  "tickUpper",
                  "custody",
                  "mintTransactionHash",
                  "notice"
                ],
                "additionalProperties": false
              },
              "parametersForNewMarkets": {
                "type": "object",
                "properties": {
                  "creationFeeRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "creationFee": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "baseBondRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "baseBond": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "proposalDelaySeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "challengePeriodSeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "vetoLockPeriodSeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "vetoPeriodSeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "vetoThresholdBps": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "quorumBps": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "maxEscalations": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "creationFeeRaw",
                  "creationFee",
                  "baseBondRaw",
                  "baseBond",
                  "proposalDelaySeconds",
                  "challengePeriodSeconds",
                  "vetoLockPeriodSeconds",
                  "vetoPeriodSeconds",
                  "vetoThresholdBps",
                  "quorumBps",
                  "maxEscalations"
                ],
                "additionalProperties": false
              },
              "marketCount": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "feeSplitBps": {
                "type": "object",
                "properties": {
                  "stakers": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "creator": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "treasury": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "resolver": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "stakers",
                  "creator",
                  "treasury",
                  "resolver"
                ],
                "additionalProperties": false
              },
              "supersededMarkets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "marketId": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "replacementMarketId": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "code": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "evidenceURI": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "marketId",
                    "replacementMarketId",
                    "code",
                    "reason",
                    "evidenceURI"
                  ],
                  "additionalProperties": false
                }
              },
              "links": {
                "type": "object",
                "properties": {
                  "app": {
                    "type": "string"
                  },
                  "deploymentRecord": {
                    "type": "string"
                  },
                  "financeReview": {
                    "type": "string"
                  },
                  "explorer": {
                    "type": "string"
                  }
                },
                "required": [
                  "app",
                  "deploymentRecord",
                  "financeReview",
                  "explorer"
                ],
                "additionalProperties": false
              },
              "notices": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "capabilities": {
                "type": "object",
                "properties": {
                  "reads": {
                    "type": "boolean",
                    "const": true
                  },
                  "signing": {
                    "type": "boolean",
                    "const": false
                  },
                  "broadcasting": {
                    "type": "boolean",
                    "const": false
                  },
                  "unsignedTransactionPreparation": {
                    "type": "boolean",
                    "const": false
                  }
                },
                "required": [
                  "reads",
                  "signing",
                  "broadcasting",
                  "unsignedTransactionPreparation"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "chainId",
              "protocol",
              "status",
              "statusLine",
              "audited",
              "blockNumber",
              "blockTimestamp",
              "deployedAt",
              "contracts",
              "amm",
              "liquidity",
              "concentratedLiquidity",
              "parametersForNewMarkets",
              "marketCount",
              "feeSplitBps",
              "supersededMarkets",
              "links",
              "notices",
              "capabilities"
            ],
            "additionalProperties": false
          },
          "isError": {
            "const": false
          }
        },
        "required": [
          "content",
          "structuredContent",
          "isError"
        ],
        "additionalProperties": true
      },
      "invoke": {
        "tool": "protocol_info"
      },
      "fixtureParams": {},
      "signals": [],
      "ttlMs": 60000
    },
    {
      "action": "list_swissoracle_markets",
      "readOnly": true,
      "billingTier": "read_offchain",
      "credits": 0.045,
      "description": "List the latest markets, newest first, with question, state, current answer, bonds and deadlines (Unix seconds). At most 25 per call; continue with before = nextBefore. Superseded markets are flagged with their replacement. Bond totals are not probabilities.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "default": 10,
            "type": "integer",
            "minimum": 1,
            "maximum": 25
          },
          "before": {
            "description": "Return markets with an ID lower than this. Omit for the newest.",
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "limit"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "const": "text"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": true
            }
          },
          "structuredContent": {
            "type": "object",
            "properties": {
              "chainId": {
                "type": "number",
                "const": 94
              },
              "blockNumber": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "blockTimestamp": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "marketCount": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "markets": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "address": {
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "explorerUrl": {
                      "type": "string"
                    },
                    "question": {
                      "type": "string"
                    },
                    "sourceURI": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "proposed",
                        "challenged",
                        "dao_vote",
                        "resolved",
                        "cancelled",
                        "unknown"
                      ]
                    },
                    "statusCode": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "currentAnswer": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "YES",
                            "NO"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "finalAnswer": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "YES",
                            "NO"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "resolutionDeadline": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "challengeDeadline": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "voteDeadline": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currentBondRaw": {
                      "type": "string",
                      "pattern": "^\\d+$"
                    },
                    "currentBond": {
                      "type": "string",
                      "pattern": "^\\d+(?:\\.\\d+)?$"
                    },
                    "yesBondedRaw": {
                      "type": "string",
                      "pattern": "^\\d+$"
                    },
                    "yesBonded": {
                      "type": "string",
                      "pattern": "^\\d+(?:\\.\\d+)?$"
                    },
                    "noBondedRaw": {
                      "type": "string",
                      "pattern": "^\\d+$"
                    },
                    "noBonded": {
                      "type": "string",
                      "pattern": "^\\d+(?:\\.\\d+)?$"
                    },
                    "escalationCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "maxEscalations": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "phase": {
                      "type": "string",
                      "enum": [
                        "awaiting_deadline",
                        "open_for_proposal",
                        "challenge_window",
                        "ready_to_settle",
                        "vote_open",
                        "ready_to_finalize_vote",
                        "resolved",
                        "cancelled",
                        "unknown"
                      ]
                    },
                    "superseded": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "replacementMarketId": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "code": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "replacementMarketId",
                            "code",
                            "reason"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "replacesMarketId": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "address",
                    "explorerUrl",
                    "question",
                    "sourceURI",
                    "status",
                    "statusCode",
                    "currentAnswer",
                    "finalAnswer",
                    "resolutionDeadline",
                    "challengeDeadline",
                    "voteDeadline",
                    "currentBondRaw",
                    "currentBond",
                    "yesBondedRaw",
                    "yesBonded",
                    "noBondedRaw",
                    "noBonded",
                    "escalationCount",
                    "maxEscalations",
                    "phase",
                    "superseded",
                    "replacesMarketId"
                  ],
                  "additionalProperties": false
                }
              },
              "nextBefore": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "chainId",
              "blockNumber",
              "blockTimestamp",
              "marketCount",
              "markets",
              "nextBefore",
              "note"
            ],
            "additionalProperties": false
          },
          "isError": {
            "const": false
          }
        },
        "required": [
          "content",
          "structuredContent",
          "isError"
        ],
        "additionalProperties": true
      },
      "invoke": {
        "tool": "list_markets"
      },
      "fixtureParams": {
        "limit": 5
      },
      "signals": [],
      "ttlMs": 15000
    },
    {
      "action": "get_swissoracle_market",
      "readOnly": true,
      "billingTier": "read_offchain",
      "credits": 0.045,
      "description": "Read one market by its registry ID: question, resolution source, creator, consumer, state, phase, current and final answer, bonds, escalations, vote tallies, timing and supersession. Read the final answer only when resolution.resolved is true.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "const": "text"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": true
            }
          },
          "structuredContent": {
            "type": "object",
            "properties": {
              "chainId": {
                "type": "number",
                "const": 94
              },
              "blockNumber": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "blockTimestamp": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "marketCount": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "market": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "address": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "explorerUrl": {
                    "type": "string"
                  },
                  "question": {
                    "type": "string"
                  },
                  "sourceURI": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "proposed",
                      "challenged",
                      "dao_vote",
                      "resolved",
                      "cancelled",
                      "unknown"
                    ]
                  },
                  "statusCode": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "currentAnswer": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "YES",
                          "NO"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "finalAnswer": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "YES",
                          "NO"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "resolutionDeadline": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "challengeDeadline": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "voteDeadline": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currentBondRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "currentBond": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "yesBondedRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "yesBonded": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "noBondedRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "noBonded": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "escalationCount": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "maxEscalations": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "phase": {
                    "type": "string",
                    "enum": [
                      "awaiting_deadline",
                      "open_for_proposal",
                      "challenge_window",
                      "ready_to_settle",
                      "vote_open",
                      "ready_to_finalize_vote",
                      "resolved",
                      "cancelled",
                      "unknown"
                    ]
                  },
                  "superseded": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "replacementMarketId": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "code": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "replacementMarketId",
                          "code",
                          "reason"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "replacesMarketId": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "creator": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "consumer": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^0x[0-9a-fA-F]{40}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseBondRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "baseBond": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "proposalDelaySeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "challengePeriodSeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "vetoPeriodSeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "vetoThresholdBps": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "quorumBps": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "supportStakeRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "vetoStakeRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "consumerNotified": {
                    "type": "boolean"
                  },
                  "resolution": {
                    "type": "object",
                    "properties": {
                      "resolved": {
                        "type": "boolean"
                      },
                      "cancelled": {
                        "type": "boolean"
                      },
                      "answer": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "YES",
                              "NO"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "resolved",
                      "cancelled",
                      "answer"
                    ],
                    "additionalProperties": false
                  },
                  "proposalOpensAt": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "id",
                  "address",
                  "explorerUrl",
                  "question",
                  "sourceURI",
                  "status",
                  "statusCode",
                  "currentAnswer",
                  "finalAnswer",
                  "resolutionDeadline",
                  "challengeDeadline",
                  "voteDeadline",
                  "currentBondRaw",
                  "currentBond",
                  "yesBondedRaw",
                  "yesBonded",
                  "noBondedRaw",
                  "noBonded",
                  "escalationCount",
                  "maxEscalations",
                  "phase",
                  "superseded",
                  "replacesMarketId",
                  "creator",
                  "consumer",
                  "baseBondRaw",
                  "baseBond",
                  "proposalDelaySeconds",
                  "challengePeriodSeconds",
                  "vetoPeriodSeconds",
                  "vetoThresholdBps",
                  "quorumBps",
                  "supportStakeRaw",
                  "vetoStakeRaw",
                  "consumerNotified",
                  "resolution",
                  "proposalOpensAt"
                ],
                "additionalProperties": false
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "chainId",
              "blockNumber",
              "blockTimestamp",
              "marketCount",
              "market",
              "note"
            ],
            "additionalProperties": false
          },
          "isError": {
            "const": false
          }
        },
        "required": [
          "content",
          "structuredContent",
          "isError"
        ],
        "additionalProperties": true
      },
      "invoke": {
        "tool": "get_market"
      },
      "fixtureParams": {
        "id": 100
      },
      "signals": [],
      "ttlMs": 15000
    },
    {
      "action": "get_swissoracle_token",
      "readOnly": true,
      "billingTier": "read_offchain",
      "credits": 0.045,
      "description": "Read the SwissOracle token (SORC): name, symbol, decimals, fixed total supply, deployment receipt and the SORC balance of the SORC/WBCTS pool. No price or valuation is given.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "const": "text"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": true
            }
          },
          "structuredContent": {
            "type": "object",
            "properties": {
              "chainId": {
                "type": "number",
                "const": 94
              },
              "blockNumber": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "token": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "name": {
                    "type": "string"
                  },
                  "symbol": {
                    "type": "string"
                  },
                  "decimals": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "totalSupplyRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "totalSupply": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "explorerUrl": {
                    "type": "string"
                  },
                  "deploymentBlock": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "deploymentTransactionHash": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{64}$"
                  },
                  "supplyPolicy": {
                    "type": "string"
                  }
                },
                "required": [
                  "address",
                  "name",
                  "symbol",
                  "decimals",
                  "totalSupplyRaw",
                  "totalSupply",
                  "explorerUrl",
                  "deploymentBlock",
                  "deploymentTransactionHash",
                  "supplyPolicy"
                ],
                "additionalProperties": false
              },
              "pool": {
                "type": "object",
                "properties": {
                  "pair": {
                    "type": "string"
                  },
                  "address": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "feeTier": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "sorcInPoolRaw": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "sorcInPool": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "explorerUrl": {
                    "type": "string"
                  }
                },
                "required": [
                  "pair",
                  "address",
                  "feeTier",
                  "sorcInPoolRaw",
                  "sorcInPool",
                  "explorerUrl"
                ],
                "additionalProperties": false
              },
              "notice": {
                "type": "string"
              }
            },
            "required": [
              "chainId",
              "blockNumber",
              "token",
              "pool",
              "notice"
            ],
            "additionalProperties": false
          },
          "isError": {
            "const": false
          }
        },
        "required": [
          "content",
          "structuredContent",
          "isError"
        ],
        "additionalProperties": true
      },
      "invoke": {
        "tool": "token_info"
      },
      "fixtureParams": {},
      "signals": [],
      "ttlMs": 300000
    },
    {
      "action": "check_swissoracle_health",
      "readOnly": true,
      "billingTier": "read_offchain",
      "credits": 0.045,
      "description": "Check both public SwissDLT RPCs (chain ID 94, genesis hash, head block, latency) and that the four SwissOracle contracts have code. Status is ok, degraded (one RPC failing) or down.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "const": "text"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": true
            }
          },
          "structuredContent": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "ok",
                  "degraded",
                  "down"
                ]
              },
              "checkedAt": {
                "type": "string"
              },
              "chainId": {
                "type": "number",
                "const": 94
              },
              "genesisHash": {
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{64}$"
              },
              "endpoints": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "chainId": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "genesisHash": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chainIdMatches": {
                      "type": "boolean"
                    },
                    "genesisMatches": {
                      "type": "boolean"
                    },
                    "blockNumber": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "latencyMs": {
                      "type": "number"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "ok",
                    "chainId",
                    "genesisHash",
                    "chainIdMatches",
                    "genesisMatches",
                    "blockNumber",
                    "latencyMs"
                  ],
                  "additionalProperties": false
                }
              },
              "headBlockSpread": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contracts": {
                "anyOf": [
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{40}$"
                        },
                        "hasCode": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "address",
                        "hasCode"
                      ],
                      "additionalProperties": false
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "error": {
                "type": "string"
              },
              "server": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "version"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "status",
              "checkedAt",
              "chainId",
              "genesisHash",
              "endpoints",
              "headBlockSpread",
              "contracts",
              "server"
            ],
            "additionalProperties": false
          },
          "isError": {
            "const": false
          }
        },
        "required": [
          "content",
          "structuredContent",
          "isError"
        ],
        "additionalProperties": true
      },
      "invoke": {
        "tool": "health"
      },
      "fixtureParams": {},
      "signals": [],
      "ttlMs": 30000
    }
  ]
}
