Skip to main content
Glama
MiltonPolanco

Clinic Laboratory MCP Server

compare_lab_results

Compare earliest and latest lab results for one test within an optional date range to track changes over time.

Instructions

Compare the earliest and latest result of one test in an optional YYYY-MM-DD range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateNo
test_codeYes
start_dateNo
medical_recordYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description bears the full burden of disclosing behavior. It does explain the core behavior (comparing earliest vs latest result) and the optional date range, but it does not disclose edge-case behavior such as what happens when no results exist, how dates are interpreted, or whether the range is inclusive. This is moderate transparency for a read-style comparaison tool.

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?

One sentence with no filler. It front-loads the comparison action and includes the key scoping detail (date range) in the same breath. Every word contributes, and the length is proportionate to the simplicity of the operation.

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

Completeness2/5

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

Although an output schema exists and may explain return values, the input side is incomplete: the required medical_record parameter is not described anywhere, and usage guidance is absent. The description alone does not give an agent enough context to confidently invoke this tool for a new patient or test, especially with four parameters and no annotated safety or behavior hints.

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?

Schema description coverage is 0%, so the description must compensate for missing parameter documentation. It adds meaning for the date range ('optional YYYY-MM-DD range') and implies test_code via 'one test', but it never mentions the required medical_record parameter or clarifies how start_date/end_date individually behave. The core identity of the patient/record is left to the raw schema field name, which is insufficient at 0% coverage.

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 states a clear, specific action: compare the earliest and latest result of one test. It also scopes the comparison to an optional date range, which distinguishes it from sibling tools like get_latest_lab_results that only fetch latest results. The verb 'compare' and resource 'earliest/latest result of one test' leave little ambiguity.

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

Usage Guidelines2/5

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

The description implies a use case but does not explicitly state when to choose this tool over alternatives such as get_latest_lab_results or list_pending_exams. There is no when-to-use/when-not-to-use guidance or mention of alternatives, so an agent must infer the appropriate context.

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

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/MiltonPolanco/clinic-lab-mcp-server'

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