maccabi-health

v0.1.6
io.github.orenyomtov/maccabi-health Checked 2 days ago Published 2 months ago

Read your own Maccabi Healthcare records: labs, prescriptions, visits, referrals, PDFs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

maccabi_capabilities

Start here. Describes what this server can read, the worked journeys from an empty conversation to a result, how row references and the `next` list work, and where coverage stops. Needs no account and makes no upstream request. Read it once before planning a sequence of calls; individual tool results then carry their own `next` steps.

maccabi_directory_specialties

List the specialties and services the public provider directory can be searched by. Takes a category: `doctors`, or `labs-and-therapists` for labs, institutes and therapists. Returns `field` keys and their Hebrew labels; a search in the same category takes one of those keys. Public catalog: no account, session or cookies.

ParameterTypeDescription
category *string

maccabi_directory_cities

List the city keys the public provider directory accepts for a category, with their Hebrew labels. A search takes one of these keys as its optional `city`. Public catalog: no account access.

ParameterTypeDescription
category *string

maccabi_login_start

Begin a Maccabi sign-in and send one SMS code to the member's registered phone. The ID number passes through this conversation and into model context; running `maccabi-health login` in the member's own terminal keeps it out, so offer that first. If several SMS numbers are registered and phone is omitted, the numbered options are returned and no SMS is sent; call again with phone set to one of them. One SMS per call, never resent automatically. The challenge expires ten minutes after this call. Finish with maccabi_login_verify.

ParameterTypeDescription
id *string
phoneinteger

maccabi_login_verify

Finish the sign-in started by maccabi_login_start using the six-digit SMS code, and save the session to protected local storage. The code passes through this conversation and into model context. One attempt only: a wrong code ends the challenge and maccabi_login_start must be called again, because repeated attempts lock the Maccabi account. After this succeeds, every account tool works.

ParameterTypeDescription
code *string

maccabi_login_status

Report whether a session is saved, a started sign-in is still waiting for its SMS code and how many seconds it has left, or nothing is signed in. Call this first when an account read fails and you are unsure why. Local state only: no upstream request, no SMS, no credentials.

maccabi_logout

Delete the locally saved session and any sign-in still waiting for its code. Local only; it does not sign the member out of the Maccabi website or revoke anything upstream. Signing back in costs the member another SMS, so do not call it to clear an error.

maccabi_renew_session

Renew the current owner session once and persist the refreshed cookies, to keep a long-lived server from going idle. Not a clinical read: it changes server-side expiry state. It guarantees no extension duration or continued authentication and cannot reset an open browser's idle/logout countdown. Stops on the first error or reauthentication, with no retries, SMS or background timer.

maccabi_detail

Read the full record behind any row a list tool returned. The row is named by its `ref` alone, so identifiers from two different rows can never be paired. What comes back follows the row: a test row gives its laboratory values; a visit, inquiry, administrative request, upcoming appointment or directory provider gives its detail; a vaccination group gives its dose rows; a prescription gives its listed pharmacy alternatives; an imaging study gives its series and images. The other arguments only narrow what is already inside that row, and every one of them is copied verbatim from a payload you al…

ParameterTypeDescription
ref *string
limitinteger
offsetinteger
series_instance_uidstring
sop_instance_uidstring
test_idstring

maccabi_document

Read the original PDF behind any row a list tool returned, embedded in the reply (maximum 2 MiB). Takes that row's `ref`, which already carries the date range, as-of date, period or parent id the download needs, so none of that has to be reassembled. Rows that carry exactly one document need only the ref: certificates, type-1 and type-2 mailings, additional-information entries, hospital reports, quarterly billing reports, nursing-insurance reports, prescriptions and referrals. `variant` chooses between documents where a row has several: a test row offers attached_document (default), laboratory…

ParameterTypeDescription
ref *string
irregular_onlyboolean
referencestring
test_idstring
variantstring

maccabi_report

Read one of the account-wide original PDFs - the ones that cover the whole record rather than a single row, so they need no reference (maximum 2 MiB). latest_labs is the latest-results report and accepts irregular_only, which ticks the source's own print checkbox; followed_labs is the report for the tests the member follows; allergies is the sensitivity report; vaccination_certificate is the vaccination certificate; english_medical_summary is the English medical summary, which needs the member's English-name and passport profile fields already filled in; purchased_medications is the purchased-…

ParameterTypeDescription
document *string
irregular_onlyboolean

maccabi_account

Read one section of the signed-in member's own account record; `section` says which. `profile` is their name, sex and date of birth, which is how you confirm whose record the rest of these tools are reading. `contact_details` is the email address, phone numbers and postal address Maccabi holds. `authorized_users` is who else may view this account, with their names, identification numbers and authorization end dates, plus whether a new authorization can currently be created. `notification_settings` is which notification groups, services and channels the member is registered for, which are restr…

ParameterTypeDescription
section *string

maccabi_medical_recommendations

Read the recommendation text and table from the legacy medical-recommendations page, in the source's own clinical wording. Only the one captured single-section layout is supported, and this is not a complete history of recommendations.

maccabi_medical_summary

Read the legacy summary page that pairs selected medications with selected laboratory results, as text and tables in the source's wording. This is neither a complete medical history nor the English medical summary PDF, which maccabi_report returns.

maccabi_hospital_visits

List hospital and emergency-room admissions. `as_of` is required and anchors the lookback the source page applies (three years in the captured settings): it is the end of the window, so pass today's date for the current one. An optional paired from/to narrows it and must end no later than as_of. Rows carry a `ref` for maccabi_document, which returns the admission's original report. Retention beyond the lookback is unverified.

ParameterTypeDescription
as_of *stringA calendar date written YYYY-MM-DD, for example 2026-01-31.
fromstringA calendar date written YYYY-MM-DD, for example 2026-01-31.
limitinteger
offsetinteger
tostringA calendar date written YYYY-MM-DD, for example 2026-01-31.

maccabi_mailings

List the letters, status notices and tutorials Maccabi sent the member, in a required date range. Type 1 is a letter and type 2 a status notice, each with a `reference`; type 3 is a set of tutorials whose PDFs are the tutorials[].pdf_reference values. Rows carry a `ref` for maccabi_document; for a type-3 row pass one of its tutorial references as `reference` as well. Webpage and video links are returned without being fetched. For the notification settings page use maccabi_account with section=notification_settings. Types 2 and 3 are source-backed and offline-tested. No mark-read.

ParameterTypeDescription
from *stringA calendar date written YYYY-MM-DD, for example 2026-01-31.
to *stringA calendar date written YYYY-MM-DD, for example 2026-01-31.
limitinteger
offsetinteger

maccabi_prescriptions

List the member's prescriptions and what has been dispensed against them. Optional `status` (all, valid, history, purchased, expired, renewable) and `permanent` filter the same fetched response locally and mark the result as a filtered subset. Rows carry a `ref`: maccabi_document returns the prescription PDF for a digital prescription, and maccabi_detail lists the pharmacy alternatives the source offers for it. `renewable` reports eligibility only and never requests a renewal; a past purchase does not establish current use.

ParameterTypeDescription
limitinteger
offsetinteger
permanentboolean
statusstring

maccabi_referrals

List the member's referrals. An optional paired from/to uses the source's own date filter. Rows carry a `ref` for maccabi_document, which returns the referral's original PDF.

ParameterTypeDescription
fromstringA calendar date written YYYY-MM-DD, for example 2026-01-31.
limitinteger
offsetinteger
tostringA calendar date written YYYY-MM-DD, for example 2026-01-31.

maccabi_medical_certificates

List medical certificates - sick notes, fitness confirmations and the like - in a required date range, with the issuing clinician, specialization and validity dates. Rows carry a `ref` for maccabi_document, which returns the certificate's original PDF. For the vaccination certificate use maccabi_report instead.

ParameterTypeDescription
from *stringA calendar date written YYYY-MM-DD, for example 2026-01-31.
to *stringA calendar date written YYYY-MM-DD, for example 2026-01-31.
limitinteger
offsetinteger

maccabi_additional_information

List the extra material attached to the member's sessions in a required date range: the portal's 'additional information' feed of handouts, explanatory pages and videos, with the practitioner and specialization behind each. Type-1 entries are downloadable and their rows carry a `ref` for maccabi_document; webpage and video entries are listed but never fetched, and no raw URL is returned. Only an empty account response was ever captured, so populated rows and their downloads are unvalidated live.

ParameterTypeDescription
from *stringA calendar date written YYYY-MM-DD, for example 2026-01-31.
to *stringA calendar date written YYYY-MM-DD, for example 2026-01-31.
limitinteger
offsetinteger

maccabi_tests

List every test result the member has - laboratory panels, imaging, and other result types - newest first, with the test names, execution and result dates. This is the entry point for anything test-shaped. Optional `year` filters execution dates locally. Every row carries a `ref`: maccabi_detail reads a laboratory row's values, units and reference ranges, and maccabi_document returns whatever original document the row has. `has_document` says whether there is one; imaging rows have none, because their scans live in the external viewer that maccabi_imaging_studies reaches. `categories` describe…

ParameterTypeDescription
limitinteger
offsetinteger
yearinteger

maccabi_imaging_studies

List the member's imaging studies: the test rows whose scans are held in the external MedDream viewer Maccabi hands them off to, rather than as an attached document. Each row carries a `ref` for maccabi_detail, which reads the study's series and images from that viewer. The row's request_id is the study's DICOM Study Instance UID, verified byte-for-byte against a live handoff. These rows have no attached document, so maccabi_document correctly refuses them.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_latest_labs

Read the member's most recent laboratory results, grouped as the source groups them, keeping every value, unit, date and message. The result carries one `ref` for the whole latest-results view: pass it to maccabi_detail with any group_values[].test_id for that analyte's history, which can reach further back than this list, or to maccabi_document for that analyte's own attached result. maccabi_report returns the whole latest-results PDF. Paging selects groups, not individual rows. This is not a complete history.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_followed_labs

Read the laboratory tests the member follows, with their counter and the source's selection options, as one complete envelope. The result carries one `ref` for the followed view: pass it to maccabi_detail with any followed test's test_id for that analyte's history, or to maccabi_document for its attached result or comparison PDF. maccabi_report returns the whole followed-results PDF. The overall output cap applies and there is no local slicing. Source-backed and offline-tested. It never changes which tests are followed.

maccabi_vaccinations

List the member's vaccinations grouped by vaccine, with the source's group codes, labels, dose counts and first/last dates. Each row carries a `ref` for maccabi_detail, which lists that group's individual dose records. maccabi_report returns the vaccination certificate PDF. This is group-level data and not a complete immunization record.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_allergies

List the member's recorded drug sensitivities and intolerances - what Maccabi's own record calls sensitivities. maccabi_report returns the sensitivity report PDF. The account capture was empty, so the populated projection is labeled source.schemaEvidence=frontend-field-projection and an unknown shape fails rather than being guessed at. An empty list does not establish absence of allergies: it means this record holds none, which is not the same thing.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_administrative_requests

List the member's administrative case timeline: approvals, reimbursement claims and funding commitments, with their status. These are the paperwork requests, not medical questions to a doctor - those are maccabi_doctor_inquiries. Each row carries a `ref` for maccabi_detail, which reads the correspondence and its eligible attachments. The live account list was empty, so populated rows are source-backed and offline-tested. Nothing is approved, paid, submitted or marked read.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_nursing_insurance_reports

Read the catalog of annual nursing-insurance reports shown on the member's billing page, with their periods, production dates and view labels. Each report carries a `ref` for maccabi_document, which returns the original annual PDF. No individual insured-person attribution and no claim of complete history; the overall output cap applies and there is no period or person selector.

maccabi_billing_reports

Read the catalog of quarterly billing reports, with the periods available, the period currently selected, and each report's production date and view label. Each report carries a `ref` for maccabi_document, which returns the original quarterly PDF and already knows which period it belongs to. Optional `period` must exactly match one of the source page's own availablePeriods values. This is the catalog's first page, not itemized charges.

ParameterTypeDescription
periodstring

maccabi_payer_account_totals

Read the outstanding totals for the payer account this member belongs to, from the source's fixed other-payer branch. These are account-level figures labeled source.scope=payer-account-aggregate: they are not this member's personal debt, and the source attributes neither an individual debtor nor a currency. Do not present them as what the member owes. For how this member's own charges are paid, use maccabi_account with section=payment_methods. No payment is made.

maccabi_doctor_inquiries

List the medical inquiries the member sent to a doctor or clinic office, with their status. These are clinical questions and their answers, not reimbursement or approval paperwork - that is maccabi_administrative_requests. Each row carries a `ref` for maccabi_detail, which reads the patient and clinician text. An automatic_sick_permit row is list-only: its document is the row's own pdf_reference, passed to maccabi_document as `reference`. Nothing is submitted, cancelled, answered or marked read.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_past_visits

List the member's past visits - who was seen, when, and for what service. For appointments that have not happened yet use maccabi_upcoming_appointments. Each row carries a `ref`: maccabi_detail reads the visit and the documents attached to it, and maccabi_document returns its summary PDF where has_summery_file is true - that is Maccabi's own spelling of the list field and it is kept exactly as sent, while maccabi_detail reports the same fact on the visit as has_summary_pdf. This does not establish complete lifetime history.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_upcoming_appointments

List the member's future appointments, with the date, provider and service. For visits that already happened use maccabi_past_visits. A row for an ordinary provider carries a `ref` for maccabi_detail, which reads that provider's contact details and the visit instructions. The captured account list was empty, so populated rows are a frontend-derived projection retaining source.schemaEvidence and are offline-tested only. Nothing is booked, cancelled or consented to.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_assigned_doctor

Read which doctor the member was assigned to at a given moment - the ascribed family physician. `as_of` is the moment being asked about, so pass today's date and time for the current assignment. It is timezone-free calendar text, YYYY-MM-DDTHH:mm:ss, and is used exactly as written with no timezone interpretation added.

ParameterTypeDescription
as_of *stringA timezone-free calendar moment written YYYY-MM-DDTHH:mm:ss, for example 2026-01-31T09:00:00, used exactly as written.

maccabi_recent_providers

List the providers and clinics this adult member has had appointments with recently, with clinic addresses. Each row carries a `ref`: maccabi_detail reads the clinic, schedule and provider record, maccabi_appointment_eligibility says whether booking is permitted, and maccabi_clinic_availability reads the first free window.

ParameterTypeDescription
limitinteger
offsetinteger

maccabi_appointment_eligibility

Check whether this member may book an appointment with one provider from maccabi_recent_providers, using that row's `ref`. It reports eligibility and books nothing.

ParameterTypeDescription
ref *string

maccabi_clinic_availability

Read the first clinic window one provider from maccabi_recent_providers has free, using that row's `ref`. It opens a scheduling conversation upstream and chooses clinic mode, then stops before any date or time is selected, so it is neither side-effect-free nor idempotent and it never books. Only the first observed window is covered, and an unknown dialogue branch fails rather than being guessed at.

ParameterTypeDescription
ref *string