# magent Villalta Scale (Kahn 2009) PTS Calculator

> magent Villalta Scale (Kahn 2009) PTS 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 Kahn 2009 Villalta scale score for post-thrombotic syndrome (PTS) from five caller-assigned symptoms and six signs, returning total score, PTS classification, and severity band.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/villalta
- 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-villalta-scale-kahn-2009-pts-calculator-1ffe4ac5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_la0gmW8L9Kxbnv0KMZqB9

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-villalta-scale-kahn-2009-pts-calculator-1ffe4ac5
```

Example prompt: Calculate the Kahn 2009 Villalta score for a patient with pain 2, cramps 1, heaviness 2, pruritus 0, paresthesia 1, pretibial edema 2, skin induration 1, hyperpigmentation 1, venous ectasia 0, redness 0, pain on calf compression 1, and no venous ulcer — tell me the total score and whether they have PTS and how severe.

## When to prefer this

Use this endpoint when you need to apply the specific Kahn 2009 / ISTH SSC Villalta scale to classify post-thrombotic syndrome severity after deep vein thrombosis. Choose this over CEAP, VCSS, or Ginsberg PTS criteria — this endpoint implements only the Kahn 2009 Villalta formulation and explicitly is not those alternatives. Ideal for clinical decision support pipelines where a caller (clinician or structured assessment form) supplies the pre-assessed scores for each of the five symptoms and six signs.

## Known failure modes

- Missing required query parameter returns validation error
- Integer values outside 0–3 range rejected
- Boolean ulcer field passed as non-boolean causes parse error
- All-zero inputs with ulcer=false returns score 0 with no PTS (none band)

## How this service works

Kahn 2009 Villalta scale (ISTH SSC): five caller-assigned symptoms and six signs, each 0-3 (none/mild/moderate/severe), summed 0-33. Venous ulcer is a separate boolean and is not added as 15 points. PTS if score ≥5 or ulcer; bands none 0-4 (no ulcer), mild 5-9, moderate 10-14, severe if ≥15 or ulcer. magent does not examine the limb. Not CEAP, not VCSS, not Ginsberg PTS.

## Output

Returns the numeric Villalta total score (0–33, summing all eleven items), the binary PTS classification (present if score ≥5 or venous ulcer is true), and the severity band: none (0–4, no ulcer), mild (5–9), moderate (10–14), severe (≥15 or venous ulcer present). The venous ulcer flag is not added as 15 points to the numeric score but independently forces the severe classification.

## 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": [
      "pain",
      "cramps",
      "heaviness",
      "pruritus",
      "paresthesia",
      "pretibial_edema",
      "skin_induration",
      "hyperpigmentation",
      "venous_ectasia",
      "redness",
      "pain_on_calf_compression",
      "ulcer"
     ],
     "properties": {
      "pain": {
       "type": "integer",
       "description": "Caller-assigned Kahn 2009 Villalta symptom pain (integer 0-3: 0 none, 1 mild, 2 moderate, 3 severe). magent does not examine the limb."
      },
      "ulcer": {
       "type": "boolean",
       "description": "Caller-assigned venous ulcer (true or false). Presence classifies PTS as severe (Kahn 2009) and does not add 15 to the numeric score. magent does not examine the limb."
      },
      "cramps": {
       "type": "integer",
       "description": "Caller-assigned Kahn 2009 Villalta symptom cramps (integer 0-3: 0 none, 1 mild, 2 moderate, 3 severe). magent does not examine the limb."
      },
      "redness": {
       "type": "integer",
       "description": "Caller-assigned Kahn 2009 Villalta sign redness (integer 0-3: 0 none, 1 mild, 2 moderate, 3 severe). magent does not examine the limb."
      },
      "pruritus": {
       "type": "integer",
       "description": "Caller-assigned Kahn 2009 Villalta symptom pruritus (integer 0-3: 0 none, 1 mild, 2 moderate, 3 severe). magent does not examine the limb."
      },
      "heaviness": {
       "type": "integer",
       "description": "Caller-assigned Kahn 2009 Villalta symptom heaviness (integer 0-3: 0 none, 1 mild, 2 moderate, 3 severe). magent does not examine the limb."
      },
      "paresthesia": {
       "type": "integer",
       "description": "Caller-assigned Kahn 2009 Villalta symptom paresthesia (integer 0-3: 0 none, 1 mild, 2 moderate, 3 severe). magent does not examine the limb."
      },
      "venous_ectasia": {
       "type": "integer",
       "description": "Caller-assigned Kahn 2009
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-villalta-scale-kahn-2009-pts-calculator-1ffe4ac5/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)
