nanonetshealth_get_appointments, the native Nanonets Health appointment-list tool exposed through the Agents Platform.
Authentication
The tool uses the Nanonets Health integration. The platform injects:api_key
nanonetshealth_get_appointments
Fetches lean appointment/encounter records from Nanonets Health. The tool is read-only and supports pagination, date filters, appointment-state filters, facility/provider filters, insurance filters, and free-text search.
Inputs
All model-visible inputs are optional:page: One-based page number. Defaults to1.limit: Page size. Defaults to50; maximum100.fetch_all: Fetch and combine every result page. When enabled,pageandlimitare ignored and the tool uses pages of 100 records.encounter_date_from,encounter_date_to: Encounter date range inYYYY-MM-DDformat.coded_date_from,coded_date_to: Coded date range inYYYY-MM-DDformat.sync_status,precheck_status,appt_status: Exact status filters.appointment_types: Exact appointment-type filters.facility_codes: Facility/department-code filters.provider_name,insurance_name: Provider and insurance filters.search_term: Free-text search.sort_by,sort_order: Result ordering.
Pagination behavior
Withoutfetch_all, one invocation returns one page and publishes that complete page as one task variable.
With fetch_all: true, the tool:
- starts at page 1,
- requests the maximum page size of 100,
- fetches every reported page sequentially,
- combines every page’s
dataarray, - returns one structured result and publishes it as one task variable.
Output
pages_fetched and all_pages_fetched are present only for fetch_all results.
Output variables
Every successful result is stored as a JSON-valued task variable. The tool result includes the generatedoutput_variable, and the agent should use that returned reference rather than predeclaring a variable number.
Examples:
${VAR_N}.data: all appointments in the result.${VAR_N}.data[0]: the first appointment.${VAR_N}.total: total appointments reported by Nanonets Health.
fetch_all call produces one variable containing the combined pages.
Agent instruction guidance
Usefetch_all: true when downstream processing must cover every appointment, such as filtering encounters and delegating one child task per valid appointment. Read the actual generated ${VAR_N} from the tool result; instruction text such as “store this in ${VAR_1}” does not create or reserve that variable.