Skip to main content
Glama
jesse-smith

searchloinc

by jesse-smith

search_loincs

Search LOINC terms for lab tests, vitals, and clinical measurements using free-text queries. Get relevance-ranked results from the LOINC database.

Instructions

Search LOINC terms (observations/measurements — the main LOINC table). Use this for lab tests, vital signs, clinical measurements, panels, and surveys — anything you'd look up by a test name like 'hemoglobin', 'sodium serum', or a LOINC number. Results are relevance-ranked by the LOINC Search API (same ranking as the loinc.org/search UI); if the top hits miss, reformulate the query rather than deep-paging. Rows are compact for triage — call get_loinc(code) to drill into the full record for a specific LOINC. Output is a TOON table capped to a character budget; when truncated, page with offset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNo
queryYes
offsetNo
languageNo
sortorderNo
include_facetsNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses relevance ranking, compact rows for triage, character-budget capped output, and pagination with offset. No annotations provided, so description carries full burden. Could mention read-only nature but otherwise transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Efficiently written with front-loaded purpose, then usage tips, ranking behavior, and pagination. No superfluous sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Provides good context for using the tool, including output format (TOON table) and when to use sibling tool. However, missing parameter descriptions and output schema details, leaving some gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Parameter schema coverage is 0%, but description only explains query and offset implicitly. Missing explanations for rows, language, sortorder, and include_facets, which are crucial for proper usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states this tool searches LOINC terms, listing specific examples like lab tests, vital signs, and measurements. It distinguishes from siblings by mentioning get_loinc for drill-down and other search tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance on when to use this tool (for any LOINC search by name or number), and when to reformulate queries instead of deep-paging. Also instructs to use get_loinc for full record details.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jesse-smith/searchloinc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server