{
  "x402Version": 2,
  "id": 38776,
  "slug": "38776",
  "resource": "https://api.magentlab.com/api/calc/capra",
  "description": "Cooperberg 2005 UCSF CAPRA preoperative score (Table 1). Caller-assigned PSA (>=2.1-6 0, >6-10 1, >10-20 2, >20-30 3, >30 4), Gleason 1-3/1-3 0, 1-3/4-5 1, primary 4-5 3, clinical T t1/t2 0 or t3a 1, percent positive biopsies <34 0 or >=34 1, age <50 0 or >=50 1. Score 0-10. Table 4 bands 0_1, 2, 3, 4, 5, 6, ge_7 with 5-year RFS 85/81/66/59/60/34/8. Not Kattan. Not D'Amico. Not CAPRA-S. magent does not assay PSA or read biopsies. Not a diagnosis. Not a medical device.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "age": 62,
                "gleason_primary": 3,
                "gleason_secondary": 3,
                "percent_positive_biopsies": 20,
                "psa_ng_ml": 5,
                "t_stage": "t1"
              },
              {
                "age": 62,
                "gleason_primary": 3,
                "gleason_secondary": 3,
                "percent_positive_biopsies": 20,
                "psa_ng_ml": 5,
                "t_stage": "t1"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 62,
                "band": "0_1",
                "citation": {
                  "authors": "Cooperberg MR, Pasta DJ, Elkin EP, Litwin MS, Latini DM, Du Chane J, Carroll PR",
                  "doi": "10.1097/01.ju.0000158155.33890.e7",
                  "id": "cooperberg-2005",
                  "pmid": "15879786",
                  "source": "J Urol. 2005;173(6):1938-1942",
                  "title": "The University of California, San Francisco Cancer of the Prostate Risk Assessment score: a straightforward and reliable preoperative predictor of disease recurrence after radical prostatectomy"
                },
                "components": [
                  {
                    "factor": "psa_ng_ml",
                    "points": 0,
                    "present": true,
                    "value": 5
                  },
                  {
                    "factor": "gleason",
                    "points": 0,
                    "present": true,
                    "value": "3+3"
                  },
                  {
                    "factor": "t_stage",
                    "points": 0,
                    "present": true,
                    "value": "t1"
                  },
                  {
                    "factor": "percent_positive_biopsies",
                    "points": 0,
                    "present": true,
                    "value": 20
                  },
                  {
                    "factor": "age",
                    "points": 1,
                    "present": true,
                    "value": 62
                  }
                ],
                "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.",
                "formula": "capra",
                "formula_expression": "CAPRA (Cooperberg 2005 Table 1) = psa_ng_ml (>=2.1 and <=6.0 0, >6.0 and <=10.0 1, >10.0 and <=20.0 2, >20.0 and <=30.0 3, >30 4; PSA <2.1 excluded) + gleason (primary/secondary 1-3/1-3 0, 1-3/4-5 1, primary 4-5 3) + t_stage (t1 or t2 0, t3a 1) + percent_positive_biopsies (<34 0, >=34 1) + age (<50 0, >=50 1); score 0-10; Table 4 Kaplan-Meier bands 0_1 / 2 / 3 / 4 / 5 / 6 / ge_7 with 5-year RFS 85 / 81 / 66 / 59 / 60 / 34 / 8. Not Kattan nomogram. Not D'Amico groups. Not CAPRA-S",
                "gleason_primary": 3,
                "gleason_secondary": 3,
                "max_score": 10,
                "percent_positive_biopsies": 20,
                "psa_ng_ml": 5,
                "rfs_5y_percent": 85,
                "score": 1,
                "t_stage": "t1"
              },
              {
                "age_years": 62,
                "band": "0_1",
                "citation": {
                  "authors": "Cooperberg MR, Pasta DJ, Elkin EP, Litwin MS, Latini DM, Du Chane J, Carroll PR",
                  "doi": "10.1097/01.ju.0000158155.33890.e7",
                  "id": "cooperberg-2005",
                  "pmid": "15879786",
                  "source": "J Urol. 2005;173(6):1938-1942",
                  "title": "The University of California, San Francisco Cancer of the Prostate Risk Assessment score: a straightforward and reliable preoperative predictor of disease recurrence after radical prostatectomy"
                },
                "components": [
                  {
                    "factor": "psa_ng_ml",
                    "points": 0,
                    "present": true,
                    "value": 5
                  },
                  {
                    "factor": "gleason",
                    "points": 0,
                    "present": true,
                    "value": "3+3"
                  },
                  {
                    "factor": "t_stage",
                    "points": 0,
                    "present": true,
                    "value": "t1"
                  },
                  {
                    "factor": "percent_positive_biopsies",
                    "points": 0,
                    "present": true,
                    "value": 20
                  },
                  {
                    "factor": "age",
                    "points": 1,
                    "present": true,
                    "value": 62
                  }
                ],
                "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.",
                "formula": "capra",
                "formula_expression": "CAPRA (Cooperberg 2005 Table 1) = psa_ng_ml (>=2.1 and <=6.0 0, >6.0 and <=10.0 1, >10.0 and <=20.0 2, >20.0 and <=30.0 3, >30 4; PSA <2.1 excluded) + gleason (primary/secondary 1-3/1-3 0, 1-3/4-5 1, primary 4-5 3) + t_stage (t1 or t2 0, t3a 1) + percent_positive_biopsies (<34 0, >=34 1) + age (<50 0, >=50 1); score 0-10; Table 4 Kaplan-Meier bands 0_1 / 2 / 3 / 4 / 5 / 6 / ge_7 with 5-year RFS 85 / 81 / 66 / 59 / 60 / 34 / 8. Not Kattan nomogram. Not D'Amico groups. Not CAPRA-S",
                "gleason_primary": 3,
                "gleason_secondary": 3,
                "max_score": 10,
                "percent_positive_biopsies": 20,
                "psa_ng_ml": 5,
                "rfs_5y_percent": 85,
                "score": 1,
                "t_stage": "t1"
              }
            ],
            "path": "/api/calc/capra"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (18-120, Params.age). Cooperberg 2005 Table 1: <50 scores 0; >=50 scores 1.",
                          "type": "integer"
                        },
                        "gleason_primary": {
                          "description": "Primary Gleason pattern 1-5 as assigned by the caller (Cooperberg 2005 Table 1). Integer 1-5 only. Combined with gleason_secondary: 1-3/1-3 scores 0; 1-3/4-5 scores 1; primary 4-5 scores 3. magent does not read biopsies.",
                          "type": "integer"
                        },
                        "gleason_secondary": {
                          "description": "Secondary Gleason pattern 1-5 as assigned by the caller (Cooperberg 2005 Table 1). Integer 1-5 only. Combined with gleason_primary as above. magent does not read biopsies.",
                          "type": "integer"
                        },
                        "percent_positive_biopsies": {
                          "description": "Percent of biopsy cores positive (0-100) as assigned by the caller (Cooperberg 2005 Table 1). <34 scores 0; >=34 scores 1. magent does not read biopsies.",
                          "type": "number"
                        },
                        "psa_ng_ml": {
                          "description": "Preoperative PSA in ng/mL as assigned by the caller (2.1-500). Cooperberg 2005 Table 1: >=2.1 and <=6.0 scores 0; >6.0 and <=10.0 scores 1; >10.0 and <=20.0 scores 2; >20.0 and <=30.0 scores 3; >30 scores 4. PSA <2.1 is invalid (paper excluded PSA <2). magent does not assay PSA.",
                          "type": "number"
                        },
                        "t_stage": {
                          "description": "Clinical T as assigned by the caller (Cooperberg 2005 Table 1). t1 or t2 scores 0; t3a scores 1. Other stages are invalid. Not CAPRA-S pathologic T. magent does not assign TNM.",
                          "enum": [
                            "t1",
                            "t2",
                            "t3a"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "psa_ng_ml",
                        "gleason_primary",
                        "gleason_secondary",
                        "t_stage",
                        "percent_positive_biopsies"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "capra",
    "prostate",
    "cooperberg",
    "prognosis",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T01:01:07.7Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T01:01:07.47Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 62,
                  "gleason_primary": 3,
                  "gleason_secondary": 3,
                  "percent_positive_biopsies": 20,
                  "psa_ng_ml": 5,
                  "t_stage": "t1"
                },
                {
                  "age": 62,
                  "gleason_primary": 3,
                  "gleason_secondary": 3,
                  "percent_positive_biopsies": 20,
                  "psa_ng_ml": 5,
                  "t_stage": "t1"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 62,
                  "band": "0_1",
                  "citation": {
                    "authors": "Cooperberg MR, Pasta DJ, Elkin EP, Litwin MS, Latini DM, Du Chane J, Carroll PR",
                    "doi": "10.1097/01.ju.0000158155.33890.e7",
                    "id": "cooperberg-2005",
                    "pmid": "15879786",
                    "source": "J Urol. 2005;173(6):1938-1942",
                    "title": "The University of California, San Francisco Cancer of the Prostate Risk Assessment score: a straightforward and reliable preoperative predictor of disease recurrence after radical prostatectomy"
                  },
                  "components": [
                    {
                      "factor": "psa_ng_ml",
                      "points": 0,
                      "present": true,
                      "value": 5
                    },
                    {
                      "factor": "gleason",
                      "points": 0,
                      "present": true,
                      "value": "3+3"
                    },
                    {
                      "factor": "t_stage",
                      "points": 0,
                      "present": true,
                      "value": "t1"
                    },
                    {
                      "factor": "percent_positive_biopsies",
                      "points": 0,
                      "present": true,
                      "value": 20
                    },
                    {
                      "factor": "age",
                      "points": 1,
                      "present": true,
                      "value": 62
                    }
                  ],
                  "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.",
                  "formula": "capra",
                  "formula_expression": "CAPRA (Cooperberg 2005 Table 1) = psa_ng_ml (>=2.1 and <=6.0 0, >6.0 and <=10.0 1, >10.0 and <=20.0 2, >20.0 and <=30.0 3, >30 4; PSA <2.1 excluded) + gleason (primary/secondary 1-3/1-3 0, 1-3/4-5 1, primary 4-5 3) + t_stage (t1 or t2 0, t3a 1) + percent_positive_biopsies (<34 0, >=34 1) + age (<50 0, >=50 1); score 0-10; Table 4 Kaplan-Meier bands 0_1 / 2 / 3 / 4 / 5 / 6 / ge_7 with 5-year RFS 85 / 81 / 66 / 59 / 60 / 34 / 8. Not Kattan nomogram. Not D'Amico groups. Not CAPRA-S",
                  "gleason_primary": 3,
                  "gleason_secondary": 3,
                  "max_score": 10,
                  "percent_positive_biopsies": 20,
                  "psa_ng_ml": 5,
                  "rfs_5y_percent": 85,
                  "score": 1,
                  "t_stage": "t1"
                },
                {
                  "age_years": 62,
                  "band": "0_1",
                  "citation": {
                    "authors": "Cooperberg MR, Pasta DJ, Elkin EP, Litwin MS, Latini DM, Du Chane J, Carroll PR",
                    "doi": "10.1097/01.ju.0000158155.33890.e7",
                    "id": "cooperberg-2005",
                    "pmid": "15879786",
                    "source": "J Urol. 2005;173(6):1938-1942",
                    "title": "The University of California, San Francisco Cancer of the Prostate Risk Assessment score: a straightforward and reliable preoperative predictor of disease recurrence after radical prostatectomy"
                  },
                  "components": [
                    {
                      "factor": "psa_ng_ml",
                      "points": 0,
                      "present": true,
                      "value": 5
                    },
                    {
                      "factor": "gleason",
                      "points": 0,
                      "present": true,
                      "value": "3+3"
                    },
                    {
                      "factor": "t_stage",
                      "points": 0,
                      "present": true,
                      "value": "t1"
                    },
                    {
                      "factor": "percent_positive_biopsies",
                      "points": 0,
                      "present": true,
                      "value": 20
                    },
                    {
                      "factor": "age",
                      "points": 1,
                      "present": true,
                      "value": 62
                    }
                  ],
                  "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.",
                  "formula": "capra",
                  "formula_expression": "CAPRA (Cooperberg 2005 Table 1) = psa_ng_ml (>=2.1 and <=6.0 0, >6.0 and <=10.0 1, >10.0 and <=20.0 2, >20.0 and <=30.0 3, >30 4; PSA <2.1 excluded) + gleason (primary/secondary 1-3/1-3 0, 1-3/4-5 1, primary 4-5 3) + t_stage (t1 or t2 0, t3a 1) + percent_positive_biopsies (<34 0, >=34 1) + age (<50 0, >=50 1); score 0-10; Table 4 Kaplan-Meier bands 0_1 / 2 / 3 / 4 / 5 / 6 / ge_7 with 5-year RFS 85 / 81 / 66 / 59 / 60 / 34 / 8. Not Kattan nomogram. Not D'Amico groups. Not CAPRA-S",
                  "gleason_primary": 3,
                  "gleason_secondary": 3,
                  "max_score": 10,
                  "percent_positive_biopsies": 20,
                  "psa_ng_ml": 5,
                  "rfs_5y_percent": 85,
                  "score": 1,
                  "t_stage": "t1"
                }
              ],
              "path": "/api/calc/capra"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (18-120, Params.age). Cooperberg 2005 Table 1: <50 scores 0; >=50 scores 1.",
                            "type": "integer"
                          },
                          "gleason_primary": {
                            "description": "Primary Gleason pattern 1-5 as assigned by the caller (Cooperberg 2005 Table 1). Integer 1-5 only. Combined with gleason_secondary: 1-3/1-3 scores 0; 1-3/4-5 scores 1; primary 4-5 scores 3. magent does not read biopsies.",
                            "type": "integer"
                          },
                          "gleason_secondary": {
                            "description": "Secondary Gleason pattern 1-5 as assigned by the caller (Cooperberg 2005 Table 1). Integer 1-5 only. Combined with gleason_primary as above. magent does not read biopsies.",
                            "type": "integer"
                          },
                          "percent_positive_biopsies": {
                            "description": "Percent of biopsy cores positive (0-100) as assigned by the caller (Cooperberg 2005 Table 1). <34 scores 0; >=34 scores 1. magent does not read biopsies.",
                            "type": "number"
                          },
                          "psa_ng_ml": {
                            "description": "Preoperative PSA in ng/mL as assigned by the caller (2.1-500). Cooperberg 2005 Table 1: >=2.1 and <=6.0 scores 0; >6.0 and <=10.0 scores 1; >10.0 and <=20.0 scores 2; >20.0 and <=30.0 scores 3; >30 scores 4. PSA <2.1 is invalid (paper excluded PSA <2). magent does not assay PSA.",
                            "type": "number"
                          },
                          "t_stage": {
                            "description": "Clinical T as assigned by the caller (Cooperberg 2005 Table 1). t1 or t2 scores 0; t3a scores 1. Other stages are invalid. Not CAPRA-S pathologic T. magent does not assign TNM.",
                            "enum": [
                              "t1",
                              "t2",
                              "t3a"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "psa_ng_ml",
                          "gleason_primary",
                          "gleason_secondary",
                          "t_stage",
                          "percent_positive_biopsies"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}