{
  "x402Version": 2,
  "id": 38992,
  "slug": "38992",
  "resource": "https://api.magentlab.com/api/calc/ort",
  "description": "Webster 2005 Opioid Risk Tool from Table 1 sex-specific weights. Ten caller-assigned yes/no flags (absent = 0). Age 16-45 is a flag, not a numeric age. ADD, OCD, bipolar, or schizophrenia is one flag. Preadolescent sexual abuse scores 3 in females and 0 in males. Low 0-3, moderate 4-7, high >=8. Not a medical device, not a diagnosis of opioid use disorder, not the 2019 ORT-OUD revision. magent does not interview the patient or take free-text history.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "add_ocd_bipolar_schizophrenia": false,
                "age_16_to_45": false,
                "depression": false,
                "family_alcohol": false,
                "family_illegal_drugs": false,
                "family_prescription_drugs": false,
                "personal_alcohol": false,
                "personal_illegal_drugs": false,
                "personal_prescription_drugs": false,
                "preadolescent_sexual_abuse": false,
                "sex": "female"
              },
              {
                "add_ocd_bipolar_schizophrenia": false,
                "age_16_to_45": false,
                "depression": false,
                "family_alcohol": false,
                "family_illegal_drugs": false,
                "family_prescription_drugs": false,
                "personal_alcohol": false,
                "personal_illegal_drugs": false,
                "personal_prescription_drugs": false,
                "preadolescent_sexual_abuse": false,
                "sex": "female"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Webster LR, Webster RM",
                  "doi": "10.1111/j.1526-4637.2005.00072.x",
                  "id": "webster-2005",
                  "pmid": "16336480",
                  "source": "Pain Med. 2005;6(6):432-442",
                  "title": "Predicting aberrant behaviors in opioid-treated patients: preliminary validation of the Opioid Risk Tool"
                },
                "components": [
                  {
                    "factor": "family_alcohol",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "family_illegal_drugs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "family_prescription_drugs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "personal_alcohol",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "personal_illegal_drugs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "personal_prescription_drugs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_16_to_45",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "preadolescent_sexual_abuse",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "add_ocd_bipolar_schizophrenia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "depression",
                    "points": 0,
                    "present": false
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "ort",
                "formula_expression": "ORT = Webster 2005 Table 1 sex-specific weights; family_alcohol F1/M3 + family_illegal_drugs F2/M3 + family_prescription_drugs 4 + personal_alcohol 3 + personal_illegal_drugs 4 + personal_prescription_drugs 5 + age_16_to_45 1 + preadolescent_sexual_abuse F3/M0 + add_ocd_bipolar_schizophrenia 2 + depression 1; absent = 0; low 0-3, moderate 4-7, high >=8; max 26",
                "max_score": 26,
                "risk": "low",
                "score": 0,
                "sex": "female"
              },
              {
                "citation": {
                  "authors": "Webster LR, Webster RM",
                  "doi": "10.1111/j.1526-4637.2005.00072.x",
                  "id": "webster-2005",
                  "pmid": "16336480",
                  "source": "Pain Med. 2005;6(6):432-442",
                  "title": "Predicting aberrant behaviors in opioid-treated patients: preliminary validation of the Opioid Risk Tool"
                },
                "components": [
                  {
                    "factor": "family_alcohol",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "family_illegal_drugs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "family_prescription_drugs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "personal_alcohol",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "personal_illegal_drugs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "personal_prescription_drugs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_16_to_45",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "preadolescent_sexual_abuse",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "add_ocd_bipolar_schizophrenia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "depression",
                    "points": 0,
                    "present": false
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "ort",
                "formula_expression": "ORT = Webster 2005 Table 1 sex-specific weights; family_alcohol F1/M3 + family_illegal_drugs F2/M3 + family_prescription_drugs 4 + personal_alcohol 3 + personal_illegal_drugs 4 + personal_prescription_drugs 5 + age_16_to_45 1 + preadolescent_sexual_abuse F3/M0 + add_ocd_bipolar_schizophrenia 2 + depression 1; absent = 0; low 0-3, moderate 4-7, high >=8; max 26",
                "max_score": 26,
                "risk": "low",
                "score": 0,
                "sex": "female"
              }
            ],
            "path": "/api/calc/ort"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "add_ocd_bipolar_schizophrenia": {
                          "description": "ADD, OCD, bipolar disorder, or schizophrenia as one flag (Webster 2005 Table 1). true scores 2. Assigned by the caller. magent does not diagnose.",
                          "type": "boolean"
                        },
                        "age_16_to_45": {
                          "description": "Age 16-45 years as a flag, not a numeric age (Webster 2005 Table 1). true scores 1. Assigned by the caller.",
                          "type": "boolean"
                        },
                        "depression": {
                          "description": "Depression as assigned by the caller (Webster 2005 Table 1). true scores 1. magent does not diagnose.",
                          "type": "boolean"
                        },
                        "family_alcohol": {
                          "description": "Family history of alcohol abuse as assigned by the caller (Webster 2005 Table 1). Female 1, male 3. true or false. magent does not interview the patient.",
                          "type": "boolean"
                        },
                        "family_illegal_drugs": {
                          "description": "Family history of illegal-drug abuse as assigned by the caller (Webster 2005 Table 1). Female 2, male 3. true or false.",
                          "type": "boolean"
                        },
                        "family_prescription_drugs": {
                          "description": "Family history of prescription-drug abuse as assigned by the caller (Webster 2005 Table 1). 4 points. true or false.",
                          "type": "boolean"
                        },
                        "personal_alcohol": {
                          "description": "Personal history of alcohol abuse as assigned by the caller (Webster 2005 Table 1). 3 points. true or false. magent does not interview the patient.",
                          "type": "boolean"
                        },
                        "personal_illegal_drugs": {
                          "description": "Personal history of illegal-drug abuse as assigned by the caller (Webster 2005 Table 1). 4 points. true or false.",
                          "type": "boolean"
                        },
                        "personal_prescription_drugs": {
                          "description": "Personal history of prescription-drug abuse as assigned by the caller (Webster 2005 Table 1). 5 points. true or false.",
                          "type": "boolean"
                        },
                        "preadolescent_sexual_abuse": {
                          "description": "History of preadolescent sexual abuse as assigned by the caller (Webster 2005 Table 1). Female 3, male 0. true or false. magent does not interview the patient.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male. Webster 2005 Table 1 item weights are sex-specific. Assigned by the caller.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "sex",
                        "family_alcohol",
                        "family_illegal_drugs",
                        "family_prescription_drugs",
                        "personal_alcohol",
                        "personal_illegal_drugs",
                        "personal_prescription_drugs",
                        "age_16_to_45",
                        "preadolescent_sexual_abuse",
                        "add_ocd_bipolar_schizophrenia",
                        "depression"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "ort",
    "opioid",
    "risk",
    "pain",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T10:11:42.853Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T10:11:42.707Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "add_ocd_bipolar_schizophrenia": false,
                  "age_16_to_45": false,
                  "depression": false,
                  "family_alcohol": false,
                  "family_illegal_drugs": false,
                  "family_prescription_drugs": false,
                  "personal_alcohol": false,
                  "personal_illegal_drugs": false,
                  "personal_prescription_drugs": false,
                  "preadolescent_sexual_abuse": false,
                  "sex": "female"
                },
                {
                  "add_ocd_bipolar_schizophrenia": false,
                  "age_16_to_45": false,
                  "depression": false,
                  "family_alcohol": false,
                  "family_illegal_drugs": false,
                  "family_prescription_drugs": false,
                  "personal_alcohol": false,
                  "personal_illegal_drugs": false,
                  "personal_prescription_drugs": false,
                  "preadolescent_sexual_abuse": false,
                  "sex": "female"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Webster LR, Webster RM",
                    "doi": "10.1111/j.1526-4637.2005.00072.x",
                    "id": "webster-2005",
                    "pmid": "16336480",
                    "source": "Pain Med. 2005;6(6):432-442",
                    "title": "Predicting aberrant behaviors in opioid-treated patients: preliminary validation of the Opioid Risk Tool"
                  },
                  "components": [
                    {
                      "factor": "family_alcohol",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "family_illegal_drugs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "family_prescription_drugs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "personal_alcohol",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "personal_illegal_drugs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "personal_prescription_drugs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_16_to_45",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "preadolescent_sexual_abuse",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "add_ocd_bipolar_schizophrenia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "depression",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "ort",
                  "formula_expression": "ORT = Webster 2005 Table 1 sex-specific weights; family_alcohol F1/M3 + family_illegal_drugs F2/M3 + family_prescription_drugs 4 + personal_alcohol 3 + personal_illegal_drugs 4 + personal_prescription_drugs 5 + age_16_to_45 1 + preadolescent_sexual_abuse F3/M0 + add_ocd_bipolar_schizophrenia 2 + depression 1; absent = 0; low 0-3, moderate 4-7, high >=8; max 26",
                  "max_score": 26,
                  "risk": "low",
                  "score": 0,
                  "sex": "female"
                },
                {
                  "citation": {
                    "authors": "Webster LR, Webster RM",
                    "doi": "10.1111/j.1526-4637.2005.00072.x",
                    "id": "webster-2005",
                    "pmid": "16336480",
                    "source": "Pain Med. 2005;6(6):432-442",
                    "title": "Predicting aberrant behaviors in opioid-treated patients: preliminary validation of the Opioid Risk Tool"
                  },
                  "components": [
                    {
                      "factor": "family_alcohol",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "family_illegal_drugs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "family_prescription_drugs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "personal_alcohol",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "personal_illegal_drugs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "personal_prescription_drugs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_16_to_45",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "preadolescent_sexual_abuse",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "add_ocd_bipolar_schizophrenia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "depression",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "ort",
                  "formula_expression": "ORT = Webster 2005 Table 1 sex-specific weights; family_alcohol F1/M3 + family_illegal_drugs F2/M3 + family_prescription_drugs 4 + personal_alcohol 3 + personal_illegal_drugs 4 + personal_prescription_drugs 5 + age_16_to_45 1 + preadolescent_sexual_abuse F3/M0 + add_ocd_bipolar_schizophrenia 2 + depression 1; absent = 0; low 0-3, moderate 4-7, high >=8; max 26",
                  "max_score": 26,
                  "risk": "low",
                  "score": 0,
                  "sex": "female"
                }
              ],
              "path": "/api/calc/ort"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "add_ocd_bipolar_schizophrenia": {
                            "description": "ADD, OCD, bipolar disorder, or schizophrenia as one flag (Webster 2005 Table 1). true scores 2. Assigned by the caller. magent does not diagnose.",
                            "type": "boolean"
                          },
                          "age_16_to_45": {
                            "description": "Age 16-45 years as a flag, not a numeric age (Webster 2005 Table 1). true scores 1. Assigned by the caller.",
                            "type": "boolean"
                          },
                          "depression": {
                            "description": "Depression as assigned by the caller (Webster 2005 Table 1). true scores 1. magent does not diagnose.",
                            "type": "boolean"
                          },
                          "family_alcohol": {
                            "description": "Family history of alcohol abuse as assigned by the caller (Webster 2005 Table 1). Female 1, male 3. true or false. magent does not interview the patient.",
                            "type": "boolean"
                          },
                          "family_illegal_drugs": {
                            "description": "Family history of illegal-drug abuse as assigned by the caller (Webster 2005 Table 1). Female 2, male 3. true or false.",
                            "type": "boolean"
                          },
                          "family_prescription_drugs": {
                            "description": "Family history of prescription-drug abuse as assigned by the caller (Webster 2005 Table 1). 4 points. true or false.",
                            "type": "boolean"
                          },
                          "personal_alcohol": {
                            "description": "Personal history of alcohol abuse as assigned by the caller (Webster 2005 Table 1). 3 points. true or false. magent does not interview the patient.",
                            "type": "boolean"
                          },
                          "personal_illegal_drugs": {
                            "description": "Personal history of illegal-drug abuse as assigned by the caller (Webster 2005 Table 1). 4 points. true or false.",
                            "type": "boolean"
                          },
                          "personal_prescription_drugs": {
                            "description": "Personal history of prescription-drug abuse as assigned by the caller (Webster 2005 Table 1). 5 points. true or false.",
                            "type": "boolean"
                          },
                          "preadolescent_sexual_abuse": {
                            "description": "History of preadolescent sexual abuse as assigned by the caller (Webster 2005 Table 1). Female 3, male 0. true or false. magent does not interview the patient.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male. Webster 2005 Table 1 item weights are sex-specific. Assigned by the caller.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "sex",
                          "family_alcohol",
                          "family_illegal_drugs",
                          "family_prescription_drugs",
                          "personal_alcohol",
                          "personal_illegal_drugs",
                          "personal_prescription_drugs",
                          "age_16_to_45",
                          "preadolescent_sexual_abuse",
                          "add_ocd_bipolar_schizophrenia",
                          "depression"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}