{"at":"2026-11-23T05:42:49.836Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:42:51.810Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"ChemDraw Tool","version":"0.10.0"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Draw chemical structures and reaction schemes as PNG/SVG files with an\ninteractive panel, and compute the numbers behind them.\n\n- A bare compound name (\"caffeine\") means generate_molecule. Use it also\n  while explaining a compound when its structure helps.\n- A protein, enzyme or antibody name (lysozyme, trastuzumab):\n  generate_protein_or_antibody draws its cartoon from the PDB; do not sketch your own.\n- A pH, buffer recipe or degree of ionisation asked as a number:\n  calculate_ph, also when you could work it out yourself — it solves the\n  exact charge balance and shows the approximation beside it.\n- Several individual structures: batch_generate.\n- Structural differences between two to four compounds: compare_molecules.\n- Reactants, products and conditions: generate_reaction.\n- SN1, SN2 or Fischer esterification step by step with curved arrows:\n  generate_mechanism (draws the user's substrates within each family's limit;\n  other mechanisms are not drawn).\n- Shape in space (geometry, conformation, a rotatable model): generate_3d;\n  a chair drawing: generate_molecule, view \"chair\".\n- One named value as text (CAS number, melting point, GHS hazards, biological\n  role, pathways): lookup.\n- Which IR bands or how many ¹H NMR signals a structure should give, or which\n  group absorbs at a measured wavenumber: predict_spectrum.\n- Any spectrum picture (IR, NMR, MS, UV/Vis), also \"schematic\" and without\n  peak values: generate_spectrum, not a generic chart — supply typical\n  literature peaks yourself.\n- A TLC plate sketch from Rf values: generate_tlc.\n- pH against added titrant volume: generate_titration_curve. Fractions of\n  each protonation species across pH 0–14: generate_species_distribution.\n- A compound's data sheet: lookup_molecule_data.\n- The user has to learn or revise something → offer export_anki_deck and\n  write the cards yourself.\n\nPass English or IUPAC compound names; SMILES are always safe. Drawing tools\nwrite their files themselves — never call save_png, that is the panel's\nexport button.\n","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T05:42:51.810Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:42:51.813Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"ChemDraw Tool","version":"0.10.0"}},"cacheScope":"private","resultType":"complete","tools":[{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw one compound as a 2D structure — the default for a single substance.\n\nWrites PNG/SVG files and an interactive panel (properties, functional\ngroups). A bare compound name (\"caffeine\") also\nmeans this tool, and so does a question about why one compound behaves as it\ndoes (acidity, solubility) — the answer is in its structure.\nA Fischer or Haworth projection of a sugar or amino acid, a chair\nconformation of a cyclohexane or pyranose ring, or a drawing with all H\natoms, is this tool too: set view to \"fischer\", \"haworth\", \"chair\" or \"all_h\".\n\nNot this tool for: several individual structures (use batch_generate),\nstructural differences (use compare_molecules), a reaction scheme (use\ngenerate_reaction), a data sheet (use lookup_molecule_data), a single named\nvalue such as melting point, CAS number or GHS hazards (use lookup), the IR\nbands or ¹H signals to expect (use predict_spectrum), a spectrum drawing (use\ngenerate_spectrum), which species of an acid dominates at a given pH (use\ngenerate_species_distribution), a rotatable 3D model or the shape in space\n(use generate_3d), or a protein, enzyme or antibody (use generate_protein_or_antibody).\n\nArgs:\n    name_or_smiles: English/IUPAC name or SMILES. Peptides:\n        \"Ala-Gly-Ser\" (D-Ala, Ac-, -NH2, cyclo(…)); one-letter only as\n        \"peptide:AGS\" (lowercase = D).\n    label: Display name shown below the structure (may be localized).\n    formats: \"png\", \"svg\", \"cdxml\" (default: png + svg); \"cdxml\" only\n        for editing in ChemDraw.\n    annotate_stereo: True prints CIP descriptors (R/S, E/Z).\n    abbreviate_groups: True draws substituents as short labels (Ph,\n        OAc, Boc, …); chemistry unchanged, no panel tooltips.\n    render_style: \"\" standard, \"compact\" (small print), \"presentation\"\n        (slides) or \"grayscale\".\n    stereo_variants: True returns the stereoisomers of open centers\n        (max 3) as a pick list; only on request.\n    view: \"fischer\"/\"haworth\"/\"chair\"/\"all_h\" opens on that drawing,\n        only if the user names it.","inputSchema":{"properties":{"abbreviate_groups":{"default":false,"title":"Abbreviate Groups","type":"boolean"},"annotate_stereo":{"default":false,"title":"Annotate Stereo","type":"boolean"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"label":{"default":"","title":"Label","type":"string"},"name_or_smiles":{"title":"Name Or Smiles","type":"string"},"render_style":{"default":"","title":"Render Style","type":"string"},"stereo_variants":{"default":false,"title":"Stereo Variants","type":"boolean"},"view":{"default":"","title":"View","type":"string"}},"required":["name_or_smiles"],"title":"generate_moleculeArguments","type":"object"},"name":"generate_molecule","outputSchema":{"$defs":{"AtomData":{"properties":{"charge":{"default":0,"title":"Charge","type":"integer"},"el":{"title":"El","type":"string"},"hCount":{"default":0,"title":"Hcount","type":"integer"},"idx":{"title":"Idx","type":"integer"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["idx","el","x","y"],"title":"AtomData","type":"object"},"FunctionalGroup":{"properties":{"atomIndices":{"default":[],"items":{"type":"integer"},"title":"Atomindices","type":"array"},"color":{"default":"#999999","title":"Color","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"FunctionalGroup","type":"object"},"IsomerCandidate":{"description":"One structure a family name (\"xylene\", \"Glucose\") can mean.","properties":{"label":{"title":"Label","type":"string"},"name":{"default":"","title":"Name","type":"string"},"smiles":{"title":"Smiles","type":"string"},"svg":{"default":"","title":"Svg","type":"string"}},"required":["label","smiles"],"title":"IsomerCandidate","type":"object"},"LipinskiData":{"properties":{"hba":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hba"},"hbd":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hbd"},"logP":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Logp"},"mw":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Mw"},"passes":{"default":false,"title":"Passes","type":"boolean"},"violations":{"default":0,"title":"Violations","type":"integer"}},"title":"LipinskiData","type":"object"},"ProteinView":{"description":"Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).","properties":{"chains":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Chains","type":"array"},"citation":{"default":"","title":"Citation","type":"string"},"colorBy":{"default":"ss","title":"Colorby","type":"string"},"identifier":{"default":"","title":"Identifier","type":"string"},"ligands":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Ligands","type":"array"},"plddtMean":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Plddtmean"},"scheme":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Scheme"},"source":{"default":"","title":"Source","type":"string"},"ssSource":{"default":"deposited","title":"Sssource","type":"string"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"title":"ProteinView","type":"object"},"StereoWarning":{"description":"Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.","properties":{"atoms":{"default":[],"items":{"type":"integer"},"title":"Atoms","type":"array"},"kind":{"title":"Kind","type":"string"},"label":{"default":"","title":"Label","type":"string"}},"required":["kind"],"title":"StereoWarning","type":"object"}},"properties":{"atoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Atoms","type":"array"},"candidates":{"default":[],"items":{"$ref":"#/$defs/IsomerCandidate"},"title":"Candidates","type":"array"},"cdxml_path":{"default":"","title":"Cdxml Path","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"foundAs":{"default":"","title":"Foundas","type":"string"},"functionalGroups":{"default":[],"items":{"$ref":"#/$defs/FunctionalGroup"},"title":"Functionalgroups","type":"array"},"initialView":{"default":"","title":"Initialview","type":"string"},"lipinski":{"anyOf":[{"$ref":"#/$defs/LipinskiData"},{"type":"null"}],"default":null},"message":{"default":"","title":"Message","type":"string"},"name":{"default":"","title":"Name","type":"string"},"projectionNote":{"default":"","title":"Projectionnote","type":"string"},"properties":{"additionalProperties":{"type":"string"},"default":{},"title":"Properties","type":"object"},"protein":{"anyOf":[{"$ref":"#/$defs/ProteinView"},{"type":"null"}],"default":null},"stereoNote":{"default":"","title":"Stereonote","type":"string"},"stereoWarnings":{"default":[],"items":{"$ref":"#/$defs/StereoWarning"},"title":"Stereowarnings","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"molecule","title":"Type","type":"string"},"viewAtoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Viewatoms","type":"array"},"viewRequest":{"additionalProperties":true,"default":{},"title":"Viewrequest","type":"object"},"viewSvg":{"default":"","title":"Viewsvg","type":"string"},"views":{"default":[],"items":{"type":"string"},"title":"Views","type":"array"}},"title":"MoleculePayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a spectrum — IR, ¹H/¹³C NMR, mass spectrum (MS), UV/Vis, Raman, NIR, fluorescence, ORD or CD — as PNG/SVG files with a panel.\n\nAny request to draw, sketch, plot or show a spectrum is this tool, including\na \"schematic\" spectrum of a named compound (\"aspirin IR spectrum\nschematic\") and requests with no peak values: then supply typical\nliterature peak positions yourself (aspirin IR: C=O ~1750 and ~1690 cm⁻¹,\nbroad O–H ~2500–3300 cm⁻¹). Use it instead of drawing the spectrum as a\ngeneric chart or visualization — this tool gets the axis conventions right\n(IR: inverted wavenumber axis with transmission dips; NMR: ppm right to\nleft; MS: bars). It draws exactly the peaks it is given; it predicts nothing.\n\nNot this tool for: working out WHICH bands to expect, or what a measured\nwavenumber belongs to (use predict_spectrum — its band list can then be\ndrawn here), or the compound's structure formula (use generate_molecule).\n\nArgs:\n    spectrum_type: One of \"ir\", \"nir\", \"raman\", \"uv_vis\", \"fluorescence\",\n        \"ord\", \"cd\", \"nmr_1h\", \"nmr_13c\", \"ms\".\n    peaks: Peak list. position uses the type's natural unit (cm⁻¹ for\n        ir/nir/raman, nm for uv_vis/fluorescence/ord/cd, ppm for NMR,\n        m/z for ms). intensity is relative on any scale (negative values\n        only for ord/cd). width (optional) is the half-width in x-units;\n        label (optional) annotates the peak in the plot (e.g. \"C=O\").\n    title: Display name shown in the plot title, also used for the\n        filename (can be localized, e.g. \"Aspirin IR\").\n    formats: Output file formats, any of \"png\", \"svg\" (default: both).\n        CDXML is not available for spectra.","inputSchema":{"$defs":{"SpectrumPeak":{"properties":{"intensity":{"default":1.0,"title":"Intensity","type":"number"},"label":{"default":"","title":"Label","type":"string"},"position":{"title":"Position","type":"number"},"width":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Width"}},"required":["position"],"title":"SpectrumPeak","type":"object"}},"properties":{"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"peaks":{"items":{"$ref":"#/$defs/SpectrumPeak"},"title":"Peaks","type":"array"},"spectrum_type":{"title":"Spectrum Type","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"required":["spectrum_type","peaks"],"title":"generate_spectrumArguments","type":"object"},"name":"generate_spectrum","outputSchema":{"properties":{"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"default":"","title":"Name","type":"string"},"spectrum_type":{"title":"Spectrum Type","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"spectrum","title":"Type","type":"string"}},"required":["spectrum_type"],"title":"SpectrumPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a TLC plate sketch from Rf values as print-ready PNG/SVG files.\n\nUse this whenever the user reports a thin-layer chromatography result\n(\"TLC of my esterification: educt at 0.3, product at 0.65, the co-spot\nshows both\") or asks for the plate sketch a lab report requires. The\ntool draws exactly the Rf values it is given — it predicts nothing.\n\nThe plate is read from the bottom: start line at Rf 0, solvent front at\nRf 1, so a spot at Rf 0.8 sits near the top. One lane = one application\npoint with its own caption; a lane can carry several spots, so a co-spot\nlane showing educt AND product is simply two spots on one lane. Every\nspot is annotated with its Rf value so the sketch can be read off.\n\nNot this tool for: the reaction scheme of the reaction being monitored\n(generate_reaction), or a spectrum (generate_spectrum).\n\nArgs:\n    lanes: The lanes from left to right, e.g.\n        [{\"name\": \"Edukt\", \"spots\": [{\"rf\": 0.30, \"label\": \"Säure\"}]},\n         {\"name\": \"Reaktion\", \"spots\": [{\"rf\": 0.65, \"label\": \"Ester\"}]},\n         {\"name\": \"Co-Spot\", \"spots\": [{\"rf\": 0.30}, {\"rf\": 0.65}]}]\n        rf must lie between 0 and 1 — it is a ratio (distance travelled\n        by the substance / distance travelled by the front), so values\n        outside that range are rejected instead of silently clipped.\n        label (optional) names the substance at that spot; intensity\n        (optional, 0…1, default 1) draws a faint spot fainter.\n    title: Shown in the plot title and used for the filename, e.g.\n        \"Veresterung Ansatz 2\" (free text, can be localized).\n    solvent: Mobile phase / eluent as it goes into the report, e.g.\n        \"Toluol/Ethylacetat 8:2\" — printed as a caption on the sketch.\n    detection: How the spots were visualized, e.g. \"UV 254 nm\", \"Iod\",\n        \"Ninhydrin\" — printed next to the mobile phase.\n    formats: Output file formats, any of \"png\", \"svg\" (default: both).\n        CDXML is not available for plates.","inputSchema":{"$defs":{"TlcLane":{"description":"One application point on the plate, e.g. \"Edukt\" or \"Co-Spot\".","properties":{"name":{"title":"Name","type":"string"},"spots":{"default":[],"items":{"$ref":"#/$defs/TlcSpot"},"title":"Spots","type":"array"}},"required":["name"],"title":"TlcLane","type":"object"},"TlcSpot":{"description":"One spot on a TLC lane. rf is the ratio substance/front (0…1).","properties":{"intensity":{"default":1.0,"title":"Intensity","type":"number"},"label":{"default":"","title":"Label","type":"string"},"rf":{"title":"Rf","type":"number"}},"required":["rf"],"title":"TlcSpot","type":"object"}},"properties":{"detection":{"default":"","title":"Detection","type":"string"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"lanes":{"items":{"$ref":"#/$defs/TlcLane"},"title":"Lanes","type":"array"},"solvent":{"default":"","title":"Solvent","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"required":["lanes"],"title":"generate_tlcArguments","type":"object"},"name":"generate_tlc","outputSchema":{"$defs":{"TlcLane":{"description":"One application point on the plate, e.g. \"Edukt\" or \"Co-Spot\".","properties":{"name":{"title":"Name","type":"string"},"spots":{"default":[],"items":{"$ref":"#/$defs/TlcSpot"},"title":"Spots","type":"array"}},"required":["name"],"title":"TlcLane","type":"object"},"TlcSpot":{"description":"One spot on a TLC lane. rf is the ratio substance/front (0…1).","properties":{"intensity":{"default":1.0,"title":"Intensity","type":"number"},"label":{"default":"","title":"Label","type":"string"},"rf":{"title":"Rf","type":"number"}},"required":["rf"],"title":"TlcSpot","type":"object"}},"properties":{"detection":{"default":"","title":"Detection","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"lanes":{"default":[],"items":{"$ref":"#/$defs/TlcLane"},"title":"Lanes","type":"array"},"name":{"default":"","title":"Name","type":"string"},"solvent":{"default":"","title":"Solvent","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"tlc","title":"Type","type":"string"}},"title":"TlcPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Export an Anki flashcard deck (.apkg) with rendered chemistry images.\n\nUse this whenever the user wants flashcards, Anki cards or a study deck\nfor molecules, reactions (e.g. pharmacopoeia identity tests) or spectra.\nA stated intention to learn or an exam coming up is the same request:\noffer a deck and write the cards yourself.\n\nTwo ways to fill the deck. Either pass `cards` you wrote yourself, or\npass `curated_deck_id` for a ready-made, formula-verified starter deck:\n\n- \"analgesics-structures\": structure → name drills for 8 classic\n  analgesics (NSAIDs, paracetamol, morphine, celecoxib).\n- \"pheur-identity-basics\": classic Ph.Eur. identity tests — reagent,\n  observation and reaction scheme where it helps.\n\nThe tool renders the images — YOU supply the card content from your\nknowledge. Each card side carries text plus at\nmost ONE visual: structure (name or SMILES), reaction ({reactants,\nproducts, conditions}) or spectrum ({spectrum_type, peaks, title}).\nProven types: structure↔name, identity reactions (question front, scheme\nback), functional-group recognition, band assignment, name drills.\n\nRe-exporting under the SAME deck name updates existing cards instead of\nduplicating them — the front identifies the card.\n\nOptions: reversed=true drills both directions (one note, two cards);\ncloze=true makes fill-in-the-blank cards (front.text carries {{c1::...}},\nback.text becomes the extra note). \"Parent::Child\" nests subdecks.\n\nIMPORTANT: structures take English/IUPAC names or SMILES; card TEXTS may\nbe localized. Never deliver via AnkiConnect unless asked.\n\nArgs:\n    deck_name: Deck name, also the filename; re-use it to update a deck.\n        Ignored when curated_deck_id is set.\n    cards: The flashcards. Fronts unambiguous, explanations on the back.\n    default_tags: Tags added to every card.\n    deliver: \"apkg\" (file only), \"open\" (also opens it in Anki, macOS)\n        or \"ankiconnect\" (imports via the AnkiConnect add-on).\n    curated_deck_id: \"analgesics-structures\" or \"pheur-identity-basics\".","inputSchema":{"$defs":{"AnkiCard":{"properties":{"back":{"$ref":"#/$defs/CardSide"},"cloze":{"default":false,"title":"Cloze","type":"boolean"},"front":{"$ref":"#/$defs/CardSide"},"reversed":{"default":false,"title":"Reversed","type":"boolean"},"tags":{"default":[],"items":{"type":"string"},"title":"Tags","type":"array"}},"required":["front","back"],"title":"AnkiCard","type":"object"},"CardSide":{"description":"One side of an Anki card: text plus at most one rendered visual.","properties":{"reaction":{"anyOf":[{"$ref":"#/$defs/ReactionSpec"},{"type":"null"}],"default":null},"spectrum":{"anyOf":[{"$ref":"#/$defs/SpectrumSpec"},{"type":"null"}],"default":null},"structure":{"default":"","title":"Structure","type":"string"},"text":{"default":"","title":"Text","type":"string"}},"title":"CardSide","type":"object"},"ReactionSpec":{"description":"Reaction visual on an Anki card side (names or SMILES).","properties":{"conditions":{"default":"","title":"Conditions","type":"string"},"products":{"items":{"type":"string"},"title":"Products","type":"array"},"reactants":{"items":{"type":"string"},"title":"Reactants","type":"array"}},"required":["reactants","products"],"title":"ReactionSpec","type":"object"},"SpectrumPeak":{"properties":{"intensity":{"default":1.0,"title":"Intensity","type":"number"},"label":{"default":"","title":"Label","type":"string"},"position":{"title":"Position","type":"number"},"width":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Width"}},"required":["position"],"title":"SpectrumPeak","type":"object"},"SpectrumSpec":{"description":"Spectrum visual on an Anki card side.","properties":{"peaks":{"items":{"$ref":"#/$defs/SpectrumPeak"},"title":"Peaks","type":"array"},"spectrum_type":{"title":"Spectrum Type","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"required":["spectrum_type","peaks"],"title":"SpectrumSpec","type":"object"}},"properties":{"cards":{"anyOf":[{"items":{"$ref":"#/$defs/AnkiCard"},"type":"array"},{"type":"null"}],"default":null,"title":"Cards"},"curated_deck_id":{"default":"","title":"Curated Deck Id","type":"string"},"deck_name":{"default":"","title":"Deck Name","type":"string"},"default_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Default Tags"},"deliver":{"default":"apkg","title":"Deliver","type":"string"}},"title":"export_anki_deckArguments","type":"object"},"name":"export_anki_deck","outputSchema":{"properties":{"cards":{"title":"Cards","type":"integer"},"delivery":{"default":"apkg","title":"Delivery","type":"string"},"file":{"default":"","title":"File","type":"string"},"fronts":{"default":[],"items":{"type":"string"},"title":"Fronts","type":"array"},"media":{"title":"Media","type":"integer"},"name":{"title":"Name","type":"string"},"type":{"default":"anki_deck","title":"Type","type":"string"}},"required":["name","cards","media"],"title":"AnkiDeckPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a titration curve: weak (or polyprotic) acid vs. strong base.\n\nComputes pH against titrant volume from the exact charge balance and\nmarks equivalence points (per protolysis step), the buffer points\n(pH = pKa at half-equivalence) and optionally the indicator transition\nrange as a shaded band.\n\nUse this when the user asks about titrations, equivalence points,\nbuffer regions or indicator choice. YOU supply the substance data from\nyour knowledge: pKa values in ascending order, sensible concentrations\n(0.1 M is the classic teaching case) and the indicator's transition range.\n\nNot this tool for: which species dominates at a given pH, or the degree\nof ionization across the pH range (use generate_species_distribution).\nA single pH value as a number is not drawn — that is calculate_ph, which\nsolves the same charge balance and shows the working; this tool only draws.\n\nArgs:\n    substance: Display name, e.g. \"Acetic acid with NaOH\" (localizable).\n    pka_values: pKa per protolysis step, ascending (1-3 values).\n    c_acid: Acid concentration in mol/L.\n    v_acid_ml: Initial acid volume in mL.\n    c_titrant: Titrant (strong base) concentration in mol/L.\n    indicator: Optional {\"name\": \"...\", \"ph_range\": [low, high]}.","inputSchema":{"properties":{"c_acid":{"title":"C Acid","type":"number"},"c_titrant":{"title":"C Titrant","type":"number"},"indicator":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Indicator"},"pka_values":{"items":{"type":"number"},"title":"Pka Values","type":"array"},"substance":{"title":"Substance","type":"string"},"v_acid_ml":{"title":"V Acid Ml","type":"number"}},"required":["substance","pka_values","c_acid","v_acid_ml","c_titrant"],"title":"generate_titration_curveArguments","type":"object"},"name":"generate_titration_curve","outputSchema":{"description":"Generic rendered diagram (titration curve, species distribution, …).","properties":{"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"title":"Name","type":"string"},"notes":{"default":[],"items":{"type":"string"},"title":"Notes","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"plot","title":"Type","type":"string"}},"required":["name"],"title":"PlotPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw the species distribution of an acid over pH (Henderson-Hasselbalch).\n\nPlots the fraction α of every protonation species against pH with the\npKa values marked — the standard diagram for absorption/distribution\nreasoning in pharmacy.\n\nUse this when the user asks which species dominates at a given pH, about\ndegree of ionization, or absorption across membranes. YOU supply pKa\nvalues (ascending) from your knowledge; pass species labels (formulas like\n\"H₂PO₄⁻\") for a readable legend.\n\nNot this tool for: pH against added titrant volume, equivalence points or\nindicator choice (use generate_titration_curve). It answers \"which species\nwhen\", not \"what pH do I have\" — the pH of a solution or buffer, or the\nionised fraction at one pH, as a number is calculate_ph.\n\nArgs:\n    substance: Display name, e.g. \"Phosphoric acid\" (localizable).\n    pka_values: pKa per protolysis step, ascending.\n    labels: Optional species labels, most protonated first\n        (len = len(pka_values) + 1).","inputSchema":{"properties":{"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Labels"},"pka_values":{"items":{"type":"number"},"title":"Pka Values","type":"array"},"substance":{"title":"Substance","type":"string"}},"required":["substance","pka_values"],"title":"generate_species_distributionArguments","type":"object"},"name":"generate_species_distribution","outputSchema":{"description":"Generic rendered diagram (titration curve, species distribution, …).","properties":{"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"title":"Name","type":"string"},"notes":{"default":[],"items":{"type":"string"},"title":"Notes","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"plot","title":"Type","type":"string"}},"required":["name"],"title":"PlotPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Compare 2-4 molecules side by side with their DIFFERENCES highlighted.\n\nComputes the maximum common substructure (MCS): the shared scaffold\nstays neutral, everything outside it is highlighted — ideal for\nteaching drug classes (\"what distinguishes ibuprofen from naproxen?\"),\nhomologous series or derivatives.\n\nUse this when the user wants to compare structures, see differences\nbetween compounds, or study a drug class.\n\nReach for it in conversation too, not only on request: the word\n\"difference\" in a question about two substances is the trigger. Answering\n\"what distinguishes ibuprofen from naproxen?\" in prose leaves the reader\nto find the difference in two separate pictures — this figure marks it.\n\nNot this tool for: a single structure (generate_molecule), or several\nstructures that are merely to be drawn rather than contrasted\n(batch_generate).\n\nArgs:\n    structures: 2-4 English/IUPAC names or SMILES strings.\n    labels: Optional display names under each panel (localizable).\n    title: Optional heading for the comparison (localizable).","inputSchema":{"properties":{"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Labels"},"structures":{"items":{"type":"string"},"title":"Structures","type":"array"},"title":{"default":"","title":"Title","type":"string"}},"required":["structures"],"title":"compare_moleculesArguments","type":"object"},"name":"compare_molecules","outputSchema":{"description":"Generic rendered diagram (titration curve, species distribution, …).","properties":{"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"title":"Name","type":"string"},"notes":{"default":[],"items":{"type":"string"},"title":"Notes","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"plot","title":"Type","type":"string"}},"required":["name"],"title":"PlotPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Generate a 3D conformer shown as an interactive, rotatable model.\n\nEmbeds the molecule in 3D (ETKDGv3 + force-field optimization, explicit\nhydrogens) and opens a drag-to-rotate ball-and-stick viewer in the chat\npanel. Also writes an SDF file for molecular modelling tools.\n\nUse this when the user asks about 3D structure, molecular geometry\n(tetrahedral, planar...), conformation or spatial arrangement.\n\nNot this tool for: a flat 2D structure drawing, a Fischer/Haworth\nprojection or a chair drawing — use generate_molecule. Nor for a\nprotein, enzyme or antibody, also its 3D structure — use generate_protein_or_antibody\n(its panel rotates); its function or EC number — use lookup, \"biochem\".\n\nIMPORTANT: Pass English/IUPAC names or SMILES; use label for the\nlocalized display name.\n\nArgs:\n    name_or_smiles: English/IUPAC compound name or SMILES string.\n    label: Optional display name (localizable).","inputSchema":{"properties":{"label":{"default":"","title":"Label","type":"string"},"name_or_smiles":{"title":"Name Or Smiles","type":"string"}},"required":["name_or_smiles"],"title":"generate_3dArguments","type":"object"},"name":"generate_3d","outputSchema":{"$defs":{"ProteinView":{"description":"Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).","properties":{"chains":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Chains","type":"array"},"citation":{"default":"","title":"Citation","type":"string"},"colorBy":{"default":"ss","title":"Colorby","type":"string"},"identifier":{"default":"","title":"Identifier","type":"string"},"ligands":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Ligands","type":"array"},"plddtMean":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Plddtmean"},"scheme":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Scheme"},"source":{"default":"","title":"Source","type":"string"},"ssSource":{"default":"deposited","title":"Sssource","type":"string"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"title":"ProteinView","type":"object"}},"description":"3D conformer for the interactive panel viewer (ball-and-stick).","properties":{"atoms":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Atoms","type":"array"},"bonds":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Bonds","type":"array"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"message":{"default":"","title":"Message","type":"string"},"name":{"title":"Name","type":"string"},"protein":{"anyOf":[{"$ref":"#/$defs/ProteinView"},{"type":"null"}],"default":null},"subtitle":{"default":"","title":"Subtitle","type":"string"},"type":{"default":"molecule3d","title":"Type","type":"string"}},"required":["name"],"title":"Molecule3DPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a protein, enzyme or antibody as a cartoon (ribbon diagram).\n\nFetches its structure from the PDB (AlphaFold model if there is none) and\nwrites PNG/SVG files plus a rotatable panel: helices as spirals, strands as\narrows, bound groups such as heme or zinc as sticks. Works for enzyme and\nprotein names (lysozyme, trypsin, hemoglobin, insulin), gene symbols\n(RecA), antibody INNs (trastuzumab) and a plain \"antibody\" or \"IgG\".\nAntibodies come with the IgG domain scheme; an antibody without a known\nstructure shows the architecture of an intact IgG. A protein's 3D\nstructure is this tool too — the panel rotates.\n\nNot this tool for: a small molecule, a peptide sequence or any skeletal\nformula (use generate_molecule); a small molecule as a 3D model (use\ngenerate_3d); a protein's function, EC number or cofactors as text (use\nlookup, topic \"biochem\").\n\nArgs:\n    name: English protein, enzyme, gene or antibody name (\"lysozyme\",\n        \"trastuzumab\", \"antibody\"); an organism may follow (\"human\n        lysozyme\").\n    formats: \"png\", \"svg\" (default both). A cartoon has no CDXML.","inputSchema":{"properties":{"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"generate_protein_or_antibodyArguments","type":"object"},"name":"generate_protein_or_antibody","outputSchema":{"$defs":{"AtomData":{"properties":{"charge":{"default":0,"title":"Charge","type":"integer"},"el":{"title":"El","type":"string"},"hCount":{"default":0,"title":"Hcount","type":"integer"},"idx":{"title":"Idx","type":"integer"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["idx","el","x","y"],"title":"AtomData","type":"object"},"FunctionalGroup":{"properties":{"atomIndices":{"default":[],"items":{"type":"integer"},"title":"Atomindices","type":"array"},"color":{"default":"#999999","title":"Color","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"FunctionalGroup","type":"object"},"IsomerCandidate":{"description":"One structure a family name (\"xylene\", \"Glucose\") can mean.","properties":{"label":{"title":"Label","type":"string"},"name":{"default":"","title":"Name","type":"string"},"smiles":{"title":"Smiles","type":"string"},"svg":{"default":"","title":"Svg","type":"string"}},"required":["label","smiles"],"title":"IsomerCandidate","type":"object"},"LipinskiData":{"properties":{"hba":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hba"},"hbd":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hbd"},"logP":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Logp"},"mw":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Mw"},"passes":{"default":false,"title":"Passes","type":"boolean"},"violations":{"default":0,"title":"Violations","type":"integer"}},"title":"LipinskiData","type":"object"},"ProteinView":{"description":"Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).","properties":{"chains":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Chains","type":"array"},"citation":{"default":"","title":"Citation","type":"string"},"colorBy":{"default":"ss","title":"Colorby","type":"string"},"identifier":{"default":"","title":"Identifier","type":"string"},"ligands":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Ligands","type":"array"},"plddtMean":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Plddtmean"},"scheme":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Scheme"},"source":{"default":"","title":"Source","type":"string"},"ssSource":{"default":"deposited","title":"Sssource","type":"string"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"title":"ProteinView","type":"object"},"StereoWarning":{"description":"Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.","properties":{"atoms":{"default":[],"items":{"type":"integer"},"title":"Atoms","type":"array"},"kind":{"title":"Kind","type":"string"},"label":{"default":"","title":"Label","type":"string"}},"required":["kind"],"title":"StereoWarning","type":"object"}},"description":"Protein instead of a skeletal formula: cartoon (generate_molecule).","properties":{"atoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Atoms","type":"array"},"candidates":{"default":[],"items":{"$ref":"#/$defs/IsomerCandidate"},"title":"Candidates","type":"array"},"cdxml_path":{"default":"","title":"Cdxml Path","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"foundAs":{"default":"","title":"Foundas","type":"string"},"functionalGroups":{"default":[],"items":{"$ref":"#/$defs/FunctionalGroup"},"title":"Functionalgroups","type":"array"},"initialView":{"default":"","title":"Initialview","type":"string"},"lipinski":{"anyOf":[{"$ref":"#/$defs/LipinskiData"},{"type":"null"}],"default":null},"message":{"default":"","title":"Message","type":"string"},"name":{"default":"","title":"Name","type":"string"},"projectionNote":{"default":"","title":"Projectionnote","type":"string"},"properties":{"additionalProperties":{"type":"string"},"default":{},"title":"Properties","type":"object"},"protein":{"anyOf":[{"$ref":"#/$defs/ProteinView"},{"type":"null"}],"default":null},"stereoNote":{"default":"","title":"Stereonote","type":"string"},"stereoWarnings":{"default":[],"items":{"$ref":"#/$defs/StereoWarning"},"title":"Stereowarnings","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"protein","title":"Type","type":"string"},"viewAtoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Viewatoms","type":"array"},"viewRequest":{"additionalProperties":true,"default":{},"title":"Viewrequest","type":"object"},"viewSvg":{"default":"","title":"Viewsvg","type":"string"},"views":{"default":[],"items":{"type":"string"},"title":"Views","type":"array"}},"title":"ProteinPayload","type":"object"}},{"description":"Calculate pH, buffer composition and buffer recipes, with the working.\n\nSolves the exact charge balance — the same one that draws the titration\ncurve — and puts the textbook approximation next to it. Where the two\ndisagree, the approximation has lost its assumptions and the answer says\nso instead of quietly being wrong.\n\nPick the `topic`: \"weak_acid\", \"weak_base\", \"strong_acid\", \"strong_base\",\n\"buffer\" (ratio and capacity), \"buffer_recipe\" (masses to weigh) or\n\"ionisation\" (charged and uncharged fraction of a drug at one pH).\nYou supply the pKa values from the monograph or table.\n\nNot this tool for: drawing pH against titrant volume, equivalence points\nor indicator choice (use generate_titration_curve), or drawing the species\nfractions across the whole pH range (use generate_species_distribution) —\nthis one computes, those draw.\n\nArgs:\n    topic: Which case to solve.\n    concentration: Concentration in mol/L.\n    pka: pKa of the acid, or of the conjugate acid of a base.\n    pkb: pKb of the base.\n    pka_values: All pKa values of a polyprotic acid, in order.\n    acid_concentration: [HA] in mol/L.\n    base_concentration: [A⁻] in mol/L.\n    target_ph: Wanted pH (\"buffer_recipe\") or medium pH (\"ionisation\").\n    total_concentration: [HA] + [A⁻] in mol/L.\n    volume_ml: Buffer volume in mL.\n    acid_molar_mass: Acid component, g/mol.\n    base_molar_mass: Base component, g/mol.\n    drug_type: \"acid\" or \"base\" (\"ionisation\").","inputSchema":{"properties":{"acid_concentration":{"default":0.0,"title":"Acid Concentration","type":"number"},"acid_molar_mass":{"default":0.0,"title":"Acid Molar Mass","type":"number"},"base_concentration":{"default":0.0,"title":"Base Concentration","type":"number"},"base_molar_mass":{"default":0.0,"title":"Base Molar Mass","type":"number"},"concentration":{"default":0.0,"title":"Concentration","type":"number"},"drug_type":{"default":"acid","enum":["acid","base"],"title":"Drug Type","type":"string"},"pka":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Pka"},"pka_values":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"default":null,"title":"Pka Values"},"pkb":{"default":0.0,"title":"Pkb","type":"number"},"target_ph":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Target Ph"},"topic":{"enum":["weak_acid","weak_base","strong_acid","strong_base","buffer","buffer_recipe","ionisation"],"title":"Topic","type":"string"},"total_concentration":{"default":0.0,"title":"Total Concentration","type":"number"},"volume_ml":{"default":0.0,"title":"Volume Ml","type":"number"}},"required":["topic"],"title":"calculate_phArguments","type":"object"},"name":"calculate_ph","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"calculate_phOutput","type":"object"}},{"description":"Say what a spectrum of this structure should show — or read a band.\n\nThree questions, all of them exam material:\n\n- \"ir_bands\": which IR bands to expect for a structure, with range,\n  intensity and band shape, ordered as you read a spectrum (high\n  wavenumber first). Needs `structure`.\n- \"assign_wavenumber\": you measured a band — which groups absorb there?\n  Ordered by how centrally the value sits in each range. Needs\n  `wavenumber` in cm⁻¹.\n- \"nmr_signals\": how many ¹H signals the structure gives and in what\n  integral ratio. Needs `structure`.\n\nDeterministic on purpose, and therefore honestly limited: band positions\ncome from a curated table matched to the structure, signals from the\ntopological equivalence of the protons. It does NOT predict chemical\nshifts in ppm — that would take a model and would be guesswork.\n\nThe band list is ready to hand to generate_spectrum if a drawing is\nwanted; this tool only says what to expect.\n\nNot this tool for: drawing a spectrum from peaks you already have\n(generate_spectrum), or looking up measured data for a substance\n(lookup).\n\nArgs:\n    topic: Which question to answer — see the list above.\n    structure: English/IUPAC name or SMILES of the compound\n        (\"ir_bands\", \"nmr_signals\").\n    wavenumber: Measured band position in cm⁻¹ (\"assign_wavenumber\").","inputSchema":{"properties":{"structure":{"default":"","title":"Structure","type":"string"},"topic":{"enum":["ir_bands","assign_wavenumber","nmr_signals"],"title":"Topic","type":"string"},"wavenumber":{"default":0.0,"title":"Wavenumber","type":"number"}},"required":["topic"],"title":"predict_spectrumArguments","type":"object"},"name":"predict_spectrum","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"predict_spectrumOutput","type":"object"}},{"description":"Fetch a specific fact or value about a compound as plain text.\n\nUse it when the request asks for a named piece of data — pick the `topic`:\n\n- \"properties\" (default): formula, molecular weight, CAS number,\n  IUPAC name, LogP, InChIKey (PubChem).\n- \"safety\": GHS hazards — H/P statements, pictograms, signal word.\n  For lab protocols and risk assessments.\n- \"physical\": experimental melting point, boiling point, density,\n  solubility.\n- \"biochem\": compound class and biological role (ChEBI), related\n  enzymes and proteins (UniProt); for a protein, enzyme or antibody\n  name, its UniProt data sheet (function, EC, length, PDB). Drawing\n  a protein is generate_protein_or_antibody, not this tool.\n- \"pathway\": metabolic pathways the compound appears in (KEGG).\n\nNot this tool for: a bare compound name with no named value asked for —\nthat means show the substance, use generate_molecule. Nor for a visual\ndata sheet with the structure beside the facts — use lookup_molecule_data.\nNor for the IR bands or ¹H signals a structure should give — derived\nfrom the structure, not looked up — use predict_spectrum.\nThis tool draws nothing; it returns text.\n\nIMPORTANT: Always pass English or IUPAC compound names, never localized\nnames — 'Aspirin' not 'Acetylsalicylsäure', 'Caffeine' not 'Coffein'.\n\nArgs:\n    name: English/IUPAC compound name (e.g. 'Aspirin', 'Histidine').\n    topic: Which facts to fetch — see the list above.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"topic":{"default":"properties","enum":["properties","safety","physical","biochem","pathway"],"title":"Topic","type":"string"}},"required":["name"],"title":"lookupArguments","type":"object"},"name":"lookup","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"lookupOutput","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Show a compound's data sheet: structure, PubChem properties and GHS safety.\n\nUse it for a data sheet or facts available from those sources. The molecule\npanel also calls this tool when the user clicks Data. Internet access is\nrequired. Missing values are not evidence that a property or hazard is absent.\n\nNot this tool for: a bare compound name with no data requested — use\ngenerate_molecule; one named value as text, or physical constants, biological\nrole or metabolic pathways — use lookup. Pass English or IUPAC names, or SMILES.\n\nArgs:\n        name: English/IUPAC compound name or SMILES (e.g. 'Aspirin').\n    ","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"lookup_molecule_dataArguments","type":"object"},"name":"lookup_molecule_data","outputSchema":{"$defs":{"AtomData":{"properties":{"charge":{"default":0,"title":"Charge","type":"integer"},"el":{"title":"El","type":"string"},"hCount":{"default":0,"title":"Hcount","type":"integer"},"idx":{"title":"Idx","type":"integer"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["idx","el","x","y"],"title":"AtomData","type":"object"},"DatabaseRow":{"properties":{"key":{"title":"Key","type":"string"},"val":{"title":"Val","type":"string"}},"required":["key","val"],"title":"DatabaseRow","type":"object"},"DatabaseSource":{"properties":{"groups":{"default":[],"items":{"$ref":"#/$defs/GhsGroup"},"title":"Groups","type":"array"},"note":{"default":"","title":"Note","type":"string"},"rows":{"default":[],"items":{"$ref":"#/$defs/DatabaseRow"},"title":"Rows","type":"array"},"source":{"title":"Source","type":"string"},"status":{"default":"","title":"Status","type":"string"},"type":{"title":"Type","type":"string"},"url":{"title":"Url","type":"string"}},"required":["type","source","url"],"title":"DatabaseSource","type":"object"},"FunctionalGroup":{"properties":{"atomIndices":{"default":[],"items":{"type":"integer"},"title":"Atomindices","type":"array"},"color":{"default":"#999999","title":"Color","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"FunctionalGroup","type":"object"},"GhsGroup":{"description":"Die Einstufung EINER Quelle (PubChem ReferenceNumber).","properties":{"hazards":{"default":[],"items":{"$ref":"#/$defs/GhsHazard"},"title":"Hazards","type":"array"},"id":{"title":"Id","type":"string"},"lead":{"default":false,"title":"Lead","type":"boolean"},"not_classified":{"anyOf":[{"$ref":"#/$defs/GhsNotClassified"},{"type":"null"}],"default":null},"note":{"default":"","title":"Note","type":"string"},"p_codes":{"default":[],"items":{"type":"string"},"title":"P Codes","type":"array"},"pictograms":{"default":[],"items":{"type":"string"},"title":"Pictograms","type":"array"},"record_name":{"default":"","title":"Record Name","type":"string"},"reports_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Reports Total"},"signal":{"default":"","title":"Signal","type":"string"},"source":{"title":"Source","type":"string"},"url":{"default":"","title":"Url","type":"string"}},"required":["id","source"],"title":"GhsGroup","type":"object"},"GhsHazard":{"properties":{"code":{"title":"Code","type":"string"},"percent":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Percent"},"text":{"default":"","title":"Text","type":"string"}},"required":["code"],"title":"GhsHazard","type":"object"},"GhsNotClassified":{"description":"Eine Quelle meldet ausdruecklich \"erfuellt die GHS-Kriterien nicht\".","properties":{"percent":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Percent"},"reports":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Reports"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Total"}},"title":"GhsNotClassified","type":"object"},"StereoWarning":{"description":"Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.","properties":{"atoms":{"default":[],"items":{"type":"integer"},"title":"Atoms","type":"array"},"kind":{"title":"Kind","type":"string"},"label":{"default":"","title":"Label","type":"string"}},"required":["kind"],"title":"StereoWarning","type":"object"}},"properties":{"atoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Atoms","type":"array"},"foundAs":{"default":"","title":"Foundas","type":"string"},"functionalGroups":{"default":[],"items":{"$ref":"#/$defs/FunctionalGroup"},"title":"Functionalgroups","type":"array"},"molecule_svg":{"default":"","title":"Molecule Svg","type":"string"},"name":{"default":"","title":"Name","type":"string"},"smiles":{"default":"","title":"Smiles","type":"string"},"sources":{"default":[],"items":{"$ref":"#/$defs/DatabaseSource"},"title":"Sources","type":"array"},"stereoNote":{"default":"","title":"Stereonote","type":"string"},"stereoWarnings":{"default":[],"items":{"$ref":"#/$defs/StereoWarning"},"title":"Stereowarnings","type":"array"},"type":{"default":"database","title":"Type","type":"string"}},"title":"DatabasePayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a reaction scheme from reactants, products and conditions.\n\nWrites PNG/SVG files and returns a panel with conditions above and below the\narrow. arrow: \"forward\" (→), \"equilibrium\" (⇌, reversible) or \"retro\" (⇒).\nUse it when explaining a reaction as well as for explicit drawing requests.\nPass English or IUPAC compound names, or SMILES.\n\nNot this tool for: the step-by-step SN1, SN2 or Fischer esterification\nmechanism with electron-flow arrows (use generate_mechanism); a TLC plate\nsketch from Rf values, even of a reaction mixture (use generate_tlc); one compound or\na property of one compound such as its acidity (use generate_molecule),\nindependent structures (use batch_generate), or structural differences (use\ncompare_molecules).\n\nCurved-arrow mechanisms are drawn only for SN1, SN2 and Fischer esterification\n(generate_mechanism). For any other mechanism, such as Diels–Alder, draw the\nnet scheme here and tell the user that the arrow mechanism is not drawn.\n\nArgs:\n    reactants: English/IUPAC reactant names or SMILES.\n    products: English/IUPAC product names or SMILES.\n    conditions: Text above the arrow (e.g. 'H2SO4, 0-5 °C'); formula\n        digits are subscripted.\n    conditions_below: Text under the arrow (e.g. 'reflux, 2 h').\n    arrow: \"forward\" (→), \"equilibrium\" (⇌) or \"retro\" (⇒, target as\n        reactants, precursors as products).\n    name: Display name (can be localized).\n    formats: Any of \"png\", \"svg\", \"cdxml\" (default png + svg); \"cdxml\"\n        only for editing in ChemDraw.\n    abbreviate_groups: True draws common substituents as labels (Ph,\n        OAc, tBu …); the CDXML keeps full structures.\n    render_style: \"\" standard · \"compact\" small print · \"presentation\"\n        slides · \"grayscale\" b/w palette.\n    coefficients: One integer per species, reactants then products\n        ([2, 1, 2] draws 2 H2 + O2 → 2 H2O). Set only when the user asks\n        for a balanced equation; otherwise draw as given — the panel's\n        \"Apply coefficients\" button sets them.","inputSchema":{"properties":{"abbreviate_groups":{"default":false,"title":"Abbreviate Groups","type":"boolean"},"arrow":{"default":"forward","enum":["forward","equilibrium","retro"],"title":"Arrow","type":"string"},"coefficients":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Coefficients"},"conditions":{"default":"","title":"Conditions","type":"string"},"conditions_below":{"default":"","title":"Conditions Below","type":"string"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"name":{"default":"","title":"Name","type":"string"},"products":{"items":{"type":"string"},"title":"Products","type":"array"},"reactants":{"items":{"type":"string"},"title":"Reactants","type":"array"},"render_style":{"default":"","title":"Render Style","type":"string"}},"required":["reactants","products"],"title":"generate_reactionArguments","type":"object"},"name":"generate_reaction","outputSchema":{"$defs":{"MolEntry":{"properties":{"coefficient":{"default":1,"title":"Coefficient","type":"integer"},"name":{"default":"","title":"Name","type":"string"},"svg":{"default":"","title":"Svg","type":"string"}},"title":"MolEntry","type":"object"},"ReactionBalance":{"description":"Atom and charge balance of the equation as drawn (all coefficients 1).","properties":{"balanced":{"title":"Balanced","type":"boolean"},"chargeDifference":{"default":0,"title":"Chargedifference","type":"integer"},"difference":{"additionalProperties":{"type":"integer"},"default":{},"title":"Difference","type":"object"},"formulas":{"default":[],"items":{"type":"string"},"title":"Formulas","type":"array"},"note":{"default":"","title":"Note","type":"string"},"suggestedCoefficients":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Suggestedcoefficients"},"suggestedEquation":{"default":"","title":"Suggestedequation","type":"string"},"summary":{"default":"","title":"Summary","type":"string"}},"required":["balanced"],"title":"ReactionBalance","type":"object"}},"properties":{"arrow":{"default":"forward","title":"Arrow","type":"string"},"balance":{"anyOf":[{"$ref":"#/$defs/ReactionBalance"},{"type":"null"}],"default":null},"cdxml_path":{"default":"","title":"Cdxml Path","type":"string"},"coefficients":{"default":[],"items":{"type":"integer"},"title":"Coefficients","type":"array"},"conditions":{"default":"","title":"Conditions","type":"string"},"conditions_below":{"default":"","title":"Conditions Below","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"default":"","title":"Name","type":"string"},"products":{"default":[],"items":{"$ref":"#/$defs/MolEntry"},"title":"Products","type":"array"},"reactants":{"default":[],"items":{"$ref":"#/$defs/MolEntry"},"title":"Reactants","type":"array"},"request":{"additionalProperties":true,"default":{},"title":"Request","type":"object"},"type":{"default":"reaction","title":"Type","type":"string"}},"title":"ReactionPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw several individual compounds as separate PNG/SVG files and panels.\n\nFailed names are reported in failed while successful structures are returned.\nPass English or IUPAC names, or SMILES.\n\nNot this tool for: one compound (use generate_molecule), structural\ndifferences (use compare_molecules), or a reaction scheme (use generate_reaction).\n\nArgs:\n    molecules: List of English/IUPAC compound names or SMILES strings.\n    formats: Output file formats, any of \"png\", \"svg\", \"cdxml\"\n        (default: [\"png\", \"svg\"]). Include \"cdxml\" ONLY when the user\n        wants to edit the structures in ChemDraw.\n    abbreviate_groups: Set True to draw common substituents as short labels\n        (Ph, Bn, OAc, OMe, CO2H, tBu, Boc, Ts …) instead of full skeletons.\n        Applies to every molecule in the batch, so a series of structures\n        stays visually consistent.\n    render_style: Named look applied to every molecule in the batch. Empty\n        = standard style. \"compact\" for small printed figures,\n        \"presentation\" for slides, \"grayscale\" for grayscale printing.","inputSchema":{"properties":{"abbreviate_groups":{"default":false,"title":"Abbreviate Groups","type":"boolean"},"annotate_stereo":{"default":false,"title":"Annotate Stereo","type":"boolean"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"molecules":{"items":{"type":"string"},"title":"Molecules","type":"array"},"render_style":{"default":"","title":"Render Style","type":"string"}},"required":["molecules"],"title":"batch_generateArguments","type":"object"},"name":"batch_generate","outputSchema":{"$defs":{"AtomData":{"properties":{"charge":{"default":0,"title":"Charge","type":"integer"},"el":{"title":"El","type":"string"},"hCount":{"default":0,"title":"Hcount","type":"integer"},"idx":{"title":"Idx","type":"integer"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["idx","el","x","y"],"title":"AtomData","type":"object"},"FunctionalGroup":{"properties":{"atomIndices":{"default":[],"items":{"type":"integer"},"title":"Atomindices","type":"array"},"color":{"default":"#999999","title":"Color","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"FunctionalGroup","type":"object"},"IsomerCandidate":{"description":"One structure a family name (\"xylene\", \"Glucose\") can mean.","properties":{"label":{"title":"Label","type":"string"},"name":{"default":"","title":"Name","type":"string"},"smiles":{"title":"Smiles","type":"string"},"svg":{"default":"","title":"Svg","type":"string"}},"required":["label","smiles"],"title":"IsomerCandidate","type":"object"},"LipinskiData":{"properties":{"hba":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hba"},"hbd":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hbd"},"logP":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Logp"},"mw":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Mw"},"passes":{"default":false,"title":"Passes","type":"boolean"},"violations":{"default":0,"title":"Violations","type":"integer"}},"title":"LipinskiData","type":"object"},"MoleculePayload":{"properties":{"atoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Atoms","type":"array"},"candidates":{"default":[],"items":{"$ref":"#/$defs/IsomerCandidate"},"title":"Candidates","type":"array"},"cdxml_path":{"default":"","title":"Cdxml Path","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"foundAs":{"default":"","title":"Foundas","type":"string"},"functionalGroups":{"default":[],"items":{"$ref":"#/$defs/FunctionalGroup"},"title":"Functionalgroups","type":"array"},"initialView":{"default":"","title":"Initialview","type":"string"},"lipinski":{"anyOf":[{"$ref":"#/$defs/LipinskiData"},{"type":"null"}],"default":null},"message":{"default":"","title":"Message","type":"string"},"name":{"default":"","title":"Name","type":"string"},"projectionNote":{"default":"","title":"Projectionnote","type":"string"},"properties":{"additionalProperties":{"type":"string"},"default":{},"title":"Properties","type":"object"},"protein":{"anyOf":[{"$ref":"#/$defs/ProteinView"},{"type":"null"}],"default":null},"stereoNote":{"default":"","title":"Stereonote","type":"string"},"stereoWarnings":{"default":[],"items":{"$ref":"#/$defs/StereoWarning"},"title":"Stereowarnings","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"molecule","title":"Type","type":"string"},"viewAtoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Viewatoms","type":"array"},"viewRequest":{"additionalProperties":true,"default":{},"title":"Viewrequest","type":"object"},"viewSvg":{"default":"","title":"Viewsvg","type":"string"},"views":{"default":[],"items":{"type":"string"},"title":"Views","type":"array"}},"title":"MoleculePayload","type":"object"},"ProteinView":{"description":"Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).","properties":{"chains":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Chains","type":"array"},"citation":{"default":"","title":"Citation","type":"string"},"colorBy":{"default":"ss","title":"Colorby","type":"string"},"identifier":{"default":"","title":"Identifier","type":"string"},"ligands":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Ligands","type":"array"},"plddtMean":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Plddtmean"},"scheme":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Scheme"},"source":{"default":"","title":"Source","type":"string"},"ssSource":{"default":"deposited","title":"Sssource","type":"string"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"title":"ProteinView","type":"object"},"StereoWarning":{"description":"Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.","properties":{"atoms":{"default":[],"items":{"type":"integer"},"title":"Atoms","type":"array"},"kind":{"title":"Kind","type":"string"},"label":{"default":"","title":"Label","type":"string"}},"required":["kind"],"title":"StereoWarning","type":"object"}},"properties":{"cdxml_paths":{"default":[],"items":{"type":"string"},"title":"Cdxml Paths","type":"array"},"failed":{"default":[],"items":{"type":"string"},"title":"Failed","type":"array"},"molecules":{"default":[],"items":{"$ref":"#/$defs/MoleculePayload"},"title":"Molecules","type":"array"},"type":{"default":"batch","title":"Type","type":"string"}},"title":"BatchPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Show a reaction mechanism step by step with curved arrows, drawn with the user's own substrates.\n\nThree mechanism families, each with a stated limit:\nSN2 — a methyl, primary or secondary alkyl chloride, bromide or iodide with\none anionic nucleophile (OH⁻, CN⁻, I⁻, Br⁻, RO⁻, N₃⁻, RS⁻/HS⁻); a\nstereocentre is inverted.\nSN1 — a tertiary or benzylic alkyl halide with water, an alcohol or one\nof those anions; an allylic halide is refused (two products).\nFischer esterification — one carboxylic acid with one primary or secondary\nalcohol.\nSubstrates outside the limit return an error that names the reason. Without\nsubstrates, or if the drawing fails, the textbook example is shown and the\nresult says so (substrates_drawn, fallback_reason).\n\nUse this when the user asks about one of these mechanisms, electron-flow\narrows, or wants to see how such a reaction proceeds step by step.\n\nA question that starts \"why does …\" or \"I don't understand why …\" about a\nmechanism is the same request in disguise (\"why does SN2 invert the\ncentre?\"). The arrows ARE the explanation; draw them and explain\nalongside, rather than describing them in words.\n\nNot this tool for: the net equation educt → product without\nintermediates — that is generate_reaction. Only the mechanism types\nlisted in reaction_type exist; for anything else use generate_reaction.\n\nArgs:\n    reaction_type: \"sn2\", \"sn1\" or \"fischer_ester\".\n    substrates: The user's substrates (names or SMILES): halide and nucleophile, or acid and alcohol.\n    current_step: 0 = overview (all steps), 1-N = specific step.","inputSchema":{"properties":{"current_step":{"default":0,"title":"Current Step","type":"integer"},"reaction_type":{"enum":["fischer_ester","sn1","sn2"],"title":"Reaction Type","type":"string"},"substrates":{"items":{"type":"string"},"title":"Substrates","type":"array"}},"required":["reaction_type","substrates"],"title":"generate_mechanismArguments","type":"object"},"name":"generate_mechanism","outputSchema":{"$defs":{"MechanismStepPayload":{"properties":{"is_transition_state":{"default":false,"title":"Is Transition State","type":"boolean"},"label":{"title":"Label","type":"string"},"svg":{"title":"Svg","type":"string"}},"required":["svg","label"],"title":"MechanismStepPayload","type":"object"}},"properties":{"current_step":{"default":0,"title":"Current Step","type":"integer"},"fallback_reason":{"default":"","title":"Fallback Reason","type":"string"},"name":{"title":"Name","type":"string"},"notes":{"default":[],"items":{"type":"string"},"title":"Notes","type":"array"},"reaction_type":{"title":"Reaction Type","type":"string"},"reversible":{"default":false,"title":"Reversible","type":"boolean"},"steps":{"items":{"$ref":"#/$defs/MechanismStepPayload"},"title":"Steps","type":"array"},"substrates_drawn":{"default":false,"title":"Substrates Drawn","type":"boolean"},"type":{"default":"mechanism","title":"Type","type":"string"}},"required":["name","reaction_type","steps"],"title":"MechanismPayload","type":"object"}},{"description":"Internal helper for the panel UI — never call this directly.\n\nThe panel's export button calls it when the image clipboard is blocked\nby the sandbox; saving a picture is the user's click, not yours. The\ngenerate_* tools already write their PNG and SVG files themselves.\n\nExpects a base64 PNG (with or without a `data:image/png;base64,`\nprefix) and returns the path it was written to.","inputSchema":{"properties":{"filename":{"title":"Filename","type":"string"},"png_base64":{"title":"Png Base64","type":"string"}},"required":["png_base64","filename"],"title":"save_pngArguments","type":"object"},"name":"save_png","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"save_pngOutput","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T05:42:52.014Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:42:54.002Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Draw chemical structures and reaction schemes as PNG/SVG files with an\ninteractive panel, and compute the numbers behind them.\n\n- A bare compound name (\"caffeine\") means generate_molecule. Use it also\n  while explaining a compound when its structure helps.\n- A protein, enzyme or antibody name (lysozyme, trastuzumab):\n  generate_protein_or_antibody draws its cartoon from the PDB; do not sketch your own.\n- A pH, buffer recipe or degree of ionisation asked as a number:\n  calculate_ph, also when you could work it out yourself — it solves the\n  exact charge balance and shows the approximation beside it.\n- Several individual structures: batch_generate.\n- Structural differences between two to four compounds: compare_molecules.\n- Reactants, products and conditions: generate_reaction.\n- SN1, SN2 or Fischer esterification step by step with curved arrows:\n  generate_mechanism (draws the user's substrates within each family's limit;\n  other mechanisms are not drawn).\n- Shape in space (geometry, conformation, a rotatable model): generate_3d;\n  a chair drawing: generate_molecule, view \"chair\".\n- One named value as text (CAS number, melting point, GHS hazards, biological\n  role, pathways): lookup.\n- Which IR bands or how many ¹H NMR signals a structure should give, or which\n  group absorbs at a measured wavenumber: predict_spectrum.\n- Any spectrum picture (IR, NMR, MS, UV/Vis), also \"schematic\" and without\n  peak values: generate_spectrum, not a generic chart — supply typical\n  literature peaks yourself.\n- A TLC plate sketch from Rf values: generate_tlc.\n- pH against added titrant volume: generate_titration_curve. Fractions of\n  each protonation species across pH 0–14: generate_species_distribution.\n- A compound's data sheet: lookup_molecule_data.\n- The user has to learn or revise something → offer export_anki_deck and\n  write the cards yourself.\n\nPass English or IUPAC compound names; SMILES are always safe. Drawing tools\nwrite their files themselves — never call save_png, that is the panel's\nexport button.\n","protocolVersion":"2025-11-25","serverInfo":{"name":"ChemDraw Tool","version":"0.10.0"}}}}
{"at":"2026-11-23T05:42:54.002Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:42:54.002Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:42:54.005Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw one compound as a 2D structure — the default for a single substance.\n\nWrites PNG/SVG files and an interactive panel (properties, functional\ngroups). A bare compound name (\"caffeine\") also\nmeans this tool, and so does a question about why one compound behaves as it\ndoes (acidity, solubility) — the answer is in its structure.\nA Fischer or Haworth projection of a sugar or amino acid, a chair\nconformation of a cyclohexane or pyranose ring, or a drawing with all H\natoms, is this tool too: set view to \"fischer\", \"haworth\", \"chair\" or \"all_h\".\n\nNot this tool for: several individual structures (use batch_generate),\nstructural differences (use compare_molecules), a reaction scheme (use\ngenerate_reaction), a data sheet (use lookup_molecule_data), a single named\nvalue such as melting point, CAS number or GHS hazards (use lookup), the IR\nbands or ¹H signals to expect (use predict_spectrum), a spectrum drawing (use\ngenerate_spectrum), which species of an acid dominates at a given pH (use\ngenerate_species_distribution), a rotatable 3D model or the shape in space\n(use generate_3d), or a protein, enzyme or antibody (use generate_protein_or_antibody).\n\nArgs:\n    name_or_smiles: English/IUPAC name or SMILES. Peptides:\n        \"Ala-Gly-Ser\" (D-Ala, Ac-, -NH2, cyclo(…)); one-letter only as\n        \"peptide:AGS\" (lowercase = D).\n    label: Display name shown below the structure (may be localized).\n    formats: \"png\", \"svg\", \"cdxml\" (default: png + svg); \"cdxml\" only\n        for editing in ChemDraw.\n    annotate_stereo: True prints CIP descriptors (R/S, E/Z).\n    abbreviate_groups: True draws substituents as short labels (Ph,\n        OAc, Boc, …); chemistry unchanged, no panel tooltips.\n    render_style: \"\" standard, \"compact\" (small print), \"presentation\"\n        (slides) or \"grayscale\".\n    stereo_variants: True returns the stereoisomers of open centers\n        (max 3) as a pick list; only on request.\n    view: \"fischer\"/\"haworth\"/\"chair\"/\"all_h\" opens on that drawing,\n        only if the user names it.","inputSchema":{"properties":{"abbreviate_groups":{"default":false,"title":"Abbreviate Groups","type":"boolean"},"annotate_stereo":{"default":false,"title":"Annotate Stereo","type":"boolean"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"label":{"default":"","title":"Label","type":"string"},"name_or_smiles":{"title":"Name Or Smiles","type":"string"},"render_style":{"default":"","title":"Render Style","type":"string"},"stereo_variants":{"default":false,"title":"Stereo Variants","type":"boolean"},"view":{"default":"","title":"View","type":"string"}},"required":["name_or_smiles"],"title":"generate_moleculeArguments","type":"object"},"name":"generate_molecule","outputSchema":{"$defs":{"AtomData":{"properties":{"charge":{"default":0,"title":"Charge","type":"integer"},"el":{"title":"El","type":"string"},"hCount":{"default":0,"title":"Hcount","type":"integer"},"idx":{"title":"Idx","type":"integer"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["idx","el","x","y"],"title":"AtomData","type":"object"},"FunctionalGroup":{"properties":{"atomIndices":{"default":[],"items":{"type":"integer"},"title":"Atomindices","type":"array"},"color":{"default":"#999999","title":"Color","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"FunctionalGroup","type":"object"},"IsomerCandidate":{"description":"One structure a family name (\"xylene\", \"Glucose\") can mean.","properties":{"label":{"title":"Label","type":"string"},"name":{"default":"","title":"Name","type":"string"},"smiles":{"title":"Smiles","type":"string"},"svg":{"default":"","title":"Svg","type":"string"}},"required":["label","smiles"],"title":"IsomerCandidate","type":"object"},"LipinskiData":{"properties":{"hba":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hba"},"hbd":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hbd"},"logP":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Logp"},"mw":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Mw"},"passes":{"default":false,"title":"Passes","type":"boolean"},"violations":{"default":0,"title":"Violations","type":"integer"}},"title":"LipinskiData","type":"object"},"ProteinView":{"description":"Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).","properties":{"chains":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Chains","type":"array"},"citation":{"default":"","title":"Citation","type":"string"},"colorBy":{"default":"ss","title":"Colorby","type":"string"},"identifier":{"default":"","title":"Identifier","type":"string"},"ligands":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Ligands","type":"array"},"plddtMean":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Plddtmean"},"scheme":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Scheme"},"source":{"default":"","title":"Source","type":"string"},"ssSource":{"default":"deposited","title":"Sssource","type":"string"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"title":"ProteinView","type":"object"},"StereoWarning":{"description":"Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.","properties":{"atoms":{"default":[],"items":{"type":"integer"},"title":"Atoms","type":"array"},"kind":{"title":"Kind","type":"string"},"label":{"default":"","title":"Label","type":"string"}},"required":["kind"],"title":"StereoWarning","type":"object"}},"properties":{"atoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Atoms","type":"array"},"candidates":{"default":[],"items":{"$ref":"#/$defs/IsomerCandidate"},"title":"Candidates","type":"array"},"cdxml_path":{"default":"","title":"Cdxml Path","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"foundAs":{"default":"","title":"Foundas","type":"string"},"functionalGroups":{"default":[],"items":{"$ref":"#/$defs/FunctionalGroup"},"title":"Functionalgroups","type":"array"},"initialView":{"default":"","title":"Initialview","type":"string"},"lipinski":{"anyOf":[{"$ref":"#/$defs/LipinskiData"},{"type":"null"}],"default":null},"message":{"default":"","title":"Message","type":"string"},"name":{"default":"","title":"Name","type":"string"},"projectionNote":{"default":"","title":"Projectionnote","type":"string"},"properties":{"additionalProperties":{"type":"string"},"default":{},"title":"Properties","type":"object"},"protein":{"anyOf":[{"$ref":"#/$defs/ProteinView"},{"type":"null"}],"default":null},"stereoNote":{"default":"","title":"Stereonote","type":"string"},"stereoWarnings":{"default":[],"items":{"$ref":"#/$defs/StereoWarning"},"title":"Stereowarnings","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"molecule","title":"Type","type":"string"},"viewAtoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Viewatoms","type":"array"},"viewRequest":{"additionalProperties":true,"default":{},"title":"Viewrequest","type":"object"},"viewSvg":{"default":"","title":"Viewsvg","type":"string"},"views":{"default":[],"items":{"type":"string"},"title":"Views","type":"array"}},"title":"MoleculePayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a spectrum — IR, ¹H/¹³C NMR, mass spectrum (MS), UV/Vis, Raman, NIR, fluorescence, ORD or CD — as PNG/SVG files with a panel.\n\nAny request to draw, sketch, plot or show a spectrum is this tool, including\na \"schematic\" spectrum of a named compound (\"aspirin IR spectrum\nschematic\") and requests with no peak values: then supply typical\nliterature peak positions yourself (aspirin IR: C=O ~1750 and ~1690 cm⁻¹,\nbroad O–H ~2500–3300 cm⁻¹). Use it instead of drawing the spectrum as a\ngeneric chart or visualization — this tool gets the axis conventions right\n(IR: inverted wavenumber axis with transmission dips; NMR: ppm right to\nleft; MS: bars). It draws exactly the peaks it is given; it predicts nothing.\n\nNot this tool for: working out WHICH bands to expect, or what a measured\nwavenumber belongs to (use predict_spectrum — its band list can then be\ndrawn here), or the compound's structure formula (use generate_molecule).\n\nArgs:\n    spectrum_type: One of \"ir\", \"nir\", \"raman\", \"uv_vis\", \"fluorescence\",\n        \"ord\", \"cd\", \"nmr_1h\", \"nmr_13c\", \"ms\".\n    peaks: Peak list. position uses the type's natural unit (cm⁻¹ for\n        ir/nir/raman, nm for uv_vis/fluorescence/ord/cd, ppm for NMR,\n        m/z for ms). intensity is relative on any scale (negative values\n        only for ord/cd). width (optional) is the half-width in x-units;\n        label (optional) annotates the peak in the plot (e.g. \"C=O\").\n    title: Display name shown in the plot title, also used for the\n        filename (can be localized, e.g. \"Aspirin IR\").\n    formats: Output file formats, any of \"png\", \"svg\" (default: both).\n        CDXML is not available for spectra.","inputSchema":{"$defs":{"SpectrumPeak":{"properties":{"intensity":{"default":1.0,"title":"Intensity","type":"number"},"label":{"default":"","title":"Label","type":"string"},"position":{"title":"Position","type":"number"},"width":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Width"}},"required":["position"],"title":"SpectrumPeak","type":"object"}},"properties":{"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"peaks":{"items":{"$ref":"#/$defs/SpectrumPeak"},"title":"Peaks","type":"array"},"spectrum_type":{"title":"Spectrum Type","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"required":["spectrum_type","peaks"],"title":"generate_spectrumArguments","type":"object"},"name":"generate_spectrum","outputSchema":{"properties":{"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"default":"","title":"Name","type":"string"},"spectrum_type":{"title":"Spectrum Type","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"spectrum","title":"Type","type":"string"}},"required":["spectrum_type"],"title":"SpectrumPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a TLC plate sketch from Rf values as print-ready PNG/SVG files.\n\nUse this whenever the user reports a thin-layer chromatography result\n(\"TLC of my esterification: educt at 0.3, product at 0.65, the co-spot\nshows both\") or asks for the plate sketch a lab report requires. The\ntool draws exactly the Rf values it is given — it predicts nothing.\n\nThe plate is read from the bottom: start line at Rf 0, solvent front at\nRf 1, so a spot at Rf 0.8 sits near the top. One lane = one application\npoint with its own caption; a lane can carry several spots, so a co-spot\nlane showing educt AND product is simply two spots on one lane. Every\nspot is annotated with its Rf value so the sketch can be read off.\n\nNot this tool for: the reaction scheme of the reaction being monitored\n(generate_reaction), or a spectrum (generate_spectrum).\n\nArgs:\n    lanes: The lanes from left to right, e.g.\n        [{\"name\": \"Edukt\", \"spots\": [{\"rf\": 0.30, \"label\": \"Säure\"}]},\n         {\"name\": \"Reaktion\", \"spots\": [{\"rf\": 0.65, \"label\": \"Ester\"}]},\n         {\"name\": \"Co-Spot\", \"spots\": [{\"rf\": 0.30}, {\"rf\": 0.65}]}]\n        rf must lie between 0 and 1 — it is a ratio (distance travelled\n        by the substance / distance travelled by the front), so values\n        outside that range are rejected instead of silently clipped.\n        label (optional) names the substance at that spot; intensity\n        (optional, 0…1, default 1) draws a faint spot fainter.\n    title: Shown in the plot title and used for the filename, e.g.\n        \"Veresterung Ansatz 2\" (free text, can be localized).\n    solvent: Mobile phase / eluent as it goes into the report, e.g.\n        \"Toluol/Ethylacetat 8:2\" — printed as a caption on the sketch.\n    detection: How the spots were visualized, e.g. \"UV 254 nm\", \"Iod\",\n        \"Ninhydrin\" — printed next to the mobile phase.\n    formats: Output file formats, any of \"png\", \"svg\" (default: both).\n        CDXML is not available for plates.","inputSchema":{"$defs":{"TlcLane":{"description":"One application point on the plate, e.g. \"Edukt\" or \"Co-Spot\".","properties":{"name":{"title":"Name","type":"string"},"spots":{"default":[],"items":{"$ref":"#/$defs/TlcSpot"},"title":"Spots","type":"array"}},"required":["name"],"title":"TlcLane","type":"object"},"TlcSpot":{"description":"One spot on a TLC lane. rf is the ratio substance/front (0…1).","properties":{"intensity":{"default":1.0,"title":"Intensity","type":"number"},"label":{"default":"","title":"Label","type":"string"},"rf":{"title":"Rf","type":"number"}},"required":["rf"],"title":"TlcSpot","type":"object"}},"properties":{"detection":{"default":"","title":"Detection","type":"string"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"lanes":{"items":{"$ref":"#/$defs/TlcLane"},"title":"Lanes","type":"array"},"solvent":{"default":"","title":"Solvent","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"required":["lanes"],"title":"generate_tlcArguments","type":"object"},"name":"generate_tlc","outputSchema":{"$defs":{"TlcLane":{"description":"One application point on the plate, e.g. \"Edukt\" or \"Co-Spot\".","properties":{"name":{"title":"Name","type":"string"},"spots":{"default":[],"items":{"$ref":"#/$defs/TlcSpot"},"title":"Spots","type":"array"}},"required":["name"],"title":"TlcLane","type":"object"},"TlcSpot":{"description":"One spot on a TLC lane. rf is the ratio substance/front (0…1).","properties":{"intensity":{"default":1.0,"title":"Intensity","type":"number"},"label":{"default":"","title":"Label","type":"string"},"rf":{"title":"Rf","type":"number"}},"required":["rf"],"title":"TlcSpot","type":"object"}},"properties":{"detection":{"default":"","title":"Detection","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"lanes":{"default":[],"items":{"$ref":"#/$defs/TlcLane"},"title":"Lanes","type":"array"},"name":{"default":"","title":"Name","type":"string"},"solvent":{"default":"","title":"Solvent","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"tlc","title":"Type","type":"string"}},"title":"TlcPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Export an Anki flashcard deck (.apkg) with rendered chemistry images.\n\nUse this whenever the user wants flashcards, Anki cards or a study deck\nfor molecules, reactions (e.g. pharmacopoeia identity tests) or spectra.\nA stated intention to learn or an exam coming up is the same request:\noffer a deck and write the cards yourself.\n\nTwo ways to fill the deck. Either pass `cards` you wrote yourself, or\npass `curated_deck_id` for a ready-made, formula-verified starter deck:\n\n- \"analgesics-structures\": structure → name drills for 8 classic\n  analgesics (NSAIDs, paracetamol, morphine, celecoxib).\n- \"pheur-identity-basics\": classic Ph.Eur. identity tests — reagent,\n  observation and reaction scheme where it helps.\n\nThe tool renders the images — YOU supply the card content from your\nknowledge. Each card side carries text plus at\nmost ONE visual: structure (name or SMILES), reaction ({reactants,\nproducts, conditions}) or spectrum ({spectrum_type, peaks, title}).\nProven types: structure↔name, identity reactions (question front, scheme\nback), functional-group recognition, band assignment, name drills.\n\nRe-exporting under the SAME deck name updates existing cards instead of\nduplicating them — the front identifies the card.\n\nOptions: reversed=true drills both directions (one note, two cards);\ncloze=true makes fill-in-the-blank cards (front.text carries {{c1::...}},\nback.text becomes the extra note). \"Parent::Child\" nests subdecks.\n\nIMPORTANT: structures take English/IUPAC names or SMILES; card TEXTS may\nbe localized. Never deliver via AnkiConnect unless asked.\n\nArgs:\n    deck_name: Deck name, also the filename; re-use it to update a deck.\n        Ignored when curated_deck_id is set.\n    cards: The flashcards. Fronts unambiguous, explanations on the back.\n    default_tags: Tags added to every card.\n    deliver: \"apkg\" (file only), \"open\" (also opens it in Anki, macOS)\n        or \"ankiconnect\" (imports via the AnkiConnect add-on).\n    curated_deck_id: \"analgesics-structures\" or \"pheur-identity-basics\".","inputSchema":{"$defs":{"AnkiCard":{"properties":{"back":{"$ref":"#/$defs/CardSide"},"cloze":{"default":false,"title":"Cloze","type":"boolean"},"front":{"$ref":"#/$defs/CardSide"},"reversed":{"default":false,"title":"Reversed","type":"boolean"},"tags":{"default":[],"items":{"type":"string"},"title":"Tags","type":"array"}},"required":["front","back"],"title":"AnkiCard","type":"object"},"CardSide":{"description":"One side of an Anki card: text plus at most one rendered visual.","properties":{"reaction":{"anyOf":[{"$ref":"#/$defs/ReactionSpec"},{"type":"null"}],"default":null},"spectrum":{"anyOf":[{"$ref":"#/$defs/SpectrumSpec"},{"type":"null"}],"default":null},"structure":{"default":"","title":"Structure","type":"string"},"text":{"default":"","title":"Text","type":"string"}},"title":"CardSide","type":"object"},"ReactionSpec":{"description":"Reaction visual on an Anki card side (names or SMILES).","properties":{"conditions":{"default":"","title":"Conditions","type":"string"},"products":{"items":{"type":"string"},"title":"Products","type":"array"},"reactants":{"items":{"type":"string"},"title":"Reactants","type":"array"}},"required":["reactants","products"],"title":"ReactionSpec","type":"object"},"SpectrumPeak":{"properties":{"intensity":{"default":1.0,"title":"Intensity","type":"number"},"label":{"default":"","title":"Label","type":"string"},"position":{"title":"Position","type":"number"},"width":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Width"}},"required":["position"],"title":"SpectrumPeak","type":"object"},"SpectrumSpec":{"description":"Spectrum visual on an Anki card side.","properties":{"peaks":{"items":{"$ref":"#/$defs/SpectrumPeak"},"title":"Peaks","type":"array"},"spectrum_type":{"title":"Spectrum Type","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"required":["spectrum_type","peaks"],"title":"SpectrumSpec","type":"object"}},"properties":{"cards":{"anyOf":[{"items":{"$ref":"#/$defs/AnkiCard"},"type":"array"},{"type":"null"}],"default":null,"title":"Cards"},"curated_deck_id":{"default":"","title":"Curated Deck Id","type":"string"},"deck_name":{"default":"","title":"Deck Name","type":"string"},"default_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Default Tags"},"deliver":{"default":"apkg","title":"Deliver","type":"string"}},"title":"export_anki_deckArguments","type":"object"},"name":"export_anki_deck","outputSchema":{"properties":{"cards":{"title":"Cards","type":"integer"},"delivery":{"default":"apkg","title":"Delivery","type":"string"},"file":{"default":"","title":"File","type":"string"},"fronts":{"default":[],"items":{"type":"string"},"title":"Fronts","type":"array"},"media":{"title":"Media","type":"integer"},"name":{"title":"Name","type":"string"},"type":{"default":"anki_deck","title":"Type","type":"string"}},"required":["name","cards","media"],"title":"AnkiDeckPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a titration curve: weak (or polyprotic) acid vs. strong base.\n\nComputes pH against titrant volume from the exact charge balance and\nmarks equivalence points (per protolysis step), the buffer points\n(pH = pKa at half-equivalence) and optionally the indicator transition\nrange as a shaded band.\n\nUse this when the user asks about titrations, equivalence points,\nbuffer regions or indicator choice. YOU supply the substance data from\nyour knowledge: pKa values in ascending order, sensible concentrations\n(0.1 M is the classic teaching case) and the indicator's transition range.\n\nNot this tool for: which species dominates at a given pH, or the degree\nof ionization across the pH range (use generate_species_distribution).\nA single pH value as a number is not drawn — that is calculate_ph, which\nsolves the same charge balance and shows the working; this tool only draws.\n\nArgs:\n    substance: Display name, e.g. \"Acetic acid with NaOH\" (localizable).\n    pka_values: pKa per protolysis step, ascending (1-3 values).\n    c_acid: Acid concentration in mol/L.\n    v_acid_ml: Initial acid volume in mL.\n    c_titrant: Titrant (strong base) concentration in mol/L.\n    indicator: Optional {\"name\": \"...\", \"ph_range\": [low, high]}.","inputSchema":{"properties":{"c_acid":{"title":"C Acid","type":"number"},"c_titrant":{"title":"C Titrant","type":"number"},"indicator":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Indicator"},"pka_values":{"items":{"type":"number"},"title":"Pka Values","type":"array"},"substance":{"title":"Substance","type":"string"},"v_acid_ml":{"title":"V Acid Ml","type":"number"}},"required":["substance","pka_values","c_acid","v_acid_ml","c_titrant"],"title":"generate_titration_curveArguments","type":"object"},"name":"generate_titration_curve","outputSchema":{"description":"Generic rendered diagram (titration curve, species distribution, …).","properties":{"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"title":"Name","type":"string"},"notes":{"default":[],"items":{"type":"string"},"title":"Notes","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"plot","title":"Type","type":"string"}},"required":["name"],"title":"PlotPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw the species distribution of an acid over pH (Henderson-Hasselbalch).\n\nPlots the fraction α of every protonation species against pH with the\npKa values marked — the standard diagram for absorption/distribution\nreasoning in pharmacy.\n\nUse this when the user asks which species dominates at a given pH, about\ndegree of ionization, or absorption across membranes. YOU supply pKa\nvalues (ascending) from your knowledge; pass species labels (formulas like\n\"H₂PO₄⁻\") for a readable legend.\n\nNot this tool for: pH against added titrant volume, equivalence points or\nindicator choice (use generate_titration_curve). It answers \"which species\nwhen\", not \"what pH do I have\" — the pH of a solution or buffer, or the\nionised fraction at one pH, as a number is calculate_ph.\n\nArgs:\n    substance: Display name, e.g. \"Phosphoric acid\" (localizable).\n    pka_values: pKa per protolysis step, ascending.\n    labels: Optional species labels, most protonated first\n        (len = len(pka_values) + 1).","inputSchema":{"properties":{"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Labels"},"pka_values":{"items":{"type":"number"},"title":"Pka Values","type":"array"},"substance":{"title":"Substance","type":"string"}},"required":["substance","pka_values"],"title":"generate_species_distributionArguments","type":"object"},"name":"generate_species_distribution","outputSchema":{"description":"Generic rendered diagram (titration curve, species distribution, …).","properties":{"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"title":"Name","type":"string"},"notes":{"default":[],"items":{"type":"string"},"title":"Notes","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"plot","title":"Type","type":"string"}},"required":["name"],"title":"PlotPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Compare 2-4 molecules side by side with their DIFFERENCES highlighted.\n\nComputes the maximum common substructure (MCS): the shared scaffold\nstays neutral, everything outside it is highlighted — ideal for\nteaching drug classes (\"what distinguishes ibuprofen from naproxen?\"),\nhomologous series or derivatives.\n\nUse this when the user wants to compare structures, see differences\nbetween compounds, or study a drug class.\n\nReach for it in conversation too, not only on request: the word\n\"difference\" in a question about two substances is the trigger. Answering\n\"what distinguishes ibuprofen from naproxen?\" in prose leaves the reader\nto find the difference in two separate pictures — this figure marks it.\n\nNot this tool for: a single structure (generate_molecule), or several\nstructures that are merely to be drawn rather than contrasted\n(batch_generate).\n\nArgs:\n    structures: 2-4 English/IUPAC names or SMILES strings.\n    labels: Optional display names under each panel (localizable).\n    title: Optional heading for the comparison (localizable).","inputSchema":{"properties":{"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Labels"},"structures":{"items":{"type":"string"},"title":"Structures","type":"array"},"title":{"default":"","title":"Title","type":"string"}},"required":["structures"],"title":"compare_moleculesArguments","type":"object"},"name":"compare_molecules","outputSchema":{"description":"Generic rendered diagram (titration curve, species distribution, …).","properties":{"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"title":"Name","type":"string"},"notes":{"default":[],"items":{"type":"string"},"title":"Notes","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"plot","title":"Type","type":"string"}},"required":["name"],"title":"PlotPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Generate a 3D conformer shown as an interactive, rotatable model.\n\nEmbeds the molecule in 3D (ETKDGv3 + force-field optimization, explicit\nhydrogens) and opens a drag-to-rotate ball-and-stick viewer in the chat\npanel. Also writes an SDF file for molecular modelling tools.\n\nUse this when the user asks about 3D structure, molecular geometry\n(tetrahedral, planar...), conformation or spatial arrangement.\n\nNot this tool for: a flat 2D structure drawing, a Fischer/Haworth\nprojection or a chair drawing — use generate_molecule. Nor for a\nprotein, enzyme or antibody, also its 3D structure — use generate_protein_or_antibody\n(its panel rotates); its function or EC number — use lookup, \"biochem\".\n\nIMPORTANT: Pass English/IUPAC names or SMILES; use label for the\nlocalized display name.\n\nArgs:\n    name_or_smiles: English/IUPAC compound name or SMILES string.\n    label: Optional display name (localizable).","inputSchema":{"properties":{"label":{"default":"","title":"Label","type":"string"},"name_or_smiles":{"title":"Name Or Smiles","type":"string"}},"required":["name_or_smiles"],"title":"generate_3dArguments","type":"object"},"name":"generate_3d","outputSchema":{"$defs":{"ProteinView":{"description":"Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).","properties":{"chains":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Chains","type":"array"},"citation":{"default":"","title":"Citation","type":"string"},"colorBy":{"default":"ss","title":"Colorby","type":"string"},"identifier":{"default":"","title":"Identifier","type":"string"},"ligands":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Ligands","type":"array"},"plddtMean":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Plddtmean"},"scheme":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Scheme"},"source":{"default":"","title":"Source","type":"string"},"ssSource":{"default":"deposited","title":"Sssource","type":"string"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"title":"ProteinView","type":"object"}},"description":"3D conformer for the interactive panel viewer (ball-and-stick).","properties":{"atoms":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Atoms","type":"array"},"bonds":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Bonds","type":"array"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"message":{"default":"","title":"Message","type":"string"},"name":{"title":"Name","type":"string"},"protein":{"anyOf":[{"$ref":"#/$defs/ProteinView"},{"type":"null"}],"default":null},"subtitle":{"default":"","title":"Subtitle","type":"string"},"type":{"default":"molecule3d","title":"Type","type":"string"}},"required":["name"],"title":"Molecule3DPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a protein, enzyme or antibody as a cartoon (ribbon diagram).\n\nFetches its structure from the PDB (AlphaFold model if there is none) and\nwrites PNG/SVG files plus a rotatable panel: helices as spirals, strands as\narrows, bound groups such as heme or zinc as sticks. Works for enzyme and\nprotein names (lysozyme, trypsin, hemoglobin, insulin), gene symbols\n(RecA), antibody INNs (trastuzumab) and a plain \"antibody\" or \"IgG\".\nAntibodies come with the IgG domain scheme; an antibody without a known\nstructure shows the architecture of an intact IgG. A protein's 3D\nstructure is this tool too — the panel rotates.\n\nNot this tool for: a small molecule, a peptide sequence or any skeletal\nformula (use generate_molecule); a small molecule as a 3D model (use\ngenerate_3d); a protein's function, EC number or cofactors as text (use\nlookup, topic \"biochem\").\n\nArgs:\n    name: English protein, enzyme, gene or antibody name (\"lysozyme\",\n        \"trastuzumab\", \"antibody\"); an organism may follow (\"human\n        lysozyme\").\n    formats: \"png\", \"svg\" (default both). A cartoon has no CDXML.","inputSchema":{"properties":{"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"generate_protein_or_antibodyArguments","type":"object"},"name":"generate_protein_or_antibody","outputSchema":{"$defs":{"AtomData":{"properties":{"charge":{"default":0,"title":"Charge","type":"integer"},"el":{"title":"El","type":"string"},"hCount":{"default":0,"title":"Hcount","type":"integer"},"idx":{"title":"Idx","type":"integer"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["idx","el","x","y"],"title":"AtomData","type":"object"},"FunctionalGroup":{"properties":{"atomIndices":{"default":[],"items":{"type":"integer"},"title":"Atomindices","type":"array"},"color":{"default":"#999999","title":"Color","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"FunctionalGroup","type":"object"},"IsomerCandidate":{"description":"One structure a family name (\"xylene\", \"Glucose\") can mean.","properties":{"label":{"title":"Label","type":"string"},"name":{"default":"","title":"Name","type":"string"},"smiles":{"title":"Smiles","type":"string"},"svg":{"default":"","title":"Svg","type":"string"}},"required":["label","smiles"],"title":"IsomerCandidate","type":"object"},"LipinskiData":{"properties":{"hba":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hba"},"hbd":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hbd"},"logP":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Logp"},"mw":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Mw"},"passes":{"default":false,"title":"Passes","type":"boolean"},"violations":{"default":0,"title":"Violations","type":"integer"}},"title":"LipinskiData","type":"object"},"ProteinView":{"description":"Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).","properties":{"chains":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Chains","type":"array"},"citation":{"default":"","title":"Citation","type":"string"},"colorBy":{"default":"ss","title":"Colorby","type":"string"},"identifier":{"default":"","title":"Identifier","type":"string"},"ligands":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Ligands","type":"array"},"plddtMean":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Plddtmean"},"scheme":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Scheme"},"source":{"default":"","title":"Source","type":"string"},"ssSource":{"default":"deposited","title":"Sssource","type":"string"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"title":"ProteinView","type":"object"},"StereoWarning":{"description":"Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.","properties":{"atoms":{"default":[],"items":{"type":"integer"},"title":"Atoms","type":"array"},"kind":{"title":"Kind","type":"string"},"label":{"default":"","title":"Label","type":"string"}},"required":["kind"],"title":"StereoWarning","type":"object"}},"description":"Protein instead of a skeletal formula: cartoon (generate_molecule).","properties":{"atoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Atoms","type":"array"},"candidates":{"default":[],"items":{"$ref":"#/$defs/IsomerCandidate"},"title":"Candidates","type":"array"},"cdxml_path":{"default":"","title":"Cdxml Path","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"foundAs":{"default":"","title":"Foundas","type":"string"},"functionalGroups":{"default":[],"items":{"$ref":"#/$defs/FunctionalGroup"},"title":"Functionalgroups","type":"array"},"initialView":{"default":"","title":"Initialview","type":"string"},"lipinski":{"anyOf":[{"$ref":"#/$defs/LipinskiData"},{"type":"null"}],"default":null},"message":{"default":"","title":"Message","type":"string"},"name":{"default":"","title":"Name","type":"string"},"projectionNote":{"default":"","title":"Projectionnote","type":"string"},"properties":{"additionalProperties":{"type":"string"},"default":{},"title":"Properties","type":"object"},"protein":{"anyOf":[{"$ref":"#/$defs/ProteinView"},{"type":"null"}],"default":null},"stereoNote":{"default":"","title":"Stereonote","type":"string"},"stereoWarnings":{"default":[],"items":{"$ref":"#/$defs/StereoWarning"},"title":"Stereowarnings","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"protein","title":"Type","type":"string"},"viewAtoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Viewatoms","type":"array"},"viewRequest":{"additionalProperties":true,"default":{},"title":"Viewrequest","type":"object"},"viewSvg":{"default":"","title":"Viewsvg","type":"string"},"views":{"default":[],"items":{"type":"string"},"title":"Views","type":"array"}},"title":"ProteinPayload","type":"object"}},{"description":"Calculate pH, buffer composition and buffer recipes, with the working.\n\nSolves the exact charge balance — the same one that draws the titration\ncurve — and puts the textbook approximation next to it. Where the two\ndisagree, the approximation has lost its assumptions and the answer says\nso instead of quietly being wrong.\n\nPick the `topic`: \"weak_acid\", \"weak_base\", \"strong_acid\", \"strong_base\",\n\"buffer\" (ratio and capacity), \"buffer_recipe\" (masses to weigh) or\n\"ionisation\" (charged and uncharged fraction of a drug at one pH).\nYou supply the pKa values from the monograph or table.\n\nNot this tool for: drawing pH against titrant volume, equivalence points\nor indicator choice (use generate_titration_curve), or drawing the species\nfractions across the whole pH range (use generate_species_distribution) —\nthis one computes, those draw.\n\nArgs:\n    topic: Which case to solve.\n    concentration: Concentration in mol/L.\n    pka: pKa of the acid, or of the conjugate acid of a base.\n    pkb: pKb of the base.\n    pka_values: All pKa values of a polyprotic acid, in order.\n    acid_concentration: [HA] in mol/L.\n    base_concentration: [A⁻] in mol/L.\n    target_ph: Wanted pH (\"buffer_recipe\") or medium pH (\"ionisation\").\n    total_concentration: [HA] + [A⁻] in mol/L.\n    volume_ml: Buffer volume in mL.\n    acid_molar_mass: Acid component, g/mol.\n    base_molar_mass: Base component, g/mol.\n    drug_type: \"acid\" or \"base\" (\"ionisation\").","inputSchema":{"properties":{"acid_concentration":{"default":0.0,"title":"Acid Concentration","type":"number"},"acid_molar_mass":{"default":0.0,"title":"Acid Molar Mass","type":"number"},"base_concentration":{"default":0.0,"title":"Base Concentration","type":"number"},"base_molar_mass":{"default":0.0,"title":"Base Molar Mass","type":"number"},"concentration":{"default":0.0,"title":"Concentration","type":"number"},"drug_type":{"default":"acid","enum":["acid","base"],"title":"Drug Type","type":"string"},"pka":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Pka"},"pka_values":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"default":null,"title":"Pka Values"},"pkb":{"default":0.0,"title":"Pkb","type":"number"},"target_ph":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Target Ph"},"topic":{"enum":["weak_acid","weak_base","strong_acid","strong_base","buffer","buffer_recipe","ionisation"],"title":"Topic","type":"string"},"total_concentration":{"default":0.0,"title":"Total Concentration","type":"number"},"volume_ml":{"default":0.0,"title":"Volume Ml","type":"number"}},"required":["topic"],"title":"calculate_phArguments","type":"object"},"name":"calculate_ph","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"calculate_phOutput","type":"object"}},{"description":"Say what a spectrum of this structure should show — or read a band.\n\nThree questions, all of them exam material:\n\n- \"ir_bands\": which IR bands to expect for a structure, with range,\n  intensity and band shape, ordered as you read a spectrum (high\n  wavenumber first). Needs `structure`.\n- \"assign_wavenumber\": you measured a band — which groups absorb there?\n  Ordered by how centrally the value sits in each range. Needs\n  `wavenumber` in cm⁻¹.\n- \"nmr_signals\": how many ¹H signals the structure gives and in what\n  integral ratio. Needs `structure`.\n\nDeterministic on purpose, and therefore honestly limited: band positions\ncome from a curated table matched to the structure, signals from the\ntopological equivalence of the protons. It does NOT predict chemical\nshifts in ppm — that would take a model and would be guesswork.\n\nThe band list is ready to hand to generate_spectrum if a drawing is\nwanted; this tool only says what to expect.\n\nNot this tool for: drawing a spectrum from peaks you already have\n(generate_spectrum), or looking up measured data for a substance\n(lookup).\n\nArgs:\n    topic: Which question to answer — see the list above.\n    structure: English/IUPAC name or SMILES of the compound\n        (\"ir_bands\", \"nmr_signals\").\n    wavenumber: Measured band position in cm⁻¹ (\"assign_wavenumber\").","inputSchema":{"properties":{"structure":{"default":"","title":"Structure","type":"string"},"topic":{"enum":["ir_bands","assign_wavenumber","nmr_signals"],"title":"Topic","type":"string"},"wavenumber":{"default":0.0,"title":"Wavenumber","type":"number"}},"required":["topic"],"title":"predict_spectrumArguments","type":"object"},"name":"predict_spectrum","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"predict_spectrumOutput","type":"object"}},{"description":"Fetch a specific fact or value about a compound as plain text.\n\nUse it when the request asks for a named piece of data — pick the `topic`:\n\n- \"properties\" (default): formula, molecular weight, CAS number,\n  IUPAC name, LogP, InChIKey (PubChem).\n- \"safety\": GHS hazards — H/P statements, pictograms, signal word.\n  For lab protocols and risk assessments.\n- \"physical\": experimental melting point, boiling point, density,\n  solubility.\n- \"biochem\": compound class and biological role (ChEBI), related\n  enzymes and proteins (UniProt); for a protein, enzyme or antibody\n  name, its UniProt data sheet (function, EC, length, PDB). Drawing\n  a protein is generate_protein_or_antibody, not this tool.\n- \"pathway\": metabolic pathways the compound appears in (KEGG).\n\nNot this tool for: a bare compound name with no named value asked for —\nthat means show the substance, use generate_molecule. Nor for a visual\ndata sheet with the structure beside the facts — use lookup_molecule_data.\nNor for the IR bands or ¹H signals a structure should give — derived\nfrom the structure, not looked up — use predict_spectrum.\nThis tool draws nothing; it returns text.\n\nIMPORTANT: Always pass English or IUPAC compound names, never localized\nnames — 'Aspirin' not 'Acetylsalicylsäure', 'Caffeine' not 'Coffein'.\n\nArgs:\n    name: English/IUPAC compound name (e.g. 'Aspirin', 'Histidine').\n    topic: Which facts to fetch — see the list above.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"topic":{"default":"properties","enum":["properties","safety","physical","biochem","pathway"],"title":"Topic","type":"string"}},"required":["name"],"title":"lookupArguments","type":"object"},"name":"lookup","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"lookupOutput","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Show a compound's data sheet: structure, PubChem properties and GHS safety.\n\nUse it for a data sheet or facts available from those sources. The molecule\npanel also calls this tool when the user clicks Data. Internet access is\nrequired. Missing values are not evidence that a property or hazard is absent.\n\nNot this tool for: a bare compound name with no data requested — use\ngenerate_molecule; one named value as text, or physical constants, biological\nrole or metabolic pathways — use lookup. Pass English or IUPAC names, or SMILES.\n\nArgs:\n        name: English/IUPAC compound name or SMILES (e.g. 'Aspirin').\n    ","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"lookup_molecule_dataArguments","type":"object"},"name":"lookup_molecule_data","outputSchema":{"$defs":{"AtomData":{"properties":{"charge":{"default":0,"title":"Charge","type":"integer"},"el":{"title":"El","type":"string"},"hCount":{"default":0,"title":"Hcount","type":"integer"},"idx":{"title":"Idx","type":"integer"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["idx","el","x","y"],"title":"AtomData","type":"object"},"DatabaseRow":{"properties":{"key":{"title":"Key","type":"string"},"val":{"title":"Val","type":"string"}},"required":["key","val"],"title":"DatabaseRow","type":"object"},"DatabaseSource":{"properties":{"groups":{"default":[],"items":{"$ref":"#/$defs/GhsGroup"},"title":"Groups","type":"array"},"note":{"default":"","title":"Note","type":"string"},"rows":{"default":[],"items":{"$ref":"#/$defs/DatabaseRow"},"title":"Rows","type":"array"},"source":{"title":"Source","type":"string"},"status":{"default":"","title":"Status","type":"string"},"type":{"title":"Type","type":"string"},"url":{"title":"Url","type":"string"}},"required":["type","source","url"],"title":"DatabaseSource","type":"object"},"FunctionalGroup":{"properties":{"atomIndices":{"default":[],"items":{"type":"integer"},"title":"Atomindices","type":"array"},"color":{"default":"#999999","title":"Color","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"FunctionalGroup","type":"object"},"GhsGroup":{"description":"Die Einstufung EINER Quelle (PubChem ReferenceNumber).","properties":{"hazards":{"default":[],"items":{"$ref":"#/$defs/GhsHazard"},"title":"Hazards","type":"array"},"id":{"title":"Id","type":"string"},"lead":{"default":false,"title":"Lead","type":"boolean"},"not_classified":{"anyOf":[{"$ref":"#/$defs/GhsNotClassified"},{"type":"null"}],"default":null},"note":{"default":"","title":"Note","type":"string"},"p_codes":{"default":[],"items":{"type":"string"},"title":"P Codes","type":"array"},"pictograms":{"default":[],"items":{"type":"string"},"title":"Pictograms","type":"array"},"record_name":{"default":"","title":"Record Name","type":"string"},"reports_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Reports Total"},"signal":{"default":"","title":"Signal","type":"string"},"source":{"title":"Source","type":"string"},"url":{"default":"","title":"Url","type":"string"}},"required":["id","source"],"title":"GhsGroup","type":"object"},"GhsHazard":{"properties":{"code":{"title":"Code","type":"string"},"percent":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Percent"},"text":{"default":"","title":"Text","type":"string"}},"required":["code"],"title":"GhsHazard","type":"object"},"GhsNotClassified":{"description":"Eine Quelle meldet ausdruecklich \"erfuellt die GHS-Kriterien nicht\".","properties":{"percent":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Percent"},"reports":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Reports"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Total"}},"title":"GhsNotClassified","type":"object"},"StereoWarning":{"description":"Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.","properties":{"atoms":{"default":[],"items":{"type":"integer"},"title":"Atoms","type":"array"},"kind":{"title":"Kind","type":"string"},"label":{"default":"","title":"Label","type":"string"}},"required":["kind"],"title":"StereoWarning","type":"object"}},"properties":{"atoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Atoms","type":"array"},"foundAs":{"default":"","title":"Foundas","type":"string"},"functionalGroups":{"default":[],"items":{"$ref":"#/$defs/FunctionalGroup"},"title":"Functionalgroups","type":"array"},"molecule_svg":{"default":"","title":"Molecule Svg","type":"string"},"name":{"default":"","title":"Name","type":"string"},"smiles":{"default":"","title":"Smiles","type":"string"},"sources":{"default":[],"items":{"$ref":"#/$defs/DatabaseSource"},"title":"Sources","type":"array"},"stereoNote":{"default":"","title":"Stereonote","type":"string"},"stereoWarnings":{"default":[],"items":{"$ref":"#/$defs/StereoWarning"},"title":"Stereowarnings","type":"array"},"type":{"default":"database","title":"Type","type":"string"}},"title":"DatabasePayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw a reaction scheme from reactants, products and conditions.\n\nWrites PNG/SVG files and returns a panel with conditions above and below the\narrow. arrow: \"forward\" (→), \"equilibrium\" (⇌, reversible) or \"retro\" (⇒).\nUse it when explaining a reaction as well as for explicit drawing requests.\nPass English or IUPAC compound names, or SMILES.\n\nNot this tool for: the step-by-step SN1, SN2 or Fischer esterification\nmechanism with electron-flow arrows (use generate_mechanism); a TLC plate\nsketch from Rf values, even of a reaction mixture (use generate_tlc); one compound or\na property of one compound such as its acidity (use generate_molecule),\nindependent structures (use batch_generate), or structural differences (use\ncompare_molecules).\n\nCurved-arrow mechanisms are drawn only for SN1, SN2 and Fischer esterification\n(generate_mechanism). For any other mechanism, such as Diels–Alder, draw the\nnet scheme here and tell the user that the arrow mechanism is not drawn.\n\nArgs:\n    reactants: English/IUPAC reactant names or SMILES.\n    products: English/IUPAC product names or SMILES.\n    conditions: Text above the arrow (e.g. 'H2SO4, 0-5 °C'); formula\n        digits are subscripted.\n    conditions_below: Text under the arrow (e.g. 'reflux, 2 h').\n    arrow: \"forward\" (→), \"equilibrium\" (⇌) or \"retro\" (⇒, target as\n        reactants, precursors as products).\n    name: Display name (can be localized).\n    formats: Any of \"png\", \"svg\", \"cdxml\" (default png + svg); \"cdxml\"\n        only for editing in ChemDraw.\n    abbreviate_groups: True draws common substituents as labels (Ph,\n        OAc, tBu …); the CDXML keeps full structures.\n    render_style: \"\" standard · \"compact\" small print · \"presentation\"\n        slides · \"grayscale\" b/w palette.\n    coefficients: One integer per species, reactants then products\n        ([2, 1, 2] draws 2 H2 + O2 → 2 H2O). Set only when the user asks\n        for a balanced equation; otherwise draw as given — the panel's\n        \"Apply coefficients\" button sets them.","inputSchema":{"properties":{"abbreviate_groups":{"default":false,"title":"Abbreviate Groups","type":"boolean"},"arrow":{"default":"forward","enum":["forward","equilibrium","retro"],"title":"Arrow","type":"string"},"coefficients":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Coefficients"},"conditions":{"default":"","title":"Conditions","type":"string"},"conditions_below":{"default":"","title":"Conditions Below","type":"string"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"name":{"default":"","title":"Name","type":"string"},"products":{"items":{"type":"string"},"title":"Products","type":"array"},"reactants":{"items":{"type":"string"},"title":"Reactants","type":"array"},"render_style":{"default":"","title":"Render Style","type":"string"}},"required":["reactants","products"],"title":"generate_reactionArguments","type":"object"},"name":"generate_reaction","outputSchema":{"$defs":{"MolEntry":{"properties":{"coefficient":{"default":1,"title":"Coefficient","type":"integer"},"name":{"default":"","title":"Name","type":"string"},"svg":{"default":"","title":"Svg","type":"string"}},"title":"MolEntry","type":"object"},"ReactionBalance":{"description":"Atom and charge balance of the equation as drawn (all coefficients 1).","properties":{"balanced":{"title":"Balanced","type":"boolean"},"chargeDifference":{"default":0,"title":"Chargedifference","type":"integer"},"difference":{"additionalProperties":{"type":"integer"},"default":{},"title":"Difference","type":"object"},"formulas":{"default":[],"items":{"type":"string"},"title":"Formulas","type":"array"},"note":{"default":"","title":"Note","type":"string"},"suggestedCoefficients":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Suggestedcoefficients"},"suggestedEquation":{"default":"","title":"Suggestedequation","type":"string"},"summary":{"default":"","title":"Summary","type":"string"}},"required":["balanced"],"title":"ReactionBalance","type":"object"}},"properties":{"arrow":{"default":"forward","title":"Arrow","type":"string"},"balance":{"anyOf":[{"$ref":"#/$defs/ReactionBalance"},{"type":"null"}],"default":null},"cdxml_path":{"default":"","title":"Cdxml Path","type":"string"},"coefficients":{"default":[],"items":{"type":"integer"},"title":"Coefficients","type":"array"},"conditions":{"default":"","title":"Conditions","type":"string"},"conditions_below":{"default":"","title":"Conditions Below","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"name":{"default":"","title":"Name","type":"string"},"products":{"default":[],"items":{"$ref":"#/$defs/MolEntry"},"title":"Products","type":"array"},"reactants":{"default":[],"items":{"$ref":"#/$defs/MolEntry"},"title":"Reactants","type":"array"},"request":{"additionalProperties":true,"default":{},"title":"Request","type":"object"},"type":{"default":"reaction","title":"Type","type":"string"}},"title":"ReactionPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Draw several individual compounds as separate PNG/SVG files and panels.\n\nFailed names are reported in failed while successful structures are returned.\nPass English or IUPAC names, or SMILES.\n\nNot this tool for: one compound (use generate_molecule), structural\ndifferences (use compare_molecules), or a reaction scheme (use generate_reaction).\n\nArgs:\n    molecules: List of English/IUPAC compound names or SMILES strings.\n    formats: Output file formats, any of \"png\", \"svg\", \"cdxml\"\n        (default: [\"png\", \"svg\"]). Include \"cdxml\" ONLY when the user\n        wants to edit the structures in ChemDraw.\n    abbreviate_groups: Set True to draw common substituents as short labels\n        (Ph, Bn, OAc, OMe, CO2H, tBu, Boc, Ts …) instead of full skeletons.\n        Applies to every molecule in the batch, so a series of structures\n        stays visually consistent.\n    render_style: Named look applied to every molecule in the batch. Empty\n        = standard style. \"compact\" for small printed figures,\n        \"presentation\" for slides, \"grayscale\" for grayscale printing.","inputSchema":{"properties":{"abbreviate_groups":{"default":false,"title":"Abbreviate Groups","type":"boolean"},"annotate_stereo":{"default":false,"title":"Annotate Stereo","type":"boolean"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Formats"},"molecules":{"items":{"type":"string"},"title":"Molecules","type":"array"},"render_style":{"default":"","title":"Render Style","type":"string"}},"required":["molecules"],"title":"batch_generateArguments","type":"object"},"name":"batch_generate","outputSchema":{"$defs":{"AtomData":{"properties":{"charge":{"default":0,"title":"Charge","type":"integer"},"el":{"title":"El","type":"string"},"hCount":{"default":0,"title":"Hcount","type":"integer"},"idx":{"title":"Idx","type":"integer"},"x":{"title":"X","type":"number"},"y":{"title":"Y","type":"number"}},"required":["idx","el","x","y"],"title":"AtomData","type":"object"},"FunctionalGroup":{"properties":{"atomIndices":{"default":[],"items":{"type":"integer"},"title":"Atomindices","type":"array"},"color":{"default":"#999999","title":"Color","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["name"],"title":"FunctionalGroup","type":"object"},"IsomerCandidate":{"description":"One structure a family name (\"xylene\", \"Glucose\") can mean.","properties":{"label":{"title":"Label","type":"string"},"name":{"default":"","title":"Name","type":"string"},"smiles":{"title":"Smiles","type":"string"},"svg":{"default":"","title":"Svg","type":"string"}},"required":["label","smiles"],"title":"IsomerCandidate","type":"object"},"LipinskiData":{"properties":{"hba":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hba"},"hbd":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Hbd"},"logP":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Logp"},"mw":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Mw"},"passes":{"default":false,"title":"Passes","type":"boolean"},"violations":{"default":0,"title":"Violations","type":"integer"}},"title":"LipinskiData","type":"object"},"MoleculePayload":{"properties":{"atoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Atoms","type":"array"},"candidates":{"default":[],"items":{"$ref":"#/$defs/IsomerCandidate"},"title":"Candidates","type":"array"},"cdxml_path":{"default":"","title":"Cdxml Path","type":"string"},"files":{"additionalProperties":{"type":"string"},"default":{},"title":"Files","type":"object"},"foundAs":{"default":"","title":"Foundas","type":"string"},"functionalGroups":{"default":[],"items":{"$ref":"#/$defs/FunctionalGroup"},"title":"Functionalgroups","type":"array"},"initialView":{"default":"","title":"Initialview","type":"string"},"lipinski":{"anyOf":[{"$ref":"#/$defs/LipinskiData"},{"type":"null"}],"default":null},"message":{"default":"","title":"Message","type":"string"},"name":{"default":"","title":"Name","type":"string"},"projectionNote":{"default":"","title":"Projectionnote","type":"string"},"properties":{"additionalProperties":{"type":"string"},"default":{},"title":"Properties","type":"object"},"protein":{"anyOf":[{"$ref":"#/$defs/ProteinView"},{"type":"null"}],"default":null},"stereoNote":{"default":"","title":"Stereonote","type":"string"},"stereoWarnings":{"default":[],"items":{"$ref":"#/$defs/StereoWarning"},"title":"Stereowarnings","type":"array"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"svg":{"default":"","title":"Svg","type":"string"},"type":{"default":"molecule","title":"Type","type":"string"},"viewAtoms":{"default":[],"items":{"$ref":"#/$defs/AtomData"},"title":"Viewatoms","type":"array"},"viewRequest":{"additionalProperties":true,"default":{},"title":"Viewrequest","type":"object"},"viewSvg":{"default":"","title":"Viewsvg","type":"string"},"views":{"default":[],"items":{"type":"string"},"title":"Views","type":"array"}},"title":"MoleculePayload","type":"object"},"ProteinView":{"description":"Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).","properties":{"chains":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Chains","type":"array"},"citation":{"default":"","title":"Citation","type":"string"},"colorBy":{"default":"ss","title":"Colorby","type":"string"},"identifier":{"default":"","title":"Identifier","type":"string"},"ligands":{"default":[],"items":{"additionalProperties":true,"type":"object"},"title":"Ligands","type":"array"},"plddtMean":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Plddtmean"},"scheme":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Scheme"},"source":{"default":"","title":"Source","type":"string"},"ssSource":{"default":"deposited","title":"Sssource","type":"string"},"subtitle":{"default":"","title":"Subtitle","type":"string"},"title":{"default":"","title":"Title","type":"string"}},"title":"ProteinView","type":"object"},"StereoWarning":{"description":"Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.","properties":{"atoms":{"default":[],"items":{"type":"integer"},"title":"Atoms","type":"array"},"kind":{"title":"Kind","type":"string"},"label":{"default":"","title":"Label","type":"string"}},"required":["kind"],"title":"StereoWarning","type":"object"}},"properties":{"cdxml_paths":{"default":[],"items":{"type":"string"},"title":"Cdxml Paths","type":"array"},"failed":{"default":[],"items":{"type":"string"},"title":"Failed","type":"array"},"molecules":{"default":[],"items":{"$ref":"#/$defs/MoleculePayload"},"title":"Molecules","type":"array"},"type":{"default":"batch","title":"Type","type":"string"}},"title":"BatchPayload","type":"object"}},{"_meta":{"ui":{"resourceUri":"ui://chem-app/index.html"}},"description":"Show a reaction mechanism step by step with curved arrows, drawn with the user's own substrates.\n\nThree mechanism families, each with a stated limit:\nSN2 — a methyl, primary or secondary alkyl chloride, bromide or iodide with\none anionic nucleophile (OH⁻, CN⁻, I⁻, Br⁻, RO⁻, N₃⁻, RS⁻/HS⁻); a\nstereocentre is inverted.\nSN1 — a tertiary or benzylic alkyl halide with water, an alcohol or one\nof those anions; an allylic halide is refused (two products).\nFischer esterification — one carboxylic acid with one primary or secondary\nalcohol.\nSubstrates outside the limit return an error that names the reason. Without\nsubstrates, or if the drawing fails, the textbook example is shown and the\nresult says so (substrates_drawn, fallback_reason).\n\nUse this when the user asks about one of these mechanisms, electron-flow\narrows, or wants to see how such a reaction proceeds step by step.\n\nA question that starts \"why does …\" or \"I don't understand why …\" about a\nmechanism is the same request in disguise (\"why does SN2 invert the\ncentre?\"). The arrows ARE the explanation; draw them and explain\nalongside, rather than describing them in words.\n\nNot this tool for: the net equation educt → product without\nintermediates — that is generate_reaction. Only the mechanism types\nlisted in reaction_type exist; for anything else use generate_reaction.\n\nArgs:\n    reaction_type: \"sn2\", \"sn1\" or \"fischer_ester\".\n    substrates: The user's substrates (names or SMILES): halide and nucleophile, or acid and alcohol.\n    current_step: 0 = overview (all steps), 1-N = specific step.","inputSchema":{"properties":{"current_step":{"default":0,"title":"Current Step","type":"integer"},"reaction_type":{"enum":["fischer_ester","sn1","sn2"],"title":"Reaction Type","type":"string"},"substrates":{"items":{"type":"string"},"title":"Substrates","type":"array"}},"required":["reaction_type","substrates"],"title":"generate_mechanismArguments","type":"object"},"name":"generate_mechanism","outputSchema":{"$defs":{"MechanismStepPayload":{"properties":{"is_transition_state":{"default":false,"title":"Is Transition State","type":"boolean"},"label":{"title":"Label","type":"string"},"svg":{"title":"Svg","type":"string"}},"required":["svg","label"],"title":"MechanismStepPayload","type":"object"}},"properties":{"current_step":{"default":0,"title":"Current Step","type":"integer"},"fallback_reason":{"default":"","title":"Fallback Reason","type":"string"},"name":{"title":"Name","type":"string"},"notes":{"default":[],"items":{"type":"string"},"title":"Notes","type":"array"},"reaction_type":{"title":"Reaction Type","type":"string"},"reversible":{"default":false,"title":"Reversible","type":"boolean"},"steps":{"items":{"$ref":"#/$defs/MechanismStepPayload"},"title":"Steps","type":"array"},"substrates_drawn":{"default":false,"title":"Substrates Drawn","type":"boolean"},"type":{"default":"mechanism","title":"Type","type":"string"}},"required":["name","reaction_type","steps"],"title":"MechanismPayload","type":"object"}},{"description":"Internal helper for the panel UI — never call this directly.\n\nThe panel's export button calls it when the image clipboard is blocked\nby the sandbox; saving a picture is the user's click, not yours. The\ngenerate_* tools already write their PNG and SVG files themselves.\n\nExpects a base64 PNG (with or without a `data:image/png;base64,`\nprefix) and returns the path it was written to.","inputSchema":{"properties":{"filename":{"title":"Filename","type":"string"},"png_base64":{"title":"Png Base64","type":"string"}},"required":["png_base64","filename"],"title":"save_pngArguments","type":"object"},"name":"save_png","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"save_pngOutput","type":"object"}}]}}}
