# magent Medical Code Display Lookup

> magent Medical Code Display Lookup 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-15).

Returns the official preferred display name for a given RxNorm, ICD-10-CM, or LOINC code without requiring the agent to guess or hallucinate the term.

## Facts

- Endpoint: GET https://api.magentlab.com/api/codes/lookup
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-medical-code-display-lookup-7dcd07cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U0Pi-R7jZr-PxKJbfn46f

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-medical-code-display-lookup-7dcd07cd
```

Example prompt: What is the official preferred display name for ICD-10-CM code E11.9 — look it up from the authoritative source, don't guess.

## When to prefer this

Use this endpoint when an agent already holds an exact medical code (RxNorm, ICD-10-CM, or LOINC) and needs to retrieve the authoritative preferred display term without risk of hallucination. Prefer this over general LLM knowledge when accuracy and traceability to official terminology sources are required, such as in clinical documentation, billing, lab reporting, or any context where inventing a term would be harmful.

## Known failure modes

- Code not found in the specified system — returns error indicating unrecognized code
- Invalid system value — only 'rxnorm', 'icd10', or 'loinc' are accepted
- Code exceeds 32-character limit — request rejected
- Malformed code format that doesn't match the target system — may return not found
- Payment failure via x402 protocol — call not completed

## How this service works

Look up a current RxNorm, ICD-10-CM, or LOINC display from an exact code. Use when an agent already has a code and must not invent the preferred term.

## Output

Returns the authoritative preferred display string associated with the submitted code, drawn from the relevant terminology system (RxNorm, ICD-10-CM, or LOINC), so the agent can use the exact published term rather than inventing or approximating it.

## 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": [
      "system",
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Exact published identifier. ICD-10-CM accepts dotted or compact form (E11.9 or E119). Max 32 characters."
      },
      "system": {
       "enum": [
        "rxnorm",
        "icd10",
        "loinc"
       ],
       "type": "string",
       "description": "rxnorm, icd10 (ICD-10-CM), or loinc."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/codes/lookup",
  "count": 2,
  "items": [
   {
    "tty": "SCD",
    "code": "198440",
    "found": true,
    "status": "current",
    "system": "rxnorm",
    "catalog": {
     "notes": "ICD-10 entries are ICD-10-CM (US claims), not WHO ICD-10. RxNorm codes are RxCUI. LOINC codes are official LOINC numerics. coverage=full never means complete UMLS.",
     "source": "magent curated seed",
     "systems": [
      "rxnorm",
      "icd10",
      "loinc"
     ],
     "version": "2026.08-wedge",
     "coverage": "seed",
     "coverage_meaning": "Compiled seed catalog. Production coverage=full is gold-gated Current Prescribable RxNorm + ICD-10-CM + LOINC, not complete monthly RxNorm or UMLS."
    },
    "display": "acetaminophen 500 MG Oral Tablet",
    "billable": null,
    "obsolete": false,
    "synonyms": [
     "tylenol 500mg",
     "tylenol 500 mg",
     "acetaminophen 500mg",
     "acetaminophen 500 mg tablet",
     "paracetamol 500 mg"
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions."
   },
   {
    "tty": "SCD",
    "code": "198440",
    "found": true,
    "status": "current",
    "system": "rxnorm",
    "catalog": {
     "notes": "ICD-10 entries are ICD-10-CM (US claims), not WHO ICD-10. RxNorm codes are RxCUI. LOINC codes are official LOINC numerics. coverage=full never means complete UMLS.",
     "source": "magent curated seed",
     "systems": [
      "rxnorm",
      "icd10",
      "loinc"
     ],
     "version": "2026.08-wedge",
     "coverage": "seed",
     "coverage_meaning": "Compiled seed catalog. Production coverage=full is gold-gated Current Prescribable RxNorm + ICD-10-CM + LOINC, not complete monthly RxNorm or UMLS."
    },
    "display": "acetaminophen 500 MG Oral Tablet",
    "billable": null,
    "obsolete": false,
    "synonyms": [
     "tylenol 500mg",
     "tylenol 500 mg",
     "acetaminophen 500mg",
     "acetaminophen 500 mg tablet",
     "paracetamol 500 mg"
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-medical-code-display-lookup-7dcd07cd/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)
