{
  "x402Version": 2,
  "id": 39043,
  "slug": "39043",
  "resource": "https://api.magentlab.com/api/calc/mdi",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "concentration": 0,
                "guilt": 0,
                "increased_appetite": 0,
                "lack_of_energy": 0,
                "life_not_worth_living": 0,
                "lost_interest": 0,
                "low_self_confidence": 0,
                "low_spirits": 0,
                "reduced_appetite": 0,
                "restless": 0,
                "sleep": 0,
                "subdued": 0
              },
              {
                "concentration": 0,
                "guilt": 0,
                "increased_appetite": 0,
                "lack_of_energy": 0,
                "life_not_worth_living": 0,
                "lost_interest": 0,
                "low_self_confidence": 0,
                "low_spirits": 0,
                "reduced_appetite": 0,
                "restless": 0,
                "sleep": 0,
                "subdued": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "appetite_points": 0,
                "at_or_above_cutoff": false,
                "citation": {
                  "authors": "Bech P, Rasmussen NA, Olsen LR, Noerholm V, Abildgaard W",
                  "doi": "10.1016/s0165-0327(00)00309-8",
                  "id": "bech-2001",
                  "pmid": "11578668",
                  "source": "J Affect Disord. 2001;66(2-3):159-164",
                  "title": "The sensitivity and specificity of the Major Depression Inventory, using the Present State Examination as the index of diagnostic validity"
                },
                "components": [
                  {
                    "factor": "low_spirits",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "lost_interest",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "lack_of_energy",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "low_self_confidence",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "guilt",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "life_not_worth_living",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "concentration",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "psychomotor",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "sleep",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "appetite",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "mdi",
                "formula_expression": "MDI = low_spirits + lost_interest + lack_of_energy + low_self_confidence + guilt + life_not_worth_living + concentration + max(restless, subdued) + sleep + max(reduced_appetite, increased_appetite); each caller-assigned 0-5; ten scored items; max 50; Bech 2001 optimal total-score cutoff 26",
                "max_score": 50,
                "psychomotor_points": 0,
                "score": 0
              },
              {
                "appetite_points": 0,
                "at_or_above_cutoff": false,
                "citation": {
                  "authors": "Bech P, Rasmussen NA, Olsen LR, Noerholm V, Abildgaard W",
                  "doi": "10.1016/s0165-0327(00)00309-8",
                  "id": "bech-2001",
                  "pmid": "11578668",
                  "source": "J Affect Disord. 2001;66(2-3):159-164",
                  "title": "The sensitivity and specificity of the Major Depression Inventory, using the Present State Examination as the index of diagnostic validity"
                },
                "components": [
                  {
                    "factor": "low_spirits",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "lost_interest",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "lack_of_energy",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "low_self_confidence",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "guilt",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "life_not_worth_living",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "concentration",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "psychomotor",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "sleep",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "appetite",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "mdi",
                "formula_expression": "MDI = low_spirits + lost_interest + lack_of_energy + low_self_confidence + guilt + life_not_worth_living + concentration + max(restless, subdued) + sleep + max(reduced_appetite, increased_appetite); each caller-assigned 0-5; ten scored items; max 50; Bech 2001 optimal total-score cutoff 26",
                "max_score": 50,
                "psychomotor_points": 0,
                "score": 0
              }
            ],
            "path": "/api/calc/mdi"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "concentration": {
                          "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.",
                          "type": "integer"
                        },
                        "guilt": {
                          "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.",
                          "type": "integer"
                        },
                        "increased_appetite": {
                          "description": "Caller-assigned Bech 2001 MDI item 10b (integer 0-5): increased appetite. The appetite item is the maximum of reduced_appetite and increased_appetite, not the sum. magent does not interpret the item.",
                          "type": "integer"
                        },
                        "lack_of_energy": {
                          "description": "Caller-assigned Bech 2001 MDI item 3 (integer 0-5): lacking in energy and strength. Adds as published. magent does not interpret the item.",
                          "type": "integer"
                        },
                        "life_not_worth_living": {
                          "description": "Caller-assigned Bech 2001 MDI item 6 (integer 0-5): felt that life was not worth living. Adds as published. magent does not interpret the item.",
                          "type": "integer"
                        },
                        "lost_interest": {
                          "description": "Caller-assigned Bech 2001 MDI item 2 (integer 0-5): lost interest in daily activities. Adds as published. magent does not interpret the item.",
                          "type": "integer"
                        },
                        "low_self_confidence": {
                          "description": "Caller-assigned Bech 2001 MDI item 4 (integer 0-5): felt less self-confident. Adds as published. magent does not interpret the item.",
                          "type": "integer"
                        },
                        "low_spirits": {
                          "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.",
                          "type": "integer"
                        },
                        "reduced_appetite": {
                          "description": "Caller-assigned Bech 2001 MDI item 10a (integer 0-5): reduced appetite. The appetite item is the maximum of reduced_appetite and increased_appetite, not the sum. magent does not interpret the item.",
                          "type": "integer"
                        },
                        "restless": {
                          "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.",
                          "type": "integer"
                        },
                        "sleep": {
                          "description": "Caller-assigned Bech 2001 MDI item 9 (integer 0-5): trouble sleeping at night. Adds as published. magent does not interpret the item.",
                          "type": "integer"
                        },
                        "subdued": {
                          "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.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "low_spirits",
                        "lost_interest",
                        "lack_of_energy",
                        "low_self_confidence",
                        "guilt",
                        "life_not_worth_living",
                        "concentration",
                        "restless",
                        "subdued",
                        "sleep",
                        "reduced_appetite",
                        "increased_appetite"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "mdi",
    "depression",
    "screening",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:21:22.379Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T08:21:22.23Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "concentration": 0,
                  "guilt": 0,
                  "increased_appetite": 0,
                  "lack_of_energy": 0,
                  "life_not_worth_living": 0,
                  "lost_interest": 0,
                  "low_self_confidence": 0,
                  "low_spirits": 0,
                  "reduced_appetite": 0,
                  "restless": 0,
                  "sleep": 0,
                  "subdued": 0
                },
                {
                  "concentration": 0,
                  "guilt": 0,
                  "increased_appetite": 0,
                  "lack_of_energy": 0,
                  "life_not_worth_living": 0,
                  "lost_interest": 0,
                  "low_self_confidence": 0,
                  "low_spirits": 0,
                  "reduced_appetite": 0,
                  "restless": 0,
                  "sleep": 0,
                  "subdued": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "appetite_points": 0,
                  "at_or_above_cutoff": false,
                  "citation": {
                    "authors": "Bech P, Rasmussen NA, Olsen LR, Noerholm V, Abildgaard W",
                    "doi": "10.1016/s0165-0327(00)00309-8",
                    "id": "bech-2001",
                    "pmid": "11578668",
                    "source": "J Affect Disord. 2001;66(2-3):159-164",
                    "title": "The sensitivity and specificity of the Major Depression Inventory, using the Present State Examination as the index of diagnostic validity"
                  },
                  "components": [
                    {
                      "factor": "low_spirits",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "lost_interest",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "lack_of_energy",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "low_self_confidence",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "guilt",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "life_not_worth_living",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "concentration",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "psychomotor",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "sleep",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "appetite",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "mdi",
                  "formula_expression": "MDI = low_spirits + lost_interest + lack_of_energy + low_self_confidence + guilt + life_not_worth_living + concentration + max(restless, subdued) + sleep + max(reduced_appetite, increased_appetite); each caller-assigned 0-5; ten scored items; max 50; Bech 2001 optimal total-score cutoff 26",
                  "max_score": 50,
                  "psychomotor_points": 0,
                  "score": 0
                },
                {
                  "appetite_points": 0,
                  "at_or_above_cutoff": false,
                  "citation": {
                    "authors": "Bech P, Rasmussen NA, Olsen LR, Noerholm V, Abildgaard W",
                    "doi": "10.1016/s0165-0327(00)00309-8",
                    "id": "bech-2001",
                    "pmid": "11578668",
                    "source": "J Affect Disord. 2001;66(2-3):159-164",
                    "title": "The sensitivity and specificity of the Major Depression Inventory, using the Present State Examination as the index of diagnostic validity"
                  },
                  "components": [
                    {
                      "factor": "low_spirits",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "lost_interest",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "lack_of_energy",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "low_self_confidence",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "guilt",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "life_not_worth_living",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "concentration",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "psychomotor",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "sleep",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "appetite",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "mdi",
                  "formula_expression": "MDI = low_spirits + lost_interest + lack_of_energy + low_self_confidence + guilt + life_not_worth_living + concentration + max(restless, subdued) + sleep + max(reduced_appetite, increased_appetite); each caller-assigned 0-5; ten scored items; max 50; Bech 2001 optimal total-score cutoff 26",
                  "max_score": 50,
                  "psychomotor_points": 0,
                  "score": 0
                }
              ],
              "path": "/api/calc/mdi"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "concentration": {
                            "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.",
                            "type": "integer"
                          },
                          "guilt": {
                            "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.",
                            "type": "integer"
                          },
                          "increased_appetite": {
                            "description": "Caller-assigned Bech 2001 MDI item 10b (integer 0-5): increased appetite. The appetite item is the maximum of reduced_appetite and increased_appetite, not the sum. magent does not interpret the item.",
                            "type": "integer"
                          },
                          "lack_of_energy": {
                            "description": "Caller-assigned Bech 2001 MDI item 3 (integer 0-5): lacking in energy and strength. Adds as published. magent does not interpret the item.",
                            "type": "integer"
                          },
                          "life_not_worth_living": {
                            "description": "Caller-assigned Bech 2001 MDI item 6 (integer 0-5): felt that life was not worth living. Adds as published. magent does not interpret the item.",
                            "type": "integer"
                          },
                          "lost_interest": {
                            "description": "Caller-assigned Bech 2001 MDI item 2 (integer 0-5): lost interest in daily activities. Adds as published. magent does not interpret the item.",
                            "type": "integer"
                          },
                          "low_self_confidence": {
                            "description": "Caller-assigned Bech 2001 MDI item 4 (integer 0-5): felt less self-confident. Adds as published. magent does not interpret the item.",
                            "type": "integer"
                          },
                          "low_spirits": {
                            "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.",
                            "type": "integer"
                          },
                          "reduced_appetite": {
                            "description": "Caller-assigned Bech 2001 MDI item 10a (integer 0-5): reduced appetite. The appetite item is the maximum of reduced_appetite and increased_appetite, not the sum. magent does not interpret the item.",
                            "type": "integer"
                          },
                          "restless": {
                            "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.",
                            "type": "integer"
                          },
                          "sleep": {
                            "description": "Caller-assigned Bech 2001 MDI item 9 (integer 0-5): trouble sleeping at night. Adds as published. magent does not interpret the item.",
                            "type": "integer"
                          },
                          "subdued": {
                            "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.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "low_spirits",
                          "lost_interest",
                          "lack_of_energy",
                          "low_self_confidence",
                          "guilt",
                          "life_not_worth_living",
                          "concentration",
                          "restless",
                          "subdued",
                          "sleep",
                          "reduced_appetite",
                          "increased_appetite"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}