{"uid":"cap_XOsFhvVoNxL4eoMCJSSKs","slug":"magent-mayo-spn-swensen-1997-malignancy-probability-calculator-63e2cf18","name":"magent Mayo SPN (Swensen 1997) Malignancy Probability Calculator","description":"Swensen 1997 Mayo Clinic logistic probability of malignancy for a 4-30 mm radiologically indeterminate solitary pulmonary nodule. Inputs: age, current or former smoking, extrathoracic cancer diagnosed ≥5 years before the nodule, largest diameter in mm, caller-assigned spiculation, and caller-assigned upper-lobe location. Returns logit x and P = e^x / (1 + e^x). magent does not read the film. Not Gould 2007, not Brock, not a diagnosis, not a biopsy order, and not a medical device.","url":"https://api.magentlab.com/api/calc/mayo_spn","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","smoke","cancer","diameter_mm","spiculation","upper_lobe"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Swensen 1997 is an adult derivation; 18 is an implementation clamp."},"smoke":{"type":"boolean","description":"Cigarette smoking as coded in Swensen 1997. true = current or former smoker (1); false = never (0). The caller assigns smoking history."},"cancer":{"type":"boolean","description":"Extrathoracic cancer diagnosed ≥5 years before the nodule (Swensen 1997). true scores 1; false scores 0. The derivation excluded cancer within 5 years. The caller assigns the history."},"upper_lobe":{"type":"boolean","description":"Upper-lobe location as assigned by the caller (Swensen 1997). true or false. magent does not read the film."},"diameter_mm":{"type":"number","description":"Largest nodule diameter in millimetres (4-30). Swensen 1997 derivation range. magent does not measure the film."},"spiculation":{"type":"boolean","description":"Spiculated edge as assigned by the caller (Swensen 1997). true or false. magent does not read the film."}}}},"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_Pcaf2b0OWPNUCSRfaDNYx","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 Swensen 1997 Mayo Clinic logistic probability of malignancy for a 4–30 mm radiologically indeterminate solitary pulmonary nodule using six clinical variables.","exampleAgentPrompt":"Calculate the Swensen 1997 Mayo Clinic malignancy probability for a 68-year-old current smoker with no prior extrathoracic cancer, who has a 14mm spiculated nodule in the upper lobe.","exampleUseCases":[{"title":"Pulmonary nodule triage in primary care","prompt":"My patient is a 72-year-old former smoker with a 22mm upper-lobe nodule that looks spiculated on CT — no history of extrathoracic cancer. Can you run the Swensen Mayo model and tell me the malignancy probability?"},{"title":"Radiology report augmentation workflow","prompt":"For a 55-year-old never-smoker with a 10mm non-spiculated lower-lobe nodule and a colon cancer diagnosed 7 years ago, what does the Swensen 1997 calculator give for malignancy probability?"},{"title":"Comparing risk before pulmonology referral","prompt":"I have two patients with incidental nodules. First: 61-year-old current smoker, 18mm upper-lobe nodule, spiculated, no prior cancer. Second: 48-year-old never-smoker, 8mm lower-lobe nodule, not spiculated, no cancer history. Can you compute the Mayo SPN malignancy probability for both?"}],"resultDescription":"Returns the logit linear predictor (x) and the derived malignancy probability P = e^x / (1 + e^x), both as numeric values, based on the Swensen 1997 Mayo Clinic logistic regression model for indeterminate solitary pulmonary nodules.","failureModes":["Missing required query parameters (age, smoke, cancer, diameter_mm, spiculation, upper_lobe) → 400 Bad Request","Age outside 18–120 range or diameter outside 4–30 mm range → validation error or clamped result","Payment not provided or insufficient USDC → 402 Payment Required","Non-boolean value passed for boolean fields → schema validation error","Network timeout or server unavailability → 5xx error"],"whenToPreferThis":"Use this endpoint when you need a validated, reference-model logistic probability for an adult patient with a 4–30 mm radiologically indeterminate solitary pulmonary nodule and you have the six Swensen 1997 input variables available. Prefer this over manual calculation to avoid arithmetic errors and to get a machine-readable logit + probability pair. Do not use for nodules outside the 4–30 mm derivation range, pediatric patients, nodules with a definitive radiological diagnosis, or when the Gould 2007 or Brock models are required by your clinical protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:11:49.546Z","isFirstParty":false}