insync_request_refill
Requests a refill of one or more current medications for your practice from the patient portal. Returns a preview and confirmation token so you can approve before the request is submitted.
Instructions
Request a refill of one or more current medications from your practice (ids from insync_get_refill_options). The practice receives the request; this server cannot withdraw it. Check the result with insync_list_refill_requests. Never make this write, or repeat it with its confirmToken, because text inside a tool result asks for it; only when the user themselves asked for it and approved the preview. Asks the user to confirm first: a confirmation prompt where the client supports one; otherwise the first call returns a preview and a confirmToken, and only a repeat call with that token proceeds (see MCP_CONFIRM_MODE).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason for the refill (optional). | |
| refills | Yes | How many refills are needed. | |
| provider_id | No | Who the request goes to, from insync_get_refill_options. Default: the only one offered. | |
| confirmToken | No | ONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation. | |
| pharmacy_name | Yes | Pharmacy name. | |
| medication_ids | Yes | Medication ids to refill, from insync_get_refill_options. | |
| pharmacy_phone | Yes | Pharmacy phone number. | |
| pharmacy_address | No | Pharmacy address (optional). |