# magent EPDS (Edinburgh Postnatal Depression Scale) Scorer

> magent EPDS (Edinburgh Postnatal Depression Scale) Scorer 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 Cox 1987 Edinburgh Postnatal Depression Scale (EPDS) total score (0–30) and threshold flag from 10 caller-assigned item integers, without interviewing or diagnosing.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/epds
- 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-epds-edinburgh-postnatal-depression-scale-scorer-5648463e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rgpAaO_V_-1Fnh6IMPSyv

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-epds-edinburgh-postnatal-depression-scale-scorer-5648463e
```

Example prompt: Score an Edinburgh Postnatal Depression Scale for me: laugh=0, enjoyment=1, self_blame=2, anxious=1, scared=0, coping=2, sleep=1, sad=2, crying=1, self_harm=0 — give me the total and tell me if it meets the Cox 1987 threshold of 13 or above.

## When to prefer this

Use this endpoint when you need a fast, deterministic, auditable EPDS total score computed per the Cox 1987 algorithm — especially in automated or agentic clinical workflows where you have already collected all 10 item integers and need the arithmetic plus threshold flag without any additional screening logic, diagnosis, or alternative cutoffs applied.

## Known failure modes

- Missing any of the 10 required query parameters returns an error
- Any item value outside the integer range 0–3 returns a validation error
- Non-integer values (e.g. floats or strings) for item scores cause a bad request
- Network timeout if the API is unreachable

## How this service works

Cox 1987 EPDS: 10 caller-assigned integers 0-3 (past 7 days). laugh, enjoyment, and anxious are reverse-scored in that paper; the caller assigns the published 0-3 (0 = least symptomatic pole after that reverse key). Total 0-30. This paper's threshold is 12/13 (at or above iff score ≥13). magent does not interview, apply later ≥10 community cuts, PHQ-9, QIDS, or MDI. Not a diagnosis.

## Output

Returns the EPDS total score (integer 0–30), summing all 10 caller-assigned item integers as published in Cox 1987, and a boolean or flag indicating whether the score meets or exceeds the 13-point threshold. Does not diagnose, interview, or apply alternative community or clinical cutoffs.

## 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": [
      "laugh",
      "enjoyment",
      "self_blame",
      "anxious",
      "scared",
      "coping",
      "sleep",
      "sad",
      "crying",
      "self_harm"
     ],
     "properties": {
      "sad": {
       "type": "integer",
       "description": "Caller-assigned Cox 1987 EPDS item 8 (integer 0-3): felt sad or miserable over the past 7 days. Adds as published (0 least symptomatic pole, 3 most). magent does not interpret the item."
      },
      "laugh": {
       "type": "integer",
       "description": "Caller-assigned Cox 1987 EPDS item 1 (integer 0-3). Reverse-scored in that paper: ability to laugh and see the funny side of things over the past 7 days. 0 is the least symptomatic published pole after reverse scoring; 3 is the most. magent does not interpret the item."
      },
      "sleep": {
       "type": "integer",
       "description": "Caller-assigned Cox 1987 EPDS item 7 (integer 0-3): unhappiness with difficulty sleeping over the past 7 days. Adds as published (0 least symptomatic pole, 3 most). magent does not interpret the item."
      },
      "coping": {
       "type": "integer",
       "description": "Caller-assigned Cox 1987 EPDS item 6 (integer 0-3): things getting on top of the respondent over the past 7 days. Adds as published (0 least symptomatic pole, 3 most). magent does not interpret the item."
      },
      "crying": {
       "type": "integer",
       "description": "Caller-assigned Cox 1987 EPDS item 9 (integer 0-3): crying from unhappiness over the past 7 days. Adds as published (0 least symptomatic pole, 3 most). magent does not interpret the item."
      },
      "scared": {
       "type": "integer",
       "description": "Caller-assigned Cox 1987 EPDS item 5 (integer 0-3): scared or panicky for no very good reason over the past 7 days. Adds as published (0 least symptomatic pole, 3 most). magent does not interpret the item."
      },
      "anxious": {
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-epds-edinburgh-postnatal-depression-scale-scorer-5648463e/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)
