# magent DHAKA Dehydration Score Calculator

> magent DHAKA Dehydration Score 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 Levine 2015 DHAKA pediatric dehydration score from four clinical signs and returns the score with severity band classification

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/dhaka
- 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-dhaka-dehydration-score-calculator-1caffa77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UV3BKjRIDNT2TgOVDzg6A

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-dhaka-dehydration-score-calculator-1caffa77
```

Example prompt: Score the dehydration severity for a child under 5 with acute diarrhea: general appearance is restless and irritable, respirations are normal, skin pinch is slow, and tears are decreased — give me the DHAKA score and band.

## When to prefer this

Use this endpoint when you need to programmatically compute the Levine 2015 DHAKA dehydration score (Table 3) for a child under 5 with acute diarrhea and you have already assessed the four clinical signs (general appearance, respirations, skin pinch, tears). Prefer this over WHO IMCI tools when specifically implementing the DHAKA scoring system from Levine 2015. Not for adults, not for non-diarrheal dehydration, and not as a substitute for clinical judgment or examination.

## Known failure modes

- Missing required query parameter returns validation error
- Invalid enum value for any of the four clinical signs returns a 400-level error
- Network or payment failure returns a 402 or 5xx response
- Score returned is only as accurate as the caller-assigned clinical observations — the API does not examine the patient

## How this service works

Levine 2015 DHAKA Dehydration Score (Table 3, not the Tree): appearance 0/2/4, respirations 0/2, skin pinch 0/2/4, tears 0/1/2. Max 12. Bands 0-1 / 2-3 / ≥4. Derived in children <5 with acute diarrhea. magent does not examine the child or order fluids. Not a WHO IMCI clone. Not a medical device.

## Output

Returns a numeric DHAKA score (0–12) computed from the four caller-assigned clinical signs (general appearance, respirations, skin pinch, tears), along with the corresponding severity band: none/some dehydration (0–1), some dehydration (2–3), or severe dehydration (≥4), as defined by Levine 2015 Table 3.

## 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": [
      "general_appearance",
      "respirations",
      "skin_pinch",
      "tears"
     ],
     "properties": {
      "tears": {
       "enum": [
        "normal",
        "decreased",
        "absent"
       ],
       "type": "string",
       "description": "Caller-assigned Levine 2015 Table 3 tears: normal (0), decreased (1), or absent (2). magent does not examine the child."
      },
      "skin_pinch": {
       "enum": [
        "normal",
        "slow",
        "very_slow"
       ],
       "type": "string",
       "description": "Caller-assigned Levine 2015 Table 3 skin pinch: normal (0), slow (2), or very_slow (4). magent does not examine the child."
      },
      "respirations": {
       "enum": [
        "normal",
        "deep"
       ],
       "type": "string",
       "description": "Caller-assigned Levine 2015 Table 3 respirations: normal (0) or deep (2). Table 3 has no very-deep cell. magent does not examine the child."
      },
      "general_appearance": {
       "enum": [
        "normal",
        "restless_irritable",
        "lethargic_unconscious"
       ],
       "type": "string",
       "description": "Caller-assigned Levine 2015 Table 3 general appearance: normal (0), restless_irritable (2), or lethargic_unconscious (4). magent does not examine the child."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-dhaka-dehydration-score-calculator-1caffa77/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)
