{"uid":"cap_GZUrA1lQCL-T0FVamL4iE","slug":"magent-mdi-major-depression-inventory-score-calculator-5d8b5857","name":"magent MDI (Major Depression Inventory) Score Calculator","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.","url":"https://api.magentlab.com/api/calc/mdi","method":"GET","headers":{},"bodySchema":{"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."},"lost_interest":{"type":"integer","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."},"lack_of_energy":{"type":"integer","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."},"reduced_appetite":{"type":"integer","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."},"increased_appetite":{"type":"integer","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."},"low_self_confidence":{"type":"integer","description":"Caller-assigned Bech 2001 MDI item 4 (integer 0-5): felt less self-confident. Adds as published. magent does not interpret the item."},"life_not_worth_living":{"type":"integer","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."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bTn-1QBNFwJA91eG3_ogt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Scoring a completed MDI questionnaire","prompt":"A patient just filled out the MDI and gave these scores for the past 2 weeks: low spirits 4, lost interest 3, lack of energy 4, low self-confidence 2, guilt 2, life not worth living 1, concentration 3, restless 1, subdued 3, sleep 4, reduced appetite 2, increased appetite 0. What is their MDI total?"},{"title":"Checking if score exceeds clinical cutoff","prompt":"Can you compute the MDI total for these symptom ratings — low spirits 5, lost interest 4, lack of energy 5, low self-confidence 3, guilt 3, life not worth living 2, concentration 4, restless 0, subdued 5, sleep 4, reduced appetite 3, increased appetite 0 — and tell me whether it clears the Bech 2001 cutoff of 26?"},{"title":"Longitudinal depression score tracking","prompt":"My app collected MDI ratings this week: low spirits 2, lost interest 1, lack of energy 2, low self-confidence 1, guilt 0, life not worth living 0, concentration 2, restless 3, subdued 1, sleep 2, reduced appetite 0, increased appetite 1. Please calculate the MDI score so I can log it alongside last month's result."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:03:34.409Z","isFirstParty":false}