Generate trip
generate_tripGenerate the route for a DRAFT (or previously errored/ready) road trip: flips it to 'generating' and builds the per-day road geometry via OrgLines' own Valhalla + PostGIS stack (deterministic — NO AI enrichment; your own model writes any day narrative). Poll get_trip for the resulting status ('ready' on success). FREE but fair-use limited: counts against this month's road_trip_generations_month allowance and refuses a trip longer than 21 days — over the limit it returns {status:'refused', reason, used, limit} and changes nothing. Only the caller's own trip is reachable. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"trip_id": "<trip_id>"
},
"name": "generate_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trip_id | Yes |