getTollCost
Calculates route toll estimates through Google Routes when origin and destination coordinates or addresses plus GOOGLE_MAPS_API_KEY are configured. State-only distance inputs are not treated as authoritative prices.
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": {
"origin": "<origin>",
"destination": "<destination>"
},
"name": "getTollCost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | Origin as {lat,lng} or an address string | |
| destination | Yes | Destination as {lat,lng} or an address string | |
| vehicle_type | No | Optional vehicle category |