# magent TRiP(cast) VTE Risk Calculator

> magent TRiP(cast) VTE Risk Calculator 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 Nemeth 2020 TRiP(cast) score to estimate venous thromboembolism risk after lower-limb trauma or immobilization, returning a numeric score and high-risk flag at ≥7.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/trip_cast
- 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/magent-trip-cast-vte-risk-calculator-fed75211
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MG6q2MJt0jX_TuYYgGdzG

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 magent-trip-cast-vte-risk-calculator-fed75211
```

Example prompt: My patient is a 58-year-old male with a BMI of 28, who sustained a tibial shaft fracture — high trauma category — and is immobilized in an upper-leg cast. He has no family or personal history of VTE, is not on hormonal therapy, has no cancer, is not pregnant, has no recent surgery or other immobilization, no comorbidities, and no chronic venous insufficiency. Can you run the TRiP(cast) VTE risk score for him?

## When to prefer this

Use this endpoint when you need to implement the specific Nemeth 2020 TRiP(cast) validated clinical decision-support score for VTE risk in patients with lower-limb trauma or cast immobilization. Prefer it over generic DVT risk tools (e.g., Wells score) when the clinical context is specifically lower-limb orthopedic injury or cast immobilization. The caller must pre-assign trauma category and immobilization type; this endpoint does not interpret imaging.

## Known failure modes

- Missing required query parameters returns a 400 error
- Invalid enum values for trauma (not high/intermediate/low) or sex (not female/male) return a validation error
- BMI outside the 10–80 range may be rejected or produce unexpected output
- Age outside 1–120 may be rejected
- Boolean flags passed as strings instead of true/false may cause parsing errors
- Caller incorrectly assigns trauma category (magent does not classify radiographs) leading to incorrect scores

## How this service works

Nemeth 2020 TRiP(cast) VTE risk after lower-limb trauma immobilization. Caller-assigned Table 1 trauma (high 3, intermediate 2, low 1) and immobilization (upper_leg 3, lower_leg 2, foot_cast 1, other_plantar 0) plus age, sex, BMI, and nine flags. Max 34. High-risk at score >=7. Not a diagnosis or thromboprophylaxis order. magent does not classify the radiograph.

## Output

Returns the TRiP(cast) total score (integer 0–34) computed from all supplied parameters, a boolean or flag indicating high VTE risk (score ≥7), and optionally component subscores for trauma, immobilization, age, sex, BMI, and each clinical risk flag. Does not produce a diagnosis or thromboprophylaxis order.

## 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": [
      "trauma",
      "immobilization",
      "age",
      "sex",
      "bmi_kg_m2",
      "family_history_vte",
      "personal_history_vte_or_major_thrombophilia",
      "hormonal_estrogenic_treatment",
      "cancer_within_5y",
      "pregnancy_or_puerperium",
      "other_immobilization_3mo",
      "surgery_within_3mo",
      "comorbidity",
      "chronic_venous_insufficiency"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 1-120). Nemeth 2020: <35 scores 0; ≥35 and <55 scores 1; ≥55 and <75 scores 2; ≥75 scores 3. Age 35 scores 1; 55 scores 2; 75 scores 3."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "female or male. Male scores 1; female scores 0 (Nemeth 2020 Table 1)."
      },
      "trauma": {
       "enum": [
        "high",
        "intermediate",
        "low"
       ],
       "type": "string",
       "description": "Mutually exclusive Nemeth 2020 Table 1 trauma category as assigned by the caller (choose the most severe). high scores 3 (paper examples: fibula/tibia shaft, tibial plateau, Achilles rupture). intermediate scores 2 (bi/tri-malleolar ankle, patellar fracture, ankle dislocation/Lisfranc, severe knee sprain with edema/haemarthrosis, grade 3 ankle sprain). low scores 1 (single malleolar, patellar dislocation, (meta)tarsal/forefoot fracture, grade 1-2 sprain, significant muscle injury). magent does not classify the trauma radiograph."
      },
      "bmi_kg_m2": {
       "type": "number",
       "description": "Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI from height and weight. Nemeth 2020: <25 scores 0; ≥25 and <35 scores 1; ≥35 scores 2. 25.0 scores 1; 35.0 scores 2."
      },
      "comorbidity": {
       "type": "boolean",
       "description": "Heart failure, rheumatoid arthritis, C
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-trip-cast-vte-risk-calculator-fed75211/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)
