delete_lab_result
Permanently delete one or more lab results. Use when the user explicitly asks to remove or delete a logged lab result. Never guess a selector.
SELECTOR, pass exactly one of id, date, date+marker, or draw_id:
id: deletes a single marker's row.
draw_id: deletes every result sharing that draw_id at once, unambiguous by construction. Irreversible.
date (optionally narrowed by panel_name): deletes every result from that draw at once, but ONLY when exactly one draw exists on that date — see AMBIGUITY below. Irreversible and can remove many rows in one call. Confirm with the user before a date-scoped delete, especially one not narrowed by panel_name or marker.
date + marker (a marker-name substring, case-insensitive, optionally narrowed by panel_name): resolves to and deletes one marker's row, same as id. Errors with candidate IDs if more than one marker on that date matches.
AMBIGUITY: a bare date (optionally + panel_name) selector is rejected, with nothing deleted, if it would match more than one physical draw — an explicit draw_id from one source plus legacy rows with none, two distinct draw_ids, or two differently-named legacy sources on the same day. The error names every draw found; retry with draw_id, marker, or a narrower panel_name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Lab result ID. Deletes a single marker row. Alternative to date/draw_id. | |
| date | No | Collection date of the draw to delete. Format: YYYY-MM-DD. Deletes every result from that draw (see AMBIGUITY above), or (with marker) one row. Alternative to id/draw_id. | |
| marker | No | Optional with date: marker-name substring, case-insensitive (e.g. "LDL"), narrowing the date selector to delete a single marker row instead of the whole draw. Ignored when id or draw_id is given. | |
| draw_id | No | Opaque label of your choosing grouping a set of results from one visit, normalized server-side. Deletes every result sharing that label, unambiguous by construction. Alternative to id/date. Ignored when id is given. | |
| panel_name | No | Optional, narrows a date (or date+marker) selector to one panel within that draw (e.g. "Lipid Panel"). Ignored when id is given. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |