Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NODE_ENVNoRuntime environment, such as development, test, or production. Affects whether FHIR_BASE_URL may default to the public synthetic SMART sandbox.
FHIR_BASE_URLYesHTTPS FHIR R4 base URL without embedded credentials, query, or fragment. Required explicitly in production; in explicit development/test without a backend token it may default to the public synthetic SMART sandbox. If NODE_ENV is omitted or a token is set, an explicit URL is required.
AUDIT_HMAC_KEYYesServer-side secret, exactly 64 hex characters, used to HMAC patient IDs in the audit log. Generate with `openssl rand -hex 32`. Production rejects the demo zero-key and any other single repeated character.
AUDIT_LOG_FILENoOptional file sink for audit records, honored in every mode including production. If unset or the sink fails, audit records go to stderr.
CALLER_IDENTITYYesOperator-configured audit label for stdio; not an authenticated identity.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_patientA

Read one FHIR R4 Patient resource by its logical id from the configured FHIR server (by default the public synthetic SMART sandbox). Use it first to confirm a patient exists and to get gender, birth date and active status; use search_observations or get_medication_list for clinical data. Read only. Returns the Patient as JSON with only id, active, gender and birthDate. Every call writes one audit record in which the patient id is HMAC-hashed; no PHI is logged. Other failures return the fixed text "FHIR request failed" with no server detail. Access is checked first against the server patient policy: a patient outside the caller grant returns "Patient access not authorized" before any FHIR request.

search_observationsA

Search FHIR R4 Observation resources for one patient filtered by a code, for example vital signs or lab results. Use it when you know the code to look for (LOINC is typical: http://loinc.org|8867-4 is heart rate); use get_patient to check the patient first. Read only. Returns a JSON array of Observations with status, code, subject, effective or issued time and the value, at most 200 results across up to 5 pages of 50; larger result sets fail instead of being truncated. Every call writes one hashed audit record. Other failures return the fixed text "FHIR request failed" with no server detail. Access is checked first against the server patient policy: a patient outside the caller grant returns "Patient access not authorized" before any FHIR request.

get_medication_listA

List the active FHIR R4 MedicationRequest resources for one patient. Use it to see what is currently prescribed; inactive, stopped and completed requests are excluded. Read only. Returns a JSON array of MedicationRequests with status, intent, subject, the medication code or reference and authoredOn, at most 200 results. Every call writes one hashed audit record. Other failures return the fixed text "FHIR request failed" with no server detail. Access is checked first against the server patient policy: a patient outside the caller grant returns "Patient access not authorized" before any FHIR request.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 3 tools

Disambiguation5/5

Each tool maps to a distinct FHIR resource and access pattern: get_patient for demographics, get_medication_list for active MedicationRequests, search_observations for code-filtered Observations. The descriptions cross-reference each other explicitly, making selection unambiguous.

Naming Consistency4/5

All names are snake_case and verb-first, but the set mixes get_ (single/literal list) with search_ (filtered query). The split is semantically defensible rather than arbitrary, so it is only a minor deviation from a single uniform pattern.

Tool Count3/5

Three tools is at the low edge of well-scoped; each does earn its place and there is no filler. However, for a FHIR server the surface is very thin and offers no way to reach other common resource types.

Completeness3/5

The read-only design is deliberate and covers a minimal patient summary (demographics, medications, observations). Notable gaps remain: no Conditions, Allergies, Encounters or DiagnosticReports, and no discovery mechanism for codes beyond external knowledge.

Maintenance

ActivityActive
ResponsivenessNo recent community issues