Skip to main content
Glama

Get Vital Signs

get_vital_signs
Read-onlyIdempotent

Retrieve a patient's vital-sign observations, including blood pressure, heart rate, temperature, and weight, with an optional start date to narrow long histories.

Instructions

List vital-sign Observation resources (blood pressure, heart rate, temperature, weight and similar) for one patient. Pass since (YYYY-MM-DD) for patients with a long history. Returns a JSON array with status, code, effective time and the value; blood pressure carries systolic and diastolic in component. Read only. Every call writes one audit record in which the patient id is HMAC-hashed; no PHI is logged. Access is checked first against the server patient policy: a patient outside the caller grant returns "Patient access not authorized" before any FHIR request. More than 200 results returns "Too many results (more than 200); narrow the request". Other failures return "FHIR request failed" with no server detail.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "patient_id": "<patient_id>"
    },
    "name": "get_vital_signs"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoOptional start date, YYYY-MM-DD. Only records dated on or after this date are returned; use it when a patient has a long history.
patient_idYesFHIR logical id of the Patient, 1 to 64 letters, digits, dots or hyphens, for example a sandbox id returned by the FHIR server. Not a name, MRN or other identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.1

TDQS

A4.5/5.0
Behavior5/5

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

Goes far beyond the annotations: discloses the audit record with an HMAC-hashed patient id, that no PHI is logged, the order of the access-policy check relative to the FHIR call, the 200-result cap with its exact error string, and the opaque 'FHIR request failed' failure mode. This is precisely the operational context an agent cannot get from readOnlyHint/idempotentHint.

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?

Front-loads purpose and scope, then return shape, then safety and failure behavior, in roughly five tight sentences with no filler. Each sentence contributes either selection guidance or runtime expectations.

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?

With no output schema, the description compensates by describing the returned array fields and how blood-pressure components are nested, plus the empty/over-limit/unauthorized failure cases. Nothing material for a correct call and interpretation is missing.

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

Parameters3/5

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

Schema coverage is 100% and both parameters are already documented there, including the YYYY-MM-DD pattern and the 'not a name, MRN' warning. The description's restatement of the since format and its long-history rationale add only marginal meaning, so the baseline 3 applies.

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 ('List vital-sign Observation resources') and enumerates the concrete data types that qualify (blood pressure, heart rate, temperature, weight), scoped to 'one patient'. That enumeration is what separates it from siblings such as get_lab_results and search_observations without needing to name them.

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

Usage Guidelines4/5

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

Gives clear context: use it for a single patient's vital signs, and pass 'since' when the patient has a long history. It does not explicitly exclude or route to alternatives like search_observations, so it stops short of full when/when-not guidance.

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