Feegow MCP by usefulapi

v1.13.1
io.usefulapi/feegow Checked 1 day ago Published 6 hours ago

Read clinic appointments, patients and finances; manage bookings and patient registration.

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

feegow_list_units List units (branches)

The clinic's main unit (matriz, unidade_id 0) and its branches, with trade name, CNPJ, address and contacts. Use the unit ids to filter other tools. GET /company/list-unity.

feegow_list_locations List locations (rooms)

Rooms/locations registered in each unit (id, name, unidade_id). The location id is needed to create appointments. GET /company/list-local.

feegow_list_specialties List specialties

Medical specialties offered, with their default consultation procedure ids and whether they show in online booking. GET /specialties/list.

ParameterTypeDescription
unit_idintegerUnit (branch) id. 0 = the main clinic (matriz). Omit for all units where the endpoint allows it. See feegow_list_units.

feegow_list_professionals List professionals

Doctors and other professionals (names and ids), active or inactive, optionally by unit or specialty. GET /professional/list.

ParameterTypeDescription
activebooleantrue (default) = active professionals, false = inactive.
specialty_idintegerOnly professionals of this specialty (see feegow_list_specialties).
unit_idintegerUnit (branch) id. 0 = the main clinic (matriz). Omit for all units where the endpoint allows it. See feegow_list_units.

feegow_get_professional Get professional

One professional's details and specialties. GET /professional/search.

ParameterTypeDescription
professional_id *integerFeegow professional id (see feegow_list_professionals).

feegow_list_professional_insurances List insurances a professional accepts

Health insurances (convênios) accepted by one professional. GET /professional/insurance.

ParameterTypeDescription
professional_id *integerFeegow professional id.

feegow_list_insurances List insurances (convênios)

All accepted health insurances with their plans. GET /insurance/list.

ParameterTypeDescription
unit_idintegerUnit (branch) id. 0 = the main clinic (matriz). Omit for all units where the endpoint allows it. See feegow_list_units.

feegow_list_procedure_types List procedure types

Procedure types (consultation, exam, surgery, return...) and their ids, used by feegow_list_procedures. GET /procedures/types.

feegow_list_procedures List procedures

Procedures (consultations, exams...) with price IN CENTS (R$ 12.00 = 1200), duration and online-booking flag. Give a procedure type (see feegow_list_procedure_types) or one procedure id; optionally narrow by name, unit, specialty, professional, patient or price table. GET /procedures/list.

ParameterTypeDescription
namestringPart of the procedure name.
patient_idintegerPrices for this patient (their price table / insurance).
price_table_idintegerPrivate price table id.
procedure_idintegerOne procedure id (use when no type is given).
procedure_type_idintegerProcedure type id (feegow_list_procedure_types).
professional_idinteger
specialty_idinteger
unit_idintegerUnit (branch) id. 0 = the main clinic (matriz). Omit for all units where the endpoint allows it. See feegow_list_units.

feegow_list_appointment_statuses List appointment statuses

Appointment status ids and names (booked, confirmed, in service, attended, no-show, cancelled...), used to filter and update appointments. GET /appoints/status.

feegow_list_appointment_reasons List cancel/reschedule reasons

Reasons (motivos) that cancel or reschedule an appointment can carry; the id is required by feegow_cancel_appointment and feegow_reschedule_appointment. GET /appoints/motives.

feegow_list_booking_channels List booking channels

Channels an appointment can be booked through (online booking, clinic...). GET /appoints/list-channel.

feegow_list_patient_sources List patient sources

Patient acquisition sources (origens) and their ids, used when creating a patient. GET /patient/list-sources.

feegow_list_appointments List appointments

Appointments in a date range (or one appointment by id), filtered by professional, patient, unit, location, specialty, channel, procedure or status. Paged: pass the previous reply's next_start. Health data: contains patient ids. GET /appoints/search.

ParameterTypeDescription
appointment_idintegerOne appointment id; then the dates are optional.
channel_idintegerBooking channel id (feegow_list_booking_channels).
date_fromstringFirst day, yyyy-mm-dd. Required unless appointment_id is given.
date_tostringLast day, yyyy-mm-dd. Required unless appointment_id is given.
is_returnbooleantrue = only return visits (retorno).
location_idinteger
page_sizeintegerRows per page, 1-200 (default 50).
patient_idinteger
procedure_idinteger
professional_idinteger
specialty_idinteger
startintegerPosition of the first row (default 0). Use next_start from the previous reply.
status_idsarrayOnly these statuses (feegow_list_appointment_statuses), e.g. [1, 7] for booked.
unit_idintegerUnit (branch) id. 0 = the main clinic (matriz). Omit for all units where the endpoint allows it. See feegow_list_units.

feegow_get_available_schedule Find open appointment slots

Free appointment times for a specialty or a procedure between two dates, optionally for one professional, unit or insurance. Use before feegow_create_appointment. GET /appoints/available-schedule.

ParameterTypeDescription
date_from *stringA date, yyyy-mm-dd.
date_to *stringA date, yyyy-mm-dd.
kind *stringWhat to search by: a specialty or a procedure.
age_fromintegerPatient's minimum age.
age_tointegerPatient's maximum age.
insurance_idintegerInsurance (convênio) id; see feegow_list_insurances.
procedure_idintegerRequired when kind is procedure.
professional_idinteger
specialty_idintegerRequired when kind is specialty.
unit_idintegerUnit (branch) id. 0 = the main clinic (matriz). Omit for all units where the endpoint allows it. See feegow_list_units.

feegow_list_patients List patients

Registered patients, filtered by phone, CPF, source, birthday (dd-mm) or last-changed date. Health data (LGPD): returns names, contacts and CPF. Paged: pass the previous reply's next_offset. GET /patient/list.

ParameterTypeDescription
birthdaystringBirthday day and month, dd-mm (e.g. 30-01).
changed_sincestringOnly patients changed on this date, yyyy-mm-dd.
cpfstringCPF, digits only.
include_health_programbooleantrue = include each patient's health program.
limitintegerRows per page, 1-200 (default 50).
offsetintegerRows to skip (default 0).
phonestringPhone, digits only.
source_idintegerPatient source id (feegow_list_patient_sources).

feegow_get_patient Get patient

One patient by id or CPF: name, birth date, contacts, address, insurance. Health data (LGPD). Feegow caches reads for 5 minutes; set fresh=true right after an edit. GET /patient/search.

ParameterTypeDescription
cpfstringCPF, digits only (used when no patient_id).
freshbooleantrue = bypass Feegow's 5-minute cache.
include_health_programboolean
include_photo_urlbooleantrue = include the patient photo URL.
patient_idintegerFeegow patient id.

feegow_list_patient_dependents List patient dependents

Dependents registered under one patient. Health data (LGPD). GET /patient/list-dependents.

ParameterTypeDescription
patient_id *integer

feegow_list_proposals List proposals (quotes)

Treatment/procedure proposals with values in REAIS (R$): for one patient, and/or created (or last changed) in a date range. Give patient_id, or both dates. GET /proposal/list.

ParameterTypeDescription
date_fromstringA date, yyyy-mm-dd.
date_kindstringWhich date the range filters: created (default) or last changed.
date_tostringA date, yyyy-mm-dd.
patient_idinteger

feegow_list_invoices List invoices (receivables and payables)

Financial invoices (contas) in a date range: receivables (C) or payables (D), with value, description, payer/payee, invoice number and payment details. Optionally one unit, invoice or appointment. Financial data. GET /financial/list-invoice.

ParameterTypeDescription
date_from *stringA date, yyyy-mm-dd.
date_to *stringA date, yyyy-mm-dd.
direction *stringreceivable = contas a receber (C), payable = contas a pagar (D).
appointment_idinteger
invoice_idinteger
unit_idintegerUnit (branch) id. 0 = the main clinic (matriz). Omit for all units where the endpoint allows it. See feegow_list_units.

feegow_create_appointment Create appointment

WRITE: books a new appointment in the clinic's agenda (not in the past). Check feegow_get_available_schedule first; a taken slot or unknown patient is refused. Feegow may notify the patient (SMS/e-mail/WhatsApp) according to the clinic's own automation settings. valor is in CENTS and must be 0 with insurance. POST /appoints/new-appoint.

ParameterTypeDescription
date *stringAppointment day, yyyy-mm-dd (today or later).
location_id *integerLocation (room) id; see feegow_list_locations. 0 = default.
patient_id *integer
procedure_id *integer
professional_id *integer
specialty_id *integer
time *stringTime of day, 24 h, HH:MM or HH:MM:SS.
value_cents *integerPrice in CENTS (e.g. R$ 550.00 = 55000). Must be 0 when using insurance.
channel_idintegerBooking channel id (feegow_list_booking_channels).
emailstringPatient e-mail.
insurance_idintegerInsurance (convênio) id: set it, with insurance_plan_id, to book under insurance.
insurance_plan_idintegerPlan id of the insurance. Required with insurance_id.
is_returnbooleantrue = a return visit (retorno).
mobilestringPatient mobile phone.
notesstringAppointment note.
phonestringPatient phone.
price_table_idintegerPrivate price table id.

feegow_reschedule_appointment Reschedule appointment

WRITE: moves an existing appointment to a new date and time (the old slot is released). A reason id is required (feegow_list_appointment_reasons). Feegow may notify the patient according to the clinic's settings. POST /appoints/reschedule.

ParameterTypeDescription
appointment_id *integer
date *stringNew day, yyyy-mm-dd.
reason_id *integerReason id from feegow_list_appointment_reasons.
time *stringNew time, HH:MM or HH:MM:SS.
notesstringNote on the change.

feegow_cancel_appointment Cancel appointment

WRITE: cancels an existing appointment (it cannot be restored through the API; book a new one instead). A reason id is required (feegow_list_appointment_reasons). Feegow may notify the patient according to the clinic's settings. POST /appoints/cancel-appoint.

ParameterTypeDescription
appointment_id *integer
reason_id *integerReason id from feegow_list_appointment_reasons.
notesstringNote on the cancellation.

feegow_update_appointment_status Update appointment status

WRITE: sets an appointment's status (for example confirmed, waiting, attended, no-show) and adds a note to the agenda. Status ids: feegow_list_appointment_statuses. To cancel or move an appointment use the cancel/reschedule tools. POST /appoints/statusUpdate.

ParameterTypeDescription
appointment_id *integer
status_id *integer
arrival_timestringArrival time shown in the waiting room (only for the waiting status), HH:MM.
notesstringNote added to the agenda entry.

feegow_create_patient Create patient

WRITE: registers a new patient and returns the patient_id. Feegow does not duplicate: when a patient with the same CPF and birth date (or, without a CPF, the same name plus mobile, e-mail or birth date) exists, that patient's id is returned and nothing is created. Set no_cpf=true for a patient without CPF. Health data (LGPD): only register data the patient gave the clinic. POST /patient/create.

ParameterTypeDescription
full_name *stringFull name (max 200 characters).
addressstringStreet.
birth_datestringBirth date, yyyy-mm-dd.
citystringCity.
complementstringAddress complement.
cpfstringCPF, 11 digits, numbers only.
districtstringDistrict (bairro).
emailstringE-mail.
email2stringSecond e-mail.
genderstringM or F.
insurance_cardstringInsurance card number (matrícula).
insurance_holderstringInsurance holder's name.
insurance_idintegerInsurance (convênio) id.
insurance_plan_idintegerInsurance plan id.
insurance_valid_untilstringInsurance validity, yyyy-mm-dd.
mobilestringMobile phone, digits only.
mobile2stringSecond mobile phone, digits only.
no_cpfbooleantrue = the patient has no CPF (then cpf is ignored).
notesstringNote on the patient record.
numberstringStreet number.
phonestringPhone, digits only.
phone2stringSecond phone, digits only.
price_table_idintegerPrivate price table id.
social_namestringSocial name.
source_idintegerPatient source id (feegow_list_patient_sources).
statestringState, two letters (e.g. RJ).
zipstringCEP (max 9 characters).

feegow_update_patient Update patient

WRITE: changes a patient's registration data. Only the fields you pass are sent; they overwrite stored values. CPF can only be set when absent, never replaced after registration (vendor rejects a different existing CPF). Health data (LGPD). Feegow caches reads for 5 minutes (use fresh=true in feegow_get_patient to see the change). POST /patient/edit.

ParameterTypeDescription
patient_id *integer
addressstringStreet.
birth_datestringBirth date, yyyy-mm-dd.
citystringCity.
complementstringAddress complement.
cpfstringCPF, 11 digits, numbers only.
districtstringDistrict (bairro).
emailstringE-mail.
full_namestringFull name (max 200 characters).
genderstringM or F.
mobilestringMobile phone, digits only.
mobile2stringSecond mobile phone, digits only.
numberstringStreet number.
phonestringPhone, digits only.
phone2stringSecond phone, digits only.
price_table_idintegerPrivate price table id.
statestringState, two letters (e.g. RJ).
zipstringCEP (max 9 characters).