# magent AMT-4 Cognitive Score Calculator

> magent AMT-4 Cognitive 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-13).

Computes the Swain 1997 AMT-4 abbreviated mental test score (0–4) from four caller-assigned boolean flags for age, date of birth, place, and year correctness.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/amt_4
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-amt-4-cognitive-score-calculator-21088760
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EulMKMlvJEsTGVNPGKrvK

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-amt-4-cognitive-score-calculator-21088760
```

Example prompt: My patient correctly stated their age and date of birth but got the place and year wrong — can you calculate their AMT-4 score and tell me if that indicates cognitive impairment?

## When to prefer this

Use this endpoint when you need to programmatically score the Swain 1997 four-item AMT (AMT-4) and already have caller-assigned correctness flags for the four items. This is specifically the four-item abbreviated version (not the Hodkinson 1972 AMT-10), making it appropriate for rapid cognitive screening scenarios. Choose this over a full AMT-10 scorer when brevity is required or the clinical protocol specifies AMT-4.

## Known failure modes

- Missing required query parameter (age_correct, dob_correct, place_correct, or year_correct) — likely returns 4xx error
- Non-boolean value passed for a flag — schema validation error
- Network timeout or server error returning 5xx
- Payment failure via x402 protocol resulting in 402 response

## How this service works

AMT-4 (Swain 1997): four caller-assigned flags for age, date of birth, place, and year. Each correct item scores 1; max 4. Impaired cognition is indicated when the score is less than 4 (0–3 impaired; 4 not impaired). Flags only; magent does not interview the patient or collect a date of birth, age, place name, or year. Not a dementia diagnosis and not a medical device. Not Hodkinson 1972 AMT-10.

## Output

Returns an integer AMT-4 score (0–4) reflecting the sum of the four boolean flags, plus an impairment classification: a score of 0–3 indicates impaired cognition and a score of 4 indicates not impaired. Does not provide a dementia diagnosis and does not represent a medical device output.

## 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": [
      "age_correct",
      "dob_correct",
      "place_correct",
      "year_correct"
     ],
     "properties": {
      "age_correct": {
       "type": "boolean",
       "description": "Caller-assigned flag: age stated correctly (Swain 1997 AMT-4). true scores 1; false scores 0. magent does not interview the patient and does not collect an age."
      },
      "dob_correct": {
       "type": "boolean",
       "description": "Caller-assigned flag: date of birth stated correctly (Swain 1997 AMT-4). true scores 1; false scores 0. magent does not collect a date of birth."
      },
      "year_correct": {
       "type": "boolean",
       "description": "Caller-assigned flag: current year stated correctly (Swain 1997 AMT-4). true scores 1; false scores 0. magent does not collect a year."
      },
      "place_correct": {
       "type": "boolean",
       "description": "Caller-assigned flag: place stated correctly (Swain 1997 AMT-4). true scores 1; false scores 0. magent does not collect a place name."
      }
     }
    }
   },
   "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-amt-4-cognitive-score-calculator-21088760/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)
