# magent Gleason Score Calculator

> magent Gleason 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 Gleason 1974 prostatic adenocarcinoma score by summing caller-supplied primary and secondary histologic pattern integers (each 1–5), returning a score in the range 2–10.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/gleason
- 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-gleason-score-calculator-74a68476
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c7rXXHOrRDZGkDBwKLslj

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-gleason-score-calculator-74a68476
```

Example prompt: Calculate the Gleason 1974 score for a prostate adenocarcinoma with a primary pattern of 3 and a secondary pattern of 4.

## When to prefer this

Use this endpoint when you need a simple, reliable arithmetic computation of the classic Gleason 1974 score from pre-assigned integer primary and secondary patterns. Prefer it for automating score entry in clinical workflows, EHR enrichment, or report generation where the pattern values have already been determined by a pathologist. Do not use it when ISUP 2016 Grade Groups or 2005 modified Gleason rules are required, or when slide reading or pattern assignment is needed.

## Known failure modes

- Primary or secondary pattern outside integer range 1–5 (e.g. 0, 6, 1.5, roman numerals) is rejected
- Missing required query parameters returns an error
- Non-integer values (floats, strings) are rejected
- Network or payment authorization failure returns an HTTP error

## How this service works

Gleason 1974 prostatic adenocarcinoma score from caller-assigned primary pattern 1-5 plus secondary pattern 1-5. Score equals primary plus secondary (range 2-10). magent does not read slides. Not ISUP/Epstein 2016 Grade Groups. Not 2005 ISUP modified pattern rules. Not a diagnosis or treatment recommendation. Not a medical device.

## Output

Returns the Gleason score as an integer equal to primary + secondary (range 2–10), computed per the 1974 Gleason grading system. Does not include ISUP Grade Groups, 2005 modified pattern rules, diagnostic interpretation, or treatment recommendations.

## 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": [
      "primary",
      "secondary"
     ],
     "properties": {
      "primary": {
       "type": "integer",
       "description": "Caller-assigned Gleason 1974 primary (predominant) histologic pattern. Integer 1-5 only; reject 0, 6, 1.5, and roman I. magent does not read slides or apply 2005 ISUP modified pattern rules."
      },
      "secondary": {
       "type": "integer",
       "description": "Caller-assigned Gleason 1974 secondary histologic pattern. Integer 1-5 only; reject 0, 6, 1.5, and roman I. magent does not read slides or apply 2005 ISUP modified pattern rules."
      }
     }
    }
   },
   "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-gleason-score-calculator-74a68476/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)
