{"uid":"cap_kNt0wqAG-sWBXzp-BwqjG","slug":"webster-2005-opioid-risk-tool-ort-calculator-29a1c3ad","name":"Webster 2005 Opioid Risk Tool (ORT) Calculator","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.","url":"https://api.magentlab.com/api/calc/ort","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","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"],"properties":{"sex":{"enum":["female","male"],"type":"string","description":"female or male. Webster 2005 Table 1 item weights are sex-specific. Assigned by the caller."},"depression":{"type":"boolean","description":"Depression as assigned by the caller (Webster 2005 Table 1). true scores 1. magent does not diagnose."},"age_16_to_45":{"type":"boolean","description":"Age 16-45 years as a flag, not a numeric age (Webster 2005 Table 1). true scores 1. Assigned by the caller."},"family_alcohol":{"type":"boolean","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."},"personal_alcohol":{"type":"boolean","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."},"family_illegal_drugs":{"type":"boolean","description":"Family history of illegal-drug abuse as assigned by the caller (Webster 2005 Table 1). Female 2, male 3. true or false."},"personal_illegal_drugs":{"type":"boolean","description":"Personal history of illegal-drug abuse as assigned by the caller (Webster 2005 Table 1). 4 points. true or false."},"family_prescription_drugs":{"type":"boolean","description":"Family history of prescription-drug abuse as assigned by the caller (Webster 2005 Table 1). 4 points. true or false."},"preadolescent_sexual_abuse":{"type":"boolean","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."},"personal_prescription_drugs":{"type":"boolean","description":"Personal history of prescription-drug abuse as assigned by the caller (Webster 2005 Table 1). 5 points. true or false."},"add_ocd_bipolar_schizophrenia":{"type":"boolean","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."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__-BOatnF5Z7kZD0HIe61H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the sex-specific Webster 2005 Opioid Risk Tool score and risk category (low/moderate/high) from ten binary yes/no clinical flags.","exampleAgentPrompt":"Can you calculate the Webster 2005 Opioid Risk Tool score for a female patient who is aged 16–45, has a family history of alcohol abuse and illegal drug abuse, a personal history of prescription drug abuse, and has been diagnosed with depression — I need the total score and whether she falls into low, moderate, or high risk?","exampleUseCases":[{"title":"Pre-prescription opioid risk screening","prompt":"I need to run an ORT score before we start this male patient on long-term opioids — he has a family history of prescription drug abuse, a personal history of illegal drug abuse, and he's between 16 and 45. Can you give me his Webster 2005 risk category?"},{"title":"EHR-integrated risk stratification workflow","prompt":"For a female patient with family alcohol abuse, family illegal drug abuse, personal alcohol abuse, preadolescent sexual abuse, and a bipolar diagnosis, calculate her Opioid Risk Tool score and tell me if she's low, moderate, or high risk."},{"title":"Comparing risk profiles across two patients","prompt":"Score these two patients on the Webster 2005 ORT: first a male aged 16–45 with depression and personal alcohol abuse; second a female with family prescription drug abuse and ADD. Give me both scores and risk categories so I can compare them."}],"resultDescription":"Returns the computed integer ORT total score with sex-specific weights applied, plus a risk category string: 'low' (0–3), 'moderate' (4–7), or 'high' (≥8). The score reflects the Webster 2005 Table 1 algorithm, not the 2019 ORT-OUD revision.","failureModes":["Missing required query parameters (sex or any of the ten boolean flags) returns a 400/422 error","Invalid enum value for sex (not 'male' or 'female') causes a validation error","Non-boolean value for a flag field causes schema validation failure","Payment not provided or insufficient USDC results in 402 Payment Required","Network timeout or server error returns 5xx with no score"],"whenToPreferThis":"Use this endpoint when you need a programmatic, deterministic implementation of the original Webster 2005 Opioid Risk Tool with sex-specific item weights, specifically for integrating ORT scoring into clinical decision support pipelines, EHR workflows, or research tools. Prefer it over general-purpose LLM scoring when you need reproducible, auditable calculation that strictly follows Table 1 weights. Do not use it for the 2019 ORT-OUD revision, for free-text patient history parsing, or as a standalone diagnostic or medical device.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:49:36.231Z","isFirstParty":false}