# WIfI Clinical Staging Calculator (Mills 2014)

> WIfI Clinical Staging Calculator (Mills 2014) 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-15).

Computes and labels the Mills 2014 WIfI (Wound, Ischemia, foot Infection) clinical stage from three caller-assigned integer grades (0–3 each) and returns a formatted W#-I#-fI# label.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/wifi
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wifi-clinical-staging-calculator-mills-2014-8e8e2a87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_etjzZud59n07JOgAxTvpy

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 wifi-clinical-staging-calculator-mills-2014-8e8e2a87
```

Example prompt: Calculate the WIfI stage for my patient: wound grade 2 (deeper ulcer with exposed bone), ischemia grade 1 (mild), and foot infection grade 0 (no infection) — give me the W#-I#-fI# label.

## When to prefer this

Use this endpoint when you need to encode caller-assigned Mills 2014 WIfI grades into the standardized W#-I#-fI# label for vascular surgery documentation, EHR entry, or clinical staging workflows. This is not PEDIS scoring and does not interpret ABI or wound images — the caller must supply all three grades from clinical assessment. Prefer this over manual label construction to ensure correct formatting and consistent grade encoding.

## Known failure modes

- Grade values outside 0–3 integer range will result in a validation error
- Missing any of the three required query parameters (wound, ischemia, foot_infection) returns a 400 error
- Non-integer values for grade parameters cause schema validation failure
- Payment not included or insufficient USDC results in 402 Payment Required

## How this service works

Mills 2014 SVS WIfI: three independent caller-assigned grades, not a summed total. Wound 0-3 (no ulcer; small shallow distal ulcer; deeper ulcer or digital gangrene; extensive ulcer or gangrene). Ischemia 0-3 (none; mild; moderate; severe). Foot infection 0-3 (none; skin/subcutaneous; deeper without SIRS; with SIRS). Label like W0-I0-fI0. Caller assigns grades. Not a medical device, not PEDIS, and not an amputation or revascularization order; magent does not inspect wounds or measure ABI.

## Output

Returns a formatted WIfI label in W#-I#-fI# notation (e.g. W2-I1-fI0) representing the three independently assigned Mills 2014 grades for wound, ischemia, and foot infection. The response encodes the caller-supplied grades into the standardized SVS WIfI clinical staging format without performing any clinical inspection, measurement, or diagnosis.

## 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": [
      "wound",
      "ischemia",
      "foot_infection"
     ],
     "properties": {
      "wound": {
       "type": "integer",
       "description": "Wound grade 0-3 as assigned by the caller (Mills 2014): 0 no ulcer and no gangrene; 1 small, shallow ulcer(s) on the distal leg or foot without gangrene; 2 deeper ulcer with exposed bone, joint, or tendon, or gangrene limited to digits; 3 extensive deep ulcer involving forefoot and/or midfoot, full-thickness heel ulcer, or extensive gangrene. magent does not inspect wounds."
      },
      "ischemia": {
       "type": "integer",
       "description": "Ischemia grade 0-3 as assigned by the caller (Mills 2014): 0 none; 1 mild; 2 moderate; 3 severe. magent does not measure ABI, ankle pressure, or toe pressure and does not compute this grade from pressures."
      },
      "foot_infection": {
       "type": "integer",
       "description": "Foot infection grade 0-3 as assigned by the caller (Mills 2014): 0 no signs of infection; 1 infection involving only skin and subcutaneous tissue; 2 infection deeper than skin (abscess, osteomyelitis, septic arthritis, fasciitis) without SIRS; 3 infection with SIRS. magent does not diagnose infection."
      }
     }
    }
   },
   "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/wifi-clinical-staging-calculator-mills-2014-8e8e2a87/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)
