# magent DIRE Score Calculator (Belgrade 2006)

> magent DIRE Score Calculator (Belgrade 2006) 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 Belgrade 2006 DIRE score (7–21) from caller-assigned Diagnosis, Intractability, Risk, and Efficacy integers to indicate suitability for long-term opioid maintenance therapy.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/dire
- 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-dire-score-calculator-belgrade-2006-79df3d48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QnMK0-UcndmJnW6vmUN2t

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-dire-score-calculator-belgrade-2006-79df3d48
```

Example prompt: Calculate the DIRE score for a patient with a diagnosis rating of 2, intractability of 2, psychological risk of 2, chemical risk of 3, reliability of 2, social support of 2, and efficacy of 2 — and tell me whether that score suggests they're suitable for long-term opioid maintenance.

## When to prefer this

Use this endpoint when a caller has already assessed a chronic pain patient across the four Belgrade 2006 DIRE domains and needs the total score computed instantly without manual arithmetic. Prefer this over general LLM-based scoring when you need a deterministic, auditable numeric result from structured inputs. Not appropriate for obtaining a pain history, writing prescriptions, or replacing clinical judgment.

## Known failure modes

- Missing any of the seven required integer parameters returns a validation error
- Integer values outside the 1–3 range (or 4–12 for risk) are rejected
- Non-integer values for scoring parameters cause a schema validation error
- Payment failure or insufficient USDC balance results in a 402 response and no score is returned

## How this service works

Belgrade 2006 DIRE score: Diagnosis, Intractability, and Efficacy each caller-assigned 1-3; Risk is the sum of Psychological, Chemical, Reliability, and Social support (each 1-3, so Risk 4-12). Total 7-21. Scores 14-21 are more suitable for long-term opioid maintenance; 7-13 less suitable. Caller assigns the integers. magent does not take a pain history or write an opioid prescription or taper. Not a medical device.

## Output

Returns the computed DIRE total score (integer 7–21), the Risk subscore (4–12), and a suitability classification indicating whether the score falls in the long-term opioid maintenance range (14–21) or the less suitable range (7–13). Does not generate clinical advice, prescriptions, or patient history.

## 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": [
      "diagnosis",
      "intractability",
      "psychological",
      "chemical",
      "reliability",
      "social_support",
      "efficacy"
     ],
     "properties": {
      "chemical": {
       "type": "integer",
       "description": "Caller-assigned Belgrade 2006 Risk subcategory Chemical (integer 1-3): 1 active or recent substance abuse; 2 chemical coper or history of chemical dependence in remission; 3 no chemical-dependence history. One of four Risk items (Risk 4-12). magent does not interview the patient."
      },
      "efficacy": {
       "type": "integer",
       "description": "Caller-assigned Belgrade 2006 Efficacy (integer 1-3): 1 poor function or minimal pain relief despite moderate-to-high doses; 2 moderate benefit with moderate function on moderate doses; 3 good function and pain relief on stable low-to-moderate doses. magent does not take a pain history or write an opioid prescription."
      },
      "diagnosis": {
       "type": "integer",
       "description": "Caller-assigned Belgrade 2006 Diagnosis (integer 1-3): 1 benign chronic condition with minimal objective findings or no definite diagnosis; 2 slowly progressive condition concordant with moderate pain, or fixed deficit; 3 advanced condition concordant with severe pain with objective findings. magent does not take a pain history."
      },
      "reliability": {
       "type": "integer",
       "description": "Caller-assigned Belgrade 2006 Risk subcategory Reliability (integer 1-3): 1 many missed appointments, lacks insight, or poor observer of laws and rules; 2 generally reliable; 3 highly reliable. One of four Risk items (Risk 4-12). magent does not interview the patient."
      },
      "psychological": {
       "type": "integer",
       "description": "Caller-assigned Belgrade 2006 Risk subcategory Psychological (integer 1-3): 1 serious personality dysfunction or mental illness interfering with care; 2 per
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-dire-score-calculator-belgrade-2006-79df3d48/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)
