# magent MADRS Calculator

> magent MADRS 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 Montgomery-Åsberg Depression Rating Scale (MADRS) total score (0–60) from ten caller-supplied item ratings

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/madrs
- 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-madrs-calculator-6ce5a060
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bv-zh7Cf85XX5VcD3f3Z2

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-madrs-calculator-6ce5a060
```

Example prompt: Calculate the MADRS total score for a patient whose item ratings are: apparent sadness 3, reported sadness 4, inner tension 2, reduced sleep 3, reduced appetite 2, concentration difficulties 3, lassitude 4, inability to feel 3, pessimistic thoughts 2, suicidal thoughts 0.

## When to prefer this

Choose this endpoint when you need a deterministic, server-side sum of all ten MADRS items and want a verified, auditable computation rather than doing the arithmetic client-side. Useful in clinical research pipelines, EHR integrations, or agent workflows where a documented API call to a named clinical scoring service is preferable to manual addition.

## Known failure modes

- Missing or non-integer item score returns a 400 validation error
- Score outside the 0–6 range per item likely causes a 400 error
- Missing required query parameters returns an error
- Payment failure (insufficient USDC balance for x402) blocks the call

## How this service works

Montgomery 1979 MADRS: ten caller-assigned integers 0-6 (apparent sadness, reported sadness, inner tension, reduced sleep, reduced appetite, concentration difficulties, lassitude, inability to feel, pessimistic thoughts, suicidal thoughts). Sum 0-60. magent does not interview. Montgomery 1979 printed no total-score severity bands; later 0-6/7-19/20-34/35-60 cutoffs are not applied. Not a diagnosis, not Hamilton 1960, not PHQ-9, and not a medical device.

## Output

Returns the MADRS total score as an integer between 0 and 60, computed as the arithmetic sum of the ten caller-supplied item scores (each 0–6). No severity bands or diagnostic interpretation are applied per Montgomery 1979.

## 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": [
      "apparent_sadness",
      "reported_sadness",
      "inner_tension",
      "reduced_sleep",
      "reduced_appetite",
      "concentration_difficulties",
      "lassitude",
      "inability_to_feel",
      "pessimistic_thoughts",
      "suicidal_thoughts"
     ],
     "properties": {
      "lassitude": {
       "type": "integer",
       "description": "Caller-assigned Montgomery 1979 lassitude (integer 0-6): difficulty getting started or slowness initiating and performing everyday activities. magent does not interview the patient."
      },
      "inner_tension": {
       "type": "integer",
       "description": "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": {
       "type": "integer",
       "description": "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."
      },
      "apparent_sadness": {
       "type": "integer",
       "description": "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."
      },
      "reduced_appetite": {
       "type": "integer",
       "description": "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."
      },
      "reported_sadness": {
       "type": "integer",
       "description": "Caller-assigned Montgomery 1979 reported sadness (integer 0-6): reports of depressed mood, low spirits, despondency, or feeling beyond 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-madrs-calculator-6ce5a060/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)
