# Montgomery-Åsberg depression rating scale

MADRS

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/madrs`
HTML: https://magentlab.com/docs/madrs
Markdown: https://magentlab.com/docs/madrs.md

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

[A new depression scale designed to be sensitive to change](https://doi.org/10.1192/bjp.134.4.382)
Montgomery SA, Åsberg M
Br J Psychiatry. 1979;134:382-389
DOI: [10.1192/bjp.134.4.382](https://doi.org/10.1192/bjp.134.4.382)

## Worked example

### All items 0

Given: `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`

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=6, concentration_difficulties=6, inability_to_feel=6, inner_tension=6, lassitude=6, pessimistic_thoughts=6, reduced_appetite=6, reduced_sleep=6, reported_sadness=6, suicidal_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

## Parameters

- `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.

Method: `POST /api/calc/madrs`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: 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:

```json
{
  "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"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/madrs

Example 200:

```json
{
  "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 fields

- `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

Frozen fixture. Not a live lookup.

```json
{
  "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
}
```

## Errors

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

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [HAM-D](https://magentlab.com/docs/hamilton-depression) — 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](https://magentlab.com/docs/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.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/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.
