Feegow MCP by usefulapi
v1.13.1Read 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.
| Parameter | Type | Description |
|---|---|---|
unit_id | integer | Unit (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.
| Parameter | Type | Description |
|---|---|---|
active | boolean | true (default) = active professionals, false = inactive. |
specialty_id | integer | Only professionals of this specialty (see feegow_list_specialties). |
unit_id | integer | Unit (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.
| Parameter | Type | Description |
|---|---|---|
professional_id * | integer | Feegow 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.
| Parameter | Type | Description |
|---|---|---|
professional_id * | integer | Feegow professional id. |
feegow_list_insurances List insurances (convênios)
All accepted health insurances with their plans. GET /insurance/list.
| Parameter | Type | Description |
|---|---|---|
unit_id | integer | Unit (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.
| Parameter | Type | Description |
|---|---|---|
name | string | Part of the procedure name. |
patient_id | integer | Prices for this patient (their price table / insurance). |
price_table_id | integer | Private price table id. |
procedure_id | integer | One procedure id (use when no type is given). |
procedure_type_id | integer | Procedure type id (feegow_list_procedure_types). |
professional_id | integer | |
specialty_id | integer | |
unit_id | integer | Unit (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.
| Parameter | Type | Description |
|---|---|---|
appointment_id | integer | One appointment id; then the dates are optional. |
channel_id | integer | Booking channel id (feegow_list_booking_channels). |
date_from | string | First day, yyyy-mm-dd. Required unless appointment_id is given. |
date_to | string | Last day, yyyy-mm-dd. Required unless appointment_id is given. |
is_return | boolean | true = only return visits (retorno). |
location_id | integer | |
page_size | integer | Rows per page, 1-200 (default 50). |
patient_id | integer | |
procedure_id | integer | |
professional_id | integer | |
specialty_id | integer | |
start | integer | Position of the first row (default 0). Use next_start from the previous reply. |
status_ids | array | Only these statuses (feegow_list_appointment_statuses), e.g. [1, 7] for booked. |
unit_id | integer | Unit (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.
| Parameter | Type | Description |
|---|---|---|
date_from * | string | A date, yyyy-mm-dd. |
date_to * | string | A date, yyyy-mm-dd. |
kind * | string | What to search by: a specialty or a procedure. |
age_from | integer | Patient's minimum age. |
age_to | integer | Patient's maximum age. |
insurance_id | integer | Insurance (convênio) id; see feegow_list_insurances. |
procedure_id | integer | Required when kind is procedure. |
professional_id | integer | |
specialty_id | integer | Required when kind is specialty. |
unit_id | integer | Unit (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.
| Parameter | Type | Description |
|---|---|---|
birthday | string | Birthday day and month, dd-mm (e.g. 30-01). |
changed_since | string | Only patients changed on this date, yyyy-mm-dd. |
cpf | string | CPF, digits only. |
include_health_program | boolean | true = include each patient's health program. |
limit | integer | Rows per page, 1-200 (default 50). |
offset | integer | Rows to skip (default 0). |
phone | string | Phone, digits only. |
source_id | integer | Patient 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.
| Parameter | Type | Description |
|---|---|---|
cpf | string | CPF, digits only (used when no patient_id). |
fresh | boolean | true = bypass Feegow's 5-minute cache. |
include_health_program | boolean | |
include_photo_url | boolean | true = include the patient photo URL. |
patient_id | integer | Feegow patient id. |
feegow_list_patient_dependents List patient dependents
Dependents registered under one patient. Health data (LGPD). GET /patient/list-dependents.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
date_from | string | A date, yyyy-mm-dd. |
date_kind | string | Which date the range filters: created (default) or last changed. |
date_to | string | A date, yyyy-mm-dd. |
patient_id | integer |
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.
| Parameter | Type | Description |
|---|---|---|
date_from * | string | A date, yyyy-mm-dd. |
date_to * | string | A date, yyyy-mm-dd. |
direction * | string | receivable = contas a receber (C), payable = contas a pagar (D). |
appointment_id | integer | |
invoice_id | integer | |
unit_id | integer | Unit (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.
| Parameter | Type | Description |
|---|---|---|
date * | string | Appointment day, yyyy-mm-dd (today or later). |
location_id * | integer | Location (room) id; see feegow_list_locations. 0 = default. |
patient_id * | integer | |
procedure_id * | integer | |
professional_id * | integer | |
specialty_id * | integer | |
time * | string | Time of day, 24 h, HH:MM or HH:MM:SS. |
value_cents * | integer | Price in CENTS (e.g. R$ 550.00 = 55000). Must be 0 when using insurance. |
channel_id | integer | Booking channel id (feegow_list_booking_channels). |
email | string | Patient e-mail. |
insurance_id | integer | Insurance (convênio) id: set it, with insurance_plan_id, to book under insurance. |
insurance_plan_id | integer | Plan id of the insurance. Required with insurance_id. |
is_return | boolean | true = a return visit (retorno). |
mobile | string | Patient mobile phone. |
notes | string | Appointment note. |
phone | string | Patient phone. |
price_table_id | integer | Private 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.
| Parameter | Type | Description |
|---|---|---|
appointment_id * | integer | |
date * | string | New day, yyyy-mm-dd. |
reason_id * | integer | Reason id from feegow_list_appointment_reasons. |
time * | string | New time, HH:MM or HH:MM:SS. |
notes | string | Note 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.
| Parameter | Type | Description |
|---|---|---|
appointment_id * | integer | |
reason_id * | integer | Reason id from feegow_list_appointment_reasons. |
notes | string | Note 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.
| Parameter | Type | Description |
|---|---|---|
appointment_id * | integer | |
status_id * | integer | |
arrival_time | string | Arrival time shown in the waiting room (only for the waiting status), HH:MM. |
notes | string | Note 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.
| Parameter | Type | Description |
|---|---|---|
full_name * | string | Full name (max 200 characters). |
address | string | Street. |
birth_date | string | Birth date, yyyy-mm-dd. |
city | string | City. |
complement | string | Address complement. |
cpf | string | CPF, 11 digits, numbers only. |
district | string | District (bairro). |
email | string | E-mail. |
email2 | string | Second e-mail. |
gender | string | M or F. |
insurance_card | string | Insurance card number (matrícula). |
insurance_holder | string | Insurance holder's name. |
insurance_id | integer | Insurance (convênio) id. |
insurance_plan_id | integer | Insurance plan id. |
insurance_valid_until | string | Insurance validity, yyyy-mm-dd. |
mobile | string | Mobile phone, digits only. |
mobile2 | string | Second mobile phone, digits only. |
no_cpf | boolean | true = the patient has no CPF (then cpf is ignored). |
notes | string | Note on the patient record. |
number | string | Street number. |
phone | string | Phone, digits only. |
phone2 | string | Second phone, digits only. |
price_table_id | integer | Private price table id. |
social_name | string | Social name. |
source_id | integer | Patient source id (feegow_list_patient_sources). |
state | string | State, two letters (e.g. RJ). |
zip | string | CEP (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.
| Parameter | Type | Description |
|---|---|---|
patient_id * | integer | |
address | string | Street. |
birth_date | string | Birth date, yyyy-mm-dd. |
city | string | City. |
complement | string | Address complement. |
cpf | string | CPF, 11 digits, numbers only. |
district | string | District (bairro). |
email | string | E-mail. |
full_name | string | Full name (max 200 characters). |
gender | string | M or F. |
mobile | string | Mobile phone, digits only. |
mobile2 | string | Second mobile phone, digits only. |
number | string | Street number. |
phone | string | Phone, digits only. |
phone2 | string | Second phone, digits only. |
price_table_id | integer | Private price table id. |
state | string | State, two letters (e.g. RJ). |
zip | string | CEP (max 9 characters). |