MAGENT

Emergency · LIVE

Montgomery-Åsberg depression rating scale

MADRS

Sum ten caller-assigned Montgomery 1979 MADRS items (each integer 0-6) and return the published 0-60 total. Does not apply later total-score severity bands.

LIVE $0.005 USDC GET /api/calc/madrs

Markdown: /docs/madrs.md · Canonical: https://magentlab.com/docs/madrs

Not a medical device. Not a diagnosis, dose, or listing recommendation.

What it computes

Sum ten caller-assigned Montgomery 1979 MADRS items (each integer 0-6) and return the published 0-60 total. Does not apply later total-score severity bands.

When to use

When an agent already has Montgomery 1979 integers 0-6 for the ten items and needs the published total. magent does not interview the patient, diagnose depression, score Hamilton 1960, score PHQ-9, or apply later 0-6/7-19/20-34/35-60 cutoffs.

When not to use

  • Not a medical device and not a depression diagnosis or treatment order.
  • Each of the ten items is a caller-assigned integer 0-6. magent does not interview the patient.
  • This is Montgomery 1979 MADRS only (ten items; max 60). magent does not score Hamilton 1960 or PHQ-9.
  • Montgomery 1979 published no total-score severity bands. This tool returns score and max_score only. It does not apply later 0-6/7-19/20-34/35-60 website or review cutoffs.

Formula

MADRS = apparent_sadness + reported_sadness + inner_tension + reduced_sleep + reduced_appetite + concentration_difficulties + lassitude + inability_to_feel + pessimistic_thoughts + suicidal_thoughts; each caller-assigned 0-6; Montgomery 1979 ten items; max 60; no total-score severity bands

Citation

Title
A new depression scale designed to be sensitive to change
Authors
Montgomery SA, Åsberg M
Source
Br J Psychiatry. 1979;134:382-389
DOI
10.1192/bjp.134.4.382

Worked example

All items 0

Given: apparent_sadness=0concentration_difficulties=0inability_to_feel=0inner_tension=0lassitude=0pessimistic_thoughts=0reduced_appetite=0reduced_sleep=0reported_sadness=0suicidal_thoughts=0

  1. apparent_sadness, reported_sadness, inner_tension, reduced_sleep, reduced_appetite, concentration_difficulties, lassitude, inability_to_feel, pessimistic_thoughts, and suicidal_thoughts are 0 as assigned by the caller
  2. Score = 0 (max 60). Montgomery 1979 published no total-score severity band.

All items 6

Given: apparent_sadness=6concentration_difficulties=6inability_to_feel=6inner_tension=6lassitude=6pessimistic_thoughts=6reduced_appetite=6reduced_sleep=6reported_sadness=6suicidal_thoughts=6

  1. each of the ten Montgomery 1979 items is 6 as assigned by the caller
  2. Score = 60 (max 60). No total-score severity band.

Also searched as

  • MADRS
  • Montgomery-Åsberg Depression Rating Scale
  • Montgomery Asberg depression scale
  • Montgomery 1979 depression
  • MADRS score
  • 10-item MADRS
  • Åsberg depression rating

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/madrs?apparent_sadness=0&reported_sadness=0&inner_tension=0&reduced_sleep=0&reduced_appetite=0&concentration_difficulties=0&lassitude=0&inability_to_feel=0&pessimistic_thoughts=0&suicidal_thoughts=0

Full URL: https://api.magentlab.com/api/calc/madrs?apparent_sadness=0&reported_sadness=0&inner_tension=0&reduced_sleep=0&reduced_appetite=0&concentration_difficulties=0&lassitude=0&inability_to_feel=0&pessimistic_thoughts=0&suicidal_thoughts=0

Call

Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params return HTTP 400 before any quote or charge.

curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/madrs?apparent_sadness=0&reported_sadness=0&inner_tension=0&reduced_sleep=0&reduced_appetite=0&concentration_difficulties=0&lassitude=0&inability_to_feel=0&pessimistic_thoughts=0&suicidal_thoughts=0"

Parameters

Name Type Required Description
apparent_sadness integer required Caller-assigned Montgomery 1979 apparent sadness (integer 0-6): despondency, gloom, and despair reflected in speech, facial expression, and posture, rated by depth and inability to brighten up. magent does not interview the patient.
reported_sadness integer required Caller-assigned Montgomery 1979 reported sadness (integer 0-6): reports of depressed mood, low spirits, despondency, or feeling beyond help, regardless of appearance. magent does not interview the patient.
inner_tension integer required Caller-assigned Montgomery 1979 inner tension (integer 0-6): ill-defined discomfort, edginess, inner turmoil, or mental tension mounting to panic, dread, or anguish. magent does not interview the patient.
reduced_sleep integer required Caller-assigned Montgomery 1979 reduced sleep (integer 0-6): reduced duration or depth of sleep compared with the subject's own normal pattern when well. magent does not interview the patient.
reduced_appetite integer required Caller-assigned Montgomery 1979 reduced appetite (integer 0-6): loss of desire for food or the need to force oneself to eat compared with when well. magent does not interview the patient.
concentration_difficulties integer required Caller-assigned Montgomery 1979 concentration difficulties (integer 0-6): difficulty collecting one's thoughts mounting to incapacitating lack of concentration. magent does not interview the patient.
lassitude integer required Caller-assigned Montgomery 1979 lassitude (integer 0-6): difficulty getting started or slowness initiating and performing everyday activities. magent does not interview the patient.
inability_to_feel integer required Caller-assigned Montgomery 1979 inability to feel (integer 0-6): reduced interest in surroundings or activities that normally give pleasure, or reduced ability to react with adequate emotion. magent does not interview the patient.
pessimistic_thoughts integer required Caller-assigned Montgomery 1979 pessimistic thoughts (integer 0-6): thoughts of guilt, inferiority, self-reproach, sinfulness, remorse, or ruin. magent does not interview the patient.
suicidal_thoughts integer required Caller-assigned Montgomery 1979 suicidal thoughts (integer 0-6): feeling that life is not worth living, that a natural death would be welcome, suicidal thoughts, or preparations for suicide. A suicide attempt should not in itself influence the rating. magent does not interview the patient.

Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

POST /api/calc/madrs Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 PREVIEW

  • 1 to 25 items. Each item uses the same keys as the GET query parameters.
  • POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
  • The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
  • HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
  • Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
  • x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request (fixture)

{
  "items": [
    {
      "apparent_sadness": "0",
      "concentration_difficulties": "0",
      "inability_to_feel": "0",
      "inner_tension": "0",
      "lassitude": "0",
      "pessimistic_thoughts": "0",
      "reduced_appetite": "0",
      "reduced_sleep": "0",
      "reported_sadness": "0",
      "suicidal_thoughts": "0"
    },
    {
      "apparent_sadness": "0",
      "concentration_difficulties": "0",
      "inability_to_feel": "0",
      "inner_tension": "0",
      "lassitude": "0",
      "pessimistic_thoughts": "0",
      "reduced_appetite": "0",
      "reduced_sleep": "0",
      "reported_sadness": "0",
      "suicidal_thoughts": "0"
    }
  ]
}

Open bulk paywall →

Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.

Example 200 (fixture)

{
  "count": 2,
  "path": "/api/calc/madrs",
  "items": [
    {
      "components": [
        {
          "value": 0,
          "factor": "apparent_sadness",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "reported_sadness",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "inner_tension",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "reduced_sleep",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "reduced_appetite",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "concentration_difficulties",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "lassitude",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "inability_to_feel",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pessimistic_thoughts",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "suicidal_thoughts",
          "points": 0,
          "present": true
        }
      ],
      "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.",
      "citation": {
        "authors": "Montgomery SA, Åsberg M",
        "doi": "10.1192/bjp.134.4.382",
        "id": "montgomery-1979",
        "pmid": "444788",
        "source": "Br J Psychiatry. 1979;134:382-389",
        "title": "A new depression scale designed to be sensitive to change"
      },
      "formula": "madrs",
      "formula_expression": "MADRS = apparent_sadness + reported_sadness + inner_tension + reduced_sleep + reduced_appetite + concentration_difficulties + lassitude + inability_to_feel + pessimistic_thoughts + suicidal_thoughts; each caller-assigned 0-6; Montgomery 1979 ten items; max 60; no total-score severity bands",
      "max_score": 60,
      "score": 0
    },
    {
      "components": [
        {
          "value": 0,
          "factor": "apparent_sadness",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "reported_sadness",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "inner_tension",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "reduced_sleep",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "reduced_appetite",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "concentration_difficulties",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "lassitude",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "inability_to_feel",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pessimistic_thoughts",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "suicidal_thoughts",
          "points": 0,
          "present": true
        }
      ],
      "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.",
      "citation": {
        "authors": "Montgomery SA, Åsberg M",
        "doi": "10.1192/bjp.134.4.382",
        "id": "montgomery-1979",
        "pmid": "444788",
        "source": "Br J Psychiatry. 1979;134:382-389",
        "title": "A new depression scale designed to be sensitive to change"
      },
      "formula": "madrs",
      "formula_expression": "MADRS = apparent_sadness + reported_sadness + inner_tension + reduced_sleep + reduced_appetite + concentration_difficulties + lassitude + inability_to_feel + pessimistic_thoughts + suicidal_thoughts; each caller-assigned 0-6; Montgomery 1979 ten items; max 60; no total-score severity bands",
      "max_score": 60,
      "score": 0
    }
  ]
}

Response

Field Type Description
formula string madrs
formula_expression string Exact expression used
score integer Montgomery 1979 sum of ten caller-assigned 0-6 items (total 0-60)
max_score integer Always 60
components array Per-item caller-assigned points
citation object Montgomery and Åsberg Br J Psychiatry 1979 citation
disclaimer string Not-a-device notice

Example JSON

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "components": [
    {
      "value": 0,
      "factor": "apparent_sadness",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "reported_sadness",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "inner_tension",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "reduced_sleep",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "reduced_appetite",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "concentration_difficulties",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "lassitude",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "inability_to_feel",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "pessimistic_thoughts",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "suicidal_thoughts",
      "points": 0,
      "present": true
    }
  ],
  "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.",
  "citation": {
    "authors": "Montgomery SA, Åsberg M",
    "doi": "10.1192/bjp.134.4.382",
    "id": "montgomery-1979",
    "pmid": "444788",
    "source": "Br J Psychiatry. 1979;134:382-389",
    "title": "A new depression scale designed to be sensitive to change"
  },
  "formula": "madrs",
  "formula_expression": "MADRS = apparent_sadness + reported_sadness + inner_tension + reduced_sleep + reduced_appetite + concentration_difficulties + lassitude + inability_to_feel + pessimistic_thoughts + suicidal_thoughts; each caller-assigned 0-6; Montgomery 1979 ten items; max 60; no total-score severity bands",
  "max_score": 60,
  "score": 0
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
400 invalid_madrs MADRS needs ten caller-assigned items, each an integer 0-6 (Montgomery 1979). Returned before settlement; you are not charged.
400 invalid_madrs_item each MADRS item must be an integer from 0 to 6 (Montgomery 1979). Returned before settlement; you are not charged.
400 invalid_items POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
400 invalid_item_count items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
400 invalid_item each items entry must be a JSON object Returned before settlement; you are not charged.

Related tools

  • HAM-D — Sum seventeen caller-assigned Hamilton 1960 items (eight integers 0-4 and nine integers 0-2) and return the published 0-50 total. Does not apply later total-score severity bands or the four excluded 21-item variables.
  • PHQ-9 — Sum nine caller-assigned Kroenke 2001 PHQ-9 integers (0-3) and return the published total (max 27), severity cutpoints, and ≥10 screen.

Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake and shared payment errors: Payments. Stdio MCP: /docs/mcp.

Guarantees

  • HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
  • exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
  • HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
  • Execution is timeout-bounded and concurrency-capped.
  • Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.