delete_lab_result
Permanently delete one or more lab results. use: the user explicitly asks to remove or delete a logged lab result. Never guess a selector.
SELECTOR, exactly one of id | date | date+marker | draw_id:
id: one marker's row.
draw_id: every result sharing that draw_id at once, unambiguous by construction. Irreversible.
date (optionally narrowed by panel_name): every result from that draw at once, but ONLY when exactly one draw exists on that date (see AMBIGUITY). 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 (marker-name substring, case-insensitive, optionally narrowed by panel_name): one marker's row, same as id. More than one marker matching on that date -> error with candidate IDs.
AMBIGUITY: a bare date (optionally + panel_name) selector that would match more than one physical draw is rejected with nothing deleted: 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_lab_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Lab result ID: one marker row. | |
| date | No | Collection date of the draw, YYYY-MM-DD. See SELECTOR. | |
| marker | No | With date: case-insensitive marker-name substring (e.g. "LDL") narrowing to one marker row instead of the whole draw. Ignored with id or draw_id. | |
| draw_id | No | Opaque label grouping one visit's results, normalized server-side. See SELECTOR. Ignored when id is given. | |
| panel_name | No | Narrows a date (or date+marker) selector to one panel in that draw, e.g. "Lipid Panel". Ignored with id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |