# magent MDI (Major Depression Inventory) Score Calculator

> magent MDI (Major Depression Inventory) Score 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 Bech 2001 Major Depression Inventory (MDI) total score (0–50) from 12 caller-assigned integer items, applying the published psychomotor-max and appetite-max rules.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/mdi
- 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-mdi-major-depression-inventory-score-calculator-5d8b5857
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GZUrA1lQCL-T0FVamL4iE

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-mdi-major-depression-inventory-score-calculator-5d8b5857
```

Example prompt: Calculate the MDI score for a patient who rated the last 2 weeks as: low spirits 3, lost interest 2, lack of energy 4, low self-confidence 2, guilt 1, life not worth living 0, concentration 3, restless 2, subdued 4, sleep 3, reduced appetite 1, increased appetite 2.

## When to prefer this

Use this endpoint when you need a programmatically correct MDI total score that faithfully applies the Bech 2001 psychomotor-max and appetite-max rules without any interview logic, band mapping, PHQ-9, QIDS, or HAM-D conversion. Prefer it over manual calculation to avoid the common error of summing both psychomotor sub-items or both appetite sub-items instead of taking the maximum of each pair.

## Known failure modes

- Missing any of the 12 required query parameters returns a validation error
- Any item value outside the integer range 0–5 is rejected
- Non-integer (float or string) values for item parameters cause a parsing error
- Network or gateway errors at the provider return HTTP 5xx

## How this service works

Bech 2001 MDI: 12 caller-assigned integers 0-5 (at no time to all the time, last 2 weeks) covering 10 ICD-10/DSM-IV depression symptoms. Psychomotor (restless vs subdued) and appetite (reduced vs increased) each add the max of the pair, not the sum. Total 0-50. This paper's optimal total-score cutoff is 26. magent does not interview, apply Olsen 2003 HAM-D mapped bands, DSM-IV/ICD-10 algorithms, PHQ-9, QIDS, or Hamilton depression. Not a diagnosis.

## Output

Returns the MDI total score (integer 0–50) computed per Bech 2001 rules: items 1–7 and 9 are summed directly; the psychomotor item contributes max(restless, subdued); the appetite item contributes max(reduced_appetite, increased_appetite). The paper's optimal cutoff for caseness is 26.

## 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": [
      "low_spirits",
      "lost_interest",
      "lack_of_energy",
      "low_self_confidence",
      "guilt",
      "life_not_worth_living",
      "concentration",
      "restless",
      "subdued",
      "sleep",
      "reduced_appetite",
      "increased_appetite"
     ],
     "properties": {
      "guilt": {
       "type": "integer",
       "description": "Caller-assigned Bech 2001 MDI item 5 (integer 0-5): bad conscience or feelings of guilt. Adds as published. magent does not interpret the item."
      },
      "sleep": {
       "type": "integer",
       "description": "Caller-assigned Bech 2001 MDI item 9 (integer 0-5): trouble sleeping at night. Adds as published. magent does not interpret the item."
      },
      "subdued": {
       "type": "integer",
       "description": "Caller-assigned Bech 2001 MDI item 8b (integer 0-5): felt subdued or slowed down. The psychomotor item is the maximum of restless and subdued, not the sum. magent does not interpret the item."
      },
      "restless": {
       "type": "integer",
       "description": "Caller-assigned Bech 2001 MDI item 8a (integer 0-5): felt very restless. The psychomotor item is the maximum of restless and subdued, not the sum. magent does not interpret the item."
      },
      "low_spirits": {
       "type": "integer",
       "description": "Caller-assigned Bech 2001 MDI item 1 (integer 0-5): felt low in spirits or sad over the last 2 weeks (0 at no time, 1 some of the time, 2 slightly less than half of the time, 3 slightly more than half of the time, 4 most of the time, 5 all the time). Adds as published. magent does not interpret the item."
      },
      "concentration": {
       "type": "integer",
       "description": "Caller-assigned Bech 2001 MDI item 7 (integer 0-5): difficulty concentrating, for example when reading the newspaper or watching television. Adds as published. magent does not interpret the item."
      }
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-mdi-major-depression-inventory-score-calculator-5d8b5857/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)
