Skip to main content
Glama
Wellness Project MCP

Wellness Project MCP

list_lab_markers

Read-onlyIdempotent

Looks up canonical LOINC-coded lab markers, panels, units, and aliases to match user-provided names before logging lab results and prevent name drift.

Instructions

Returns LOINC-coded markers in the reference library: canonical name, LOINC code, panel, typical unit, and common aliases. Call this BEFORE log_lab_results to match user-provided marker names to canonical entries — same pattern as list_exercises for workouts. Prevents name drift and ensures trending works across lab visits.

With no arguments it returns the original full catalogue. For specific markers use query or panel. To retrieve the whole catalogue without client truncation, use limit=50 and follow the footer's next offset until complete, or compact=true for just codes, names and panels.

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": "list_lab_markers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum markers per response, at least 1; use 25-50 to avoid AI client truncation. Default: all matching markers.
panelNoPanel name, case-insensitive exact match (e.g. "Lipid Panel"). Default: every panel.
queryNoCase-insensitive substring of marker name, LOINC code, panel name or any alias (e.g. "ldl", "2345-7"). Default: no filter.
offsetNoNumber of matching markers to skip, for paging. Default: 0.
compactNotrue returns only LOINC_CODE, MARKER_NAME and PANEL (no units or aliases). Default: false.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.3.0
    • addedInput schema / properties / compact
      Added value: +{
      +  "description": "true returns only LOINC_CODE, MARKER_NAME and PANEL (no units or aliases). Default: false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Maximum markers per response, at least 1; use 25-50 to avoid AI client truncation. Default: all matching markers.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Number of matching markers to skip, for paging. Default: 0.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / panel
      Added value: +{
      +  "description": "Panel name, case-insensitive exact match (e.g. \"Lipid Panel\"). Default: every panel.",
      +  "type": "string"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "Case-insensitive substring of marker name, LOINC code, panel name or any alias (e.g. \"ldl\", \"2345-7\"). Default: no filter.",
      +  "type": "string"
      +}
  2. First observedv1.2.1

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses real operational behavior: responses can be truncated by AI clients, the response carries a footer with a next offset, and compact=true drops units and aliases. This is useful context that annotations alone would not convey.

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

Conciseness4/5

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

Front-loaded with purpose, followed by workflow guidance and then the paging detail, with an apt analogy to list_exercises. There is minor duplication between the description's truncation advice and the limit parameter's schema note, but nothing is wasted.

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

Completeness5/5

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

An output schema exists, so return shapes need no explanation; the description covers what matters for correct invocation: when to call it, how to filter, how to page without truncation, and how to slim the payload. Nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds operational meaning such as 'with no arguments it returns the original full catalogue' and the recommended limit=50 paging loop to avoid truncation. That guidance goes beyond the schema's per-field default documentation.

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?

States a specific verb and resource ('Returns LOINC-coded markers in the reference library') and enumerates the returned fields (canonical name, LOINC code, panel, unit, aliases). It is clearly distinguishable from list_lab_results because it returns the reference catalogue rather than recorded results.

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?

Explicitly instructs 'Call this BEFORE log_lab_results to match user-provided marker names to canonical entries' and justifies why (prevents name drift, keeps trending working). It also gives concrete alternatives for retrieval modes: query or panel for specific markers, or limit=50 with offset or compact=true for the whole catalogue.

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