Find a test by name
labloop_find_testFind a medical test by name or abbreviation and retrieve its ID, description, eligibility, turnaround time, preparation advice, and sample type. Resolves ambiguous matches and offers suggestions when no exact match exists.
Instructions
Look up a medical test by name or abbreviation to get its id and details.
Details include description, eligible gender, turnaround time (hours), preparation advice, and sample type. Returns one of:
{status: "found", test: {...}}: a single match; use test.id in later calls.
{status: "ambiguous", options: [...]}: several matches; ask the user to pick one.
{status: "not_found", suggestions: [...]}: nothing matched; offer the close suggestions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ONLY the core test keyword or abbreviation. Strip filler words like 'test', 'screening', 'checkup', or 'exam' from the user's phrasing first. This is a substring match, so a full phrase like 'psa test' will not match the stored name 'Total PSA (Prostate-Specific Antigen)'. Examples: 'psa test' -> 'PSA', 'hiv screening' -> 'HIV', 'thyroid checkup' -> 'thyroid'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||