Tooluniverse precision oncology

From mims-harvard/ToolUniverse · View interactive version

Tooluniverse precision oncology is an AI agent skill from the GitHub repository mims-harvard/ToolUniverse. Cancer treatment recommendations from molecular profile (mutations + cancer type + biomarkers) — FDA-approved + investigational therapies, resistance mechanisms, matching clinical trials, prognosis. Uses CIViC, ClinVar, OpenTargets, ClinicalTrials.gov. Use for tumor-board treatment recommendations,

How to use this skill

Skill file

Precision Oncology Treatment Advisor

Provide actionable treatment recommendations for cancer patients based on their molecular profile using CIViC, ClinVar, OpenTargets, ClinicalTrials.gov, and structure-based analysis.

Domain Reasoning

Treatment selection follows a strict evidence hierarchy: FDA-approved for this specific mutation in this cancer type ranks highest, followed by approval for this mutation in any cancer (tumor-agnostic), then active clinical trials, and finally off-label use. Skipping this hierarchy to recommend off-label therapies when an approved option exists is a clinical error. Always check current NCCN guidelines and recent literature, as approvals change rapidly — a drug that was investigational last year may now be first-line.

When looking up treatment for a specific mutation, search CIViC and OncoKB FIRST, not PubMed. These databases have curated evidence levels. PubMed is for when curated databases don't have the answer.

Treatment Selection Reasoning

Biomarker-to-drug logic — When a biomarker is identified, the first-line targeted therapy follows established mappings. Always verify current approval status via OncoKB/CIViC, but use this as a starting framework:

Resistance mechanism reasoning — When a patient progresses on targeted therapy, distinguish primary resistance (never responded — check if the mutation was truly the driver, or if co-mutations like TP53/RB1 abrogate response) from acquired resistance (responded then progressed — on-target mutations or bypass activation). Common patterns:

For resistance workup: query civic_search_evidence_items with the drug name + "resistance", then PubMed_search_articles for recent mechanisms.

LOOK UP DON'T GUESS


KEY PRINCIPLES:

  1. Report-first - Create report file FIRST, update progressively
  2. Evidence-graded - Every recommendation has evidence level
  3. Actionable output - Prioritized treatment options, not data dumps
  4. Clinical focus - Answer "what should we do?" not "what exists?"
  5. English-first queries - Always use English terms in tool calls (mutations, drug names, cancer types), even if the user writes in another language. Only try original-language terms as a fallback. Respond in the user's language

When to Use


Phase 0: Tool Verification

| Tool | WRONG | CORRECT |

|------|-------|---------|

| civic_get_variant | variant_name | variant_id (numeric, e.g., 4170) |

| civic_get_evidence_item | variant_id | id (numeric) |

| OpenTargets_* | ensemblID | ensemblId (camelCase) |

| search_clinical_trials | disease | condition |


Workflow Overview

Input: Cancer type + Molecular profile (mutations, fusions, amplifications)

Phase 1: Profile Validation -> Resolve gene IDs (Ensembl, UniProt, ChEMBL)
Phase 2: Variant Interpretation -> CIViC, ClinVar, COSMIC, GDC/TCGA, DepMap, OncoKB, cBioPortal, HPA
Phase 2.5: Tumor Expression -> CELLxGENE cell-type expression, ChIPAtlas regulatory context
Phase 3: Treatment Options -> OpenTargets + DailyMed (approved), ChEMBL (off-label)
Phase 3.5: Pathway & Network -> KEGG/Reactome pathways, IntAct interactions
Phase 4: Resistance Analysis -> CIViC + PubMed + NvidiaNIM structure analysis
Phase 5: Clinical Trials -> ClinicalTrials.gov search + eligibility
Phase 5.5: Literature -> PubMed, BioRxiv/MedRxiv preprints, OpenAlex citations
Phase 6: Report Synthesis -> Executive summary + prioritized recommendations

Key Tools by Phase

Phase 1: Profile Validation

Phase 2: Variant Interpretation

Phase 2.5: Tumor Expression

Phase 3: Treatment Options

Phase 3.5: Pathway & Network

Phase 4: Resistance Analysis

Phase 5: Clinical Trials

Phase 5.5: Safety & Pharmacogenomics (MANDATORY — do NOT skip)

You MUST call FAERS for the leading approved drug before finalizing the report. A clinical brief without real-world adverse-event data is incomplete.

OncoKB demo mode: Without ONCOKB_API_TOKEN env var, OncoKB only covers BRAF, TP53, ROS1. For other genes (EGFR, KRAS, ALK, etc.), set the API key or use CIViC as the primary evidence source.

Phase 6: Literature


Cross-Skill References

For CYP interaction with cancer drugs, run: python3 skills/tooluniverse-drug-drug-interaction/scripts/pharmacology_ref.py --type cyp_substrate --drug drugname


References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.