{"uid":"cap_4DHBLx2yXDdhjCdqbx4Za","slug":"ucsf-capra-preoperative-prostate-cancer-risk-score-calculator-84295741","name":"UCSF CAPRA Preoperative Prostate Cancer Risk Score Calculator","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.","url":"https://api.magentlab.com/api/calc/capra","method":"GET","headers":{},"bodySchema":{"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":["age","psa_ng_ml","gleason_primary","gleason_secondary","t_stage","percent_positive_biopsies"],"properties":{"age":{"type":"integer","description":"Age in years (18-120, Params.age). Cooperberg 2005 Table 1: <50 scores 0; >=50 scores 1."},"t_stage":{"enum":["t1","t2","t3a"],"type":"string","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."},"psa_ng_ml":{"type":"number","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."},"gleason_primary":{"type":"integer","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."},"gleason_secondary":{"type":"integer","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."},"percent_positive_biopsies":{"type":"number","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."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YPA9R8f1gBCnwUNpxZOF1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the Cooperberg 2005 UCSF CAPRA preoperative score (0–10) and maps it to a 5-year recurrence-free survival band for prostate cancer risk stratification.","exampleAgentPrompt":"Calculate the UCSF CAPRA preoperative score for a 58-year-old patient with a PSA of 8.5 ng/mL, Gleason primary 3, Gleason secondary 4, clinical stage T2, and 40 percent positive biopsies.","exampleUseCases":[{"title":"Pre-surgery prostate cancer risk stratification","prompt":"I have a 63-year-old patient going in for prostatectomy — PSA is 12.3 ng/mL, Gleason primary 4, secondary 3, clinical stage T2, 55 percent positive biopsies. What's his CAPRA score and 5-year recurrence-free survival band?"},{"title":"Comparing risk levels across clinic patients","prompt":"Can you compute CAPRA scores for my patient today: age 71, PSA 22 ng/mL, Gleason 4 primary and 4 secondary, T3a stage, 60 percent positive biopsies? I want to know which risk band he falls into."},{"title":"Low-risk patient counseling before treatment decision","prompt":"My patient is 47 years old, PSA of 5.0 ng/mL, Gleason primary 2 secondary 3, clinical T1, and only 20 percent positive biopsies — what does his CAPRA score look like and what does that mean for his 5-year outlook?"}],"resultDescription":"Returns a CAPRA integer score from 0 to 10, the corresponding Table 4 risk band (e.g. '0_1', '2', 'ge_7'), and the associated 5-year recurrence-free survival percentage (e.g. 85%, 8%) as defined by Cooperberg 2005.","failureModes":["PSA below 2.1 ng/mL is invalid per the paper's exclusion criteria — returns an error","T stage other than t1, t2, or t3a is invalid (no other stages supported)","Gleason primary or secondary outside integer range 1–5 returns a validation error","Percent positive biopsies outside 0–100 returns an error","Missing any required query parameter results in a 400-level error","Age outside 18–120 range is rejected"],"whenToPreferThis":"Use this endpoint when you need the Cooperberg 2005 UCSF CAPRA preoperative score specifically — not D'Amico risk groups, not Kattan nomograms, and not CAPRA-S (which is post-surgical). Ideal when all six required preoperative variables (age, PSA, Gleason primary, Gleason secondary, clinical T stage, percent positive biopsies) are already caller-assigned and you want a fast, deterministic 0–10 score plus the Table 4 5-year RFS band for clinical documentation or risk communication.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:12:44.845Z","isFirstParty":false}