Skip to main content
Glama

Server Details

Read and write patients, facilities, medical documents, and consolidated FHIR records in Metriport.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
m190/usefulapi-mcp
GitHub Stars
0

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.

Tool Definition Quality

Score is being calculated. Check back soon.

Available Tools

12 tools
metriport_create_patientCreate patient
Destructive
Inspect

Creates a Patient in Metriport (writes PHI and initiates health-information-exchange queries). Medical API: POST /medical/v1/patient (facilityId is a required query param).

ParametersJSON Schema
NameRequiredDescriptionDefault
dobYesDate of birth, yyyy-mm-dd.
addressYesOne or more addresses for the Patient.
contactNoOptional contact info (phone / email).
lastNameYesThe Patient's last name(s).
firstNameYesThe Patient's first name(s).
facilityIdYesREQUIRED. The Facility ID where the Patient receives care.
middleNameNoThe Patient's middle name(s).
genderAtBirthYesGender at birth: M, F, O (other), or U (unknown).
personalIdentifiersNoOptional personal IDs (driver's license / SSN).
metriport_get_document_query_statusGet document query status
Read-only
Inspect

Check the progress/status of a Patient's document query (download + FHIR conversion counts). Medical API: POST /medical/v1/document/query with only patientId (no facilityId) returns current status without starting a new query.

ParametersJSON Schema
NameRequiredDescriptionDefault
patientIdYesThe Patient ID whose document-query status to check.
metriport_get_document_urlGet document download URL
Read-only
Inspect

Get a temporary, downloadable URL for a document by its file name (optionally converting XML/CDA to html or pdf). Medical API: GET /medical/v1/document/download-url.

ParametersJSON Schema
NameRequiredDescriptionDefault
fileNameYesThe file name of the document (from metriport_list_documents).
conversionTypeNoOptional doc type to convert to, e.g. pdf, html, xml (for XML/CDA files).
metriport_get_facilityGet facility
Read-only
Inspect

Get a single Facility by its Metriport ID. Medical API: GET /medical/v1/facility/{id}.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesThe Metriport Facility ID.
metriport_get_medical_record_summaryGet medical record summary
Read-only
Inspect

Get a URL to the Patient's medical record summary rendered as pdf or html. Medical API: GET /medical/v1/patient/{patientId}/medical-record.

ParametersJSON Schema
NameRequiredDescriptionDefault
patientIdYesThe Metriport Patient ID.
conversionTypeYesThe format to render: pdf or html.
metriport_get_patientGet patient
Read-only
Inspect

Get a single Patient by its Metriport ID (demographics + facility IDs). Medical API: GET /medical/v1/patient/{id}.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesThe Metriport Patient ID.
metriport_list_consolidated_queriesList consolidated queries
Read-only
Inspect

Get the status of the Patient's consolidated-data (FHIR) queries. Medical API: GET /medical/v1/patient/{id}/consolidated/query.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesThe Metriport Patient ID.
metriport_list_documentsList documents
Read-only
Inspect

List the document references currently available for a Patient at Metriport (optionally filtered by date range and content search). Medical API: GET /medical/v1/document.

ParametersJSON Schema
NameRequiredDescriptionDefault
dateToNoInclusive end date yyyy-mm-dd.
contentNoText to search within the document reference and contents (min 3 chars).
dateFromNoInclusive start date yyyy-mm-dd.
patientIdYesThe Patient ID whose available documents to list.
metriport_list_facilitiesList facilities
Read-only
Inspect

List all Facilities under your Metriport Organization (id, name, npi, address). Medical API: GET /medical/v1/facility.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

metriport_list_patientsList patients
Read-only
Inspect

List Patients — all Patients, or only those at a given Facility if facilityId is supplied. Medical API: GET /medical/v1/patient.

ParametersJSON Schema
NameRequiredDescriptionDefault
facilityIdNoOptional Facility ID to filter by. Omit to list all patients.
metriport_start_consolidated_queryStart consolidated query
Destructive
Inspect

Starts a consolidated-data (FHIR) query for the patient. Returns a requestId; the bundle is delivered asynchronously (webhook). Medical API: POST /medical/v1/patient/{id}/consolidated/query.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesThe Metriport Patient ID.
dateToNoInclusive end date yyyy-mm-dd.
dateFromNoInclusive start date yyyy-mm-dd.
metadataNoOptional custom string key-value pairs returned in the webhook.
resourcesNoComma-separated, case-sensitive list of FHIR resource types. Omit for all.
conversionTypeNoOutput format: json, pdf, or html.
metriport_start_document_queryStart document query
Destructive
Inspect

Starts a document query — retrieves the patient's medical documents from connected HIE networks. Returns a requestId; results arrive asynchronously. Medical API: POST /medical/v1/document/query (patientId and facilityId are required query params).

ParametersJSON Schema
NameRequiredDescriptionDefault
metadataNoOptional custom string key-value pairs returned in the webhook.
patientIdYesREQUIRED. The Patient ID to query documents for.
facilityIdYesREQUIRED. The Facility ID where the patient receives care.

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.