# magent Emergency Medicine MDM Level Calculator (AMA CPT 2023 Table 1)

> magent Emergency Medicine MDM Level Calculator (AMA CPT 2023 Table 1) 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 2023 AMA CPT Medical Decision Making (MDM) level from caller-assigned complexity ratings for problems, data, and risk, returning the overall MDM level using the '2 of 3' rule.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/em_mdm
- 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-emergency-medicine-mdm-level-calculator-ama-cpt-2023-table-1-7a5d673e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_knIGgycT1OKJTau3oP5ne

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-emergency-medicine-mdm-level-calculator-ama-cpt-2023-table-1-7a5d673e
```

Example prompt: I'm documenting an ED visit where I've assessed the problems as moderate complexity, the data as low, and the risk as high — what does the 2023 AMA CPT MDM table say the overall MDM level is?

## When to prefer this

Use this endpoint when a clinician or clinical documentation AI has already reviewed the chart and self-assigned the three MDM element levels (problems, data, risk) per 2023 AMA CPT Table 1 and needs the correct overall MDM level computed using the '2 of 3' rule. Prefer this over manual lookup when integrating MDM computation into automated workflows, scribes, or documentation assistants. Do not use if you need the system to analyze raw chart data and assign element levels — the caller must do that assignment upstream.

## Known failure modes

- Missing required query parameter (problems, data, or risk) returns an error
- Invalid enum value (anything other than straightforward, low, moderate, high) causes a validation error
- Caller mis-assigns element levels — the service computes correctly but output validity depends on accurate caller input
- Network or payment failure may prevent response delivery

## How this service works

2023 emergency medical decision making from AMA CPT Table 1 as reprinted by ACEP. Caller assigns problems, data, and risk as straightforward, low, moderate, or high. Overall MDM is the highest level at which at least 2 of 3 elements are met or exceeded. Not a bill or CPT assignment. magent does not code the chart.

## Output

Returns the overall MDM complexity level (straightforward, low, moderate, or high) computed by applying the 2023 AMA CPT Table 1 '2 of 3' rule to the three caller-assigned element ratings. Does not generate a bill, assign a CPT code, or perform chart coding — it only applies the published MDM logic.

## 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": [
      "problems",
      "data",
      "risk"
     ],
     "properties": {
      "data": {
       "enum": [
        "straightforward",
        "low",
        "moderate",
        "high"
       ],
       "type": "string",
       "description": "Caller-assigned amount and/or complexity of data to be reviewed and analyzed using the printed 2023 MDM column labels straightforward, low, moderate, or high. straightforward is the table's minimal or none column; low is limited; moderate is moderate; high is extensive. magent does not count tests, notes, or independent historians."
      },
      "risk": {
       "enum": [
        "straightforward",
        "low",
        "moderate",
        "high"
       ],
       "type": "string",
       "description": "Caller-assigned risk of complications and/or morbidity of management using the printed 2023 MDM column labels straightforward, low, moderate, or high (straightforward is the table's minimal risk column). magent does not determine risk from the record."
      },
      "problems": {
       "enum": [
        "straightforward",
        "low",
        "moderate",
        "high"
       ],
       "type": "string",
       "description": "Caller-assigned number and complexity of problems addressed using the printed 2023 MDM column labels straightforward, low, moderate, or high (AMA CPT 2023 Table 1 as reprinted by ACEP). straightforward is the table's minimal column (1 self-limited or minor problem). low includes 1 stable chronic illness, 2 or more self-limited or minor problems, or 1 acute uncomplicated illness or injury. magent does not code the chart."
      }
     }
    }
   },
   "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-emergency-medicine-mdm-level-calculator-ama-cpt-2023-table-1-7a5d673e/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)
