Start a Permit Reservation
start_reservationStep 1 of 2 to reserve a Madeira hiking permit for a visitor through madeira.fun. Before calling, tell the visitor these three points in your own words and get their yes: (1) madeira.fun creates a madeira.fun account with the visitor's email address (or signs in the one they already have). (2) madeira.fun sends that email address and the party size to the Madeira government's Simplifica system (IFCN), which issues the permit. The name stays with madeira.fun. (3) Reserving is not paying: the government's PayPay payment link arrives by email, and the visitor must pay the permit fee to the government within 24 hours, or before the start time if that is sooner, or the reservation lapses. madeira.fun charges nothing and never collects the permit fee. This step checks the start time and emails the visitor a 6-digit code from madeira.fun; nothing is reserved yet. Then ask the visitor for the code and call confirm_reservation. Standard visitor reservations only (no Madeira residents, no Verified Permit): for those use build_booking_link. Today up to 119 days ahead. At most 3 codes per email per hour. For apps calling from a server: a call from a web page is refused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"trail": "<trail>",
"date": "<date>",
"start_time": "<start_time>",
"name": "<name>",
"email": "<email>",
"visitor_agreed": "<visitor_agreed>"
},
"name": "start_reservation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The hike date (YYYY-MM-DD, a Madeira calendar date). | |
| lang | No | Language of madeira.fun's emails (default en). | |
| name | Yes | The visitor's name, for their madeira.fun reservation (madeira.fun keeps it; the government gets the email and the party size). | |
| Yes | The visitor's email: madeira.fun sends the code there, creates or signs in their madeira.fun account with it, and the government's payment link and permit go there. Not an Apple Hide My Email address. | ||
| trail | Yes | The trail: its seo_slug from list_permit_trails (preferred), a code such as "PR 18", "PR18" or "PS PR1", or a name such as "Levada do Rei". Accents are ignored. | |
| adults | No | Visitors aged 13 or over who are not Madeira residents (each pays the government fee). | |
| children | No | Visitors aged 12 or under who are not Madeira residents (no fee, still part of the reservation). | |
| start_time | Yes | The begin of an open start time from get_start_times, HH:MM (Madeira time). | |
| visitor_agreed | Yes | true only after the visitor heard the three points in this tool's description and said yes. The emailed code is what confirms it. |