# TWIST Score Calculator (Barbosa 2013) — Testicular Torsion Risk

> TWIST Score Calculator (Barbosa 2013) — Testicular Torsion Risk is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Computes the Barbosa 2013 TWIST score (0–7) for testicular torsion risk stratification from five caller-supplied clinical flags, returning a numeric score and low/intermediate/high risk category.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/twist
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twist-score-calculator-barbosa-2013-testicular-torsion-risk-7081c402
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N1zwt8pYDTeOTnqYHD1X-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability twist-score-calculator-barbosa-2013-testicular-torsion-risk-7081c402
```

Example prompt: Calculate the TWIST score for a patient who has testicular swelling, a hard testicle, an absent cremasteric reflex, and nausea — no high-riding testis — and tell me whether the torsion risk is low, intermediate, or high.

## When to prefer this

Use this endpoint when you need a validated, algorithmic TWIST risk stratification from five already-assessed clinical findings (swelling, hardness, cremasteric reflex, nausea, testis position) and want a reproducible 0–7 score with low/intermediate/high cutoffs per Barbosa 2013. Prefer it over generic LLM reasoning for any workflow requiring an auditable, published clinical score.

## Known failure modes

- Missing any of the five required boolean flags returns a validation error
- Non-boolean values for flags cause a schema error
- Score alone does not determine clinical management — misuse risk if treated as a diagnostic result

## How this service works

Barbosa 2013 TWIST (Testicular Workup for Ischemia and Suspected Torsion). Five caller-assigned flags: testicular swelling (2), hard testicle (2), absent cremasteric reflex (1), nausea or vomiting (1), high-riding testis (1). Max 7. Risk: 0–2 low, 3–4 intermediate, 5–7 high (cutoffs 2 and 5). Not a torsion diagnosis or an ultrasound or operative order. magent does not examine the patient.

## Output

Returns the integer TWIST score (0–7), the risk category (low for 0–2, intermediate for 3–4, high for 5–7), and the scoring breakdown per Barbosa 2013. Does not provide a diagnosis, order imaging, or recommend surgery.

## Request schema (JSON Schema)

```json
{
 "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": [
      "testicular_swelling",
      "hard_testicle",
      "absent_cremasteric_reflex",
      "nausea_or_vomiting",
      "high_riding_testis"
     ],
     "properties": {
      "hard_testicle": {
       "type": "boolean",
       "description": "Hard testicle as assigned by the caller (Barbosa 2013). true scores 2. magent does not examine the patient."
      },
      "high_riding_testis": {
       "type": "boolean",
       "description": "High-riding testis as assigned by the caller (Barbosa 2013). true scores 1. magent does not examine the patient."
      },
      "nausea_or_vomiting": {
       "type": "boolean",
       "description": "Nausea or vomiting as assigned by the caller (Barbosa 2013). true scores 1. magent does not take a symptom history."
      },
      "testicular_swelling": {
       "type": "boolean",
       "description": "Testicular swelling as assigned by the caller (Barbosa 2013). true scores 2. magent does not examine the patient."
      },
      "absent_cremasteric_reflex": {
       "type": "boolean",
       "description": "Absent cremasteric reflex as assigned by the caller (Barbosa 2013). true scores 1. magent does not examine the patient."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twist-score-calculator-barbosa-2013-testicular-torsion-risk-7081c402/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
