add_grow_note
ChatGPTAppend a note to a grow's journal — active or harvested. Notes are immutable, append-only entries, exactly like the app: once saved, a note cannot be edited or deleted; a correction is a new note. The note text is the user's own words; a summary they haven't seen is not their journal entry.
delete_grow
ChatGPTPermanently removes a grow (and its place in the Garden or journal) from every surface, including the app. Deletion is immediate and irreversible, and the server does not ask for confirmation itself: it relies on the user having explicitly confirmed this specific grow, identified by its crop, before the call.
diagnose_plant
ChatGPTDiagnose a hydroponic plant issue from a photo (via photo_upload_id from get_photo_upload_link, or "latest") plus optional EC/pH/water-temp readings and observed issues. Works with no photo too, reasoning from context alone at lower confidence — that lower confidence is part of the result. With grow_id set to one of the user's real grows, the diagnosis builds on that grow's prior checks and saves to its record. Limit: 3 diagnoses a month, up to 20 in total. When a photo is or could be involved, start_diagnosis (the form) covers it in one step — an inline picker in the same place as the readings, with no separate get_photo_upload_link round trip.
get_crop_options
ChatGPTHydroGardenAdvisor's full crop roster: categories, crops, known cultivars, and (where the app has real data) code-computed targets — EC, pH, water temp, photoperiod, typical cycle length, supported systems, difficulty. This is the source of valid crop_id values, and the roster to show when the user is choosing what to grow or asks what the app supports.
get_garden
ChatGPTThe user's active grows: crop, day count, growth stage, latest EC/pH/water-temp readings with code-computed out-of-range flags, diagnosis count, and the latest journal note. This is the live source when the user refers to their garden, an active grow, or how a plant is doing; earlier numbers in the conversation may be stale.
get_grow_comparison
ChatGPTSide-by-side runs of one crop from the user's journal: cycle length, harvest weight, ratings, verdicts, and each run's stored next-time adjustments — HydroGardenAdvisor's own core feature for dialing in a crop over repeated grows. Answers how this run compares, or whether they are improving.
get_grow_history
ChatGPTThe journal: the user's harvested grows with their harvest assessments, diagnoses, and notes. This is the source of record when the user refers to a past grow, a previous harvest, or what they learned last time. Active grows live in get_garden.
get_grow_status
ChatGPTOne grow in full: setup targets, complete readings/diagnosis history, journal notes, day count and stage, with code-computed range flags on the latest readings. The source for a conversation about a specific grow.
get_pending_result
ChatGPTFetch the result of a form the user filled in from a start_setup_plan, start_diagnosis, or start_harvest_log link. Applies once the user says they have submitted the form (or asks for the result). While the analysis is still running it reports that status instead of a result; the result is available on a later call.
get_photo_upload_link
ChatGPTMints a one-time upload link for a plant photo. A photo cannot travel through a tool call — the user opens this link to upload it, and diagnose_plant or log_harvest then take the same photo_upload_id. The link expires in 15 minutes.
get_quick_guide
ChatGPTA quick guide to the Garden / Plan / Check / Harvest flow, with a link to the full how-it-works page for whichever surface the user is on. Fits when the user asks for a quick guide, asks how HydroGardenAdvisor works, wants an overview before diving in, or seems new and unsure where to start — not returning users mid-cycle who already know the loop.
get_setup_recommendation
ChatGPTGet a setup recommendation for a crop: cultivar choice, photoperiod/DLI/PPFD targets, EC and pH target ranges, water temperature, cycle timeline, top failure modes to watch for, and a nutrient recommendation. READ-ONLY — a preview that does not add a grow to the Garden; its response carries a single-use setup_preview_id that start_grow commits if the user decides to grow it. carry_forward: true applies what the user learned last time — their own journal notes and the stored adjustments from their last harvested run (same system preferred); the server resolves them by reference, so they need no retyping. crop_id is a SPECIFIC crop, not a category: a category name (e.g. "lettuce", "herbs") covers several distinct crop_ids, and which one to grow is the user's choice; get_crop_options has the roster. If cultivar_preference is omitted, this returns cultivar_options instead of a recommendation — a grower asking what to grow usually has no seeds yet, and the cultivar is their choice (including "no preference"); the recommendation follows from their answer. start_setup_plan (the form) is the preferred path — it has real reservoir_gallons and nutrient_system fields that this direct tool only gets if they were asked about.
log_harvest
ChatGPTClose out a grow cycle with a harvest assessment — quality, what worked, what to adjust next cycle. With grow_id set to a real Garden grow, the assessment is grounded in that grow's full record, and a successful log CLOSES the grow (it moves from the Garden to the journal). A photo is optional (same photo_upload_id flow as diagnose_plant). Limit: 3 harvest assessments a month, up to 20 in total. start_harvest_log (the form) is the preferred path: harvest_weight_g and user_rating are facts only the grower has, and the form's fields let them fill each in or leave it blank. Both are optional here and are omitted when the grower has not stated them.
run_calculator
ChatGPTHydroGardenAdvisor's deterministic calculators — the SAME code-computed dosing math as the app's own screens, and the source for any dose: nutrient_mix (Masterblend / MaxiGro / GH 3-part / Campbells Diamond White + Nitro-Cal per-reservoir amounts — GH needs the grower's own ml-per-gallon rates (their ratio, scaled to target_ec_ms_cm when given), there is deliberately no flat GH default), ph_adjust (mL of pH Down toward a target), ec_adjust (from the reservoir size, water in it now, current and target EC: top up, drain/refill, or a dose sized from the same per-system EC constants as nutrient_mix — GH 3-part takes gh_*_ml_per_gal — with Kratky-specific rules), light_check (lux → PPFD → DLI for a light type). The returned numbers and warnings are the dosing answer, meant to be relayed verbatim.
start_diagnosis
ChatGPTDiagnose-a-plant form: returns a single link to a form with an inline photo picker plus EC, pH, water-temp and days-into-cycle fields in one place. grow_id ties it to one of the grower's Garden grows; known readings can be passed as prefill. The result is available from get_pending_result with the returned pending_id.
start_grow
ChatGPTThe explicit commit: adds a previewed grow to the user's Garden, where the app and every other surface will see it. Requires the setup_preview_id from a get_setup_recommendation response (valid 30 minutes, single-use). It belongs to the moment the user clearly says they are starting this grow — asking about a crop is not starting it, and the server does not check the difference, so a call on a question alone creates a real grow. A grow needs a real cultivar: if the preview was made without one (a recommendation for someone still choosing seeds), this returns cultivar_options instead of starting; the grow starts on a repeat call with cultivar set to what the grower actually has.
start_harvest_log
ChatGPTLog-a-harvest form: returns a single link to a form with a photo picker plus weight and rating fields the grower fills in or leaves blank. grow_id ties it to the Garden grow it closes. The result is available from get_pending_result with the returned pending_id.
start_setup_plan
ChatGPTPlan-a-grow form: returns a single link to a form with crop, cultivar and system pickers plus reservoir size and nutrient product fields the grower sees and can change. Known details can be passed as prefill. The plan is generated server-side when the form is submitted; the result is available from get_pending_result with the returned pending_id.