You're viewing a demo portfolio

Join the waitlist
PRSM

compute_routes

Active

Tool of com.googleapis.mapstools/mcp

declared in scaffolding on HTTPServer2

Computes a travel route between a specified origin and destination. **Supported Travel Modes:** DRIVE (default), WALK. **Input Requirements (CRITICAL):** Requires both **origin** and **destination**. Each must be provided using one of the following methods, nested within its respective field: * **address:** (string, e.g., 'Eiffel Tower, Paris'). Note: The more granular or specific the input address is, the better the results will be. * **lat_lng:** (object, {"latitude": number, "longitude": number}) * **place_id:** (string, e.g., 'ChIJOwE_Id1w5EAR4Q27FkL6T_0') Note: This id can be obtained from the search_places tool. Any combination of input types is allowed (e.g., origin by address, destination by lat_lng). If either the origin or destination is missing, **you MUST ask the user for clarification** before attempting to call the tool. **Example Tool Call:** {"origin":{"address":"Eiffel Tower"},"destination":{"place_id":"ChIJt_5xIthw5EARoJ71mGq7t74"},"travel_mode":"DRIVE"} * The grounded output must be attributed to the source using the information from the `attribution` field when available.

Parameters schema

{
  "type": "object",
  "$defs": {
    "LatLng": {
      "type": "object",
      "properties": {
        "latitude": {
          "type": "number",
          "format": "double",
          "description": "The latitude in degrees. It must be in the range [-90.0, +90.0]."
        },
        "longitude": {
          "type": "number",
          "format": "double",
          "description": "The longitude in degrees. It must be in the range [-180.0, +180.0]."
        }
      },
      "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard <https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version>. Values must be within normalized ranges."
    },
    "Waypoint": {
      "type": "object",
      "properties": {
        "latLng": {
          "$ref": "#/$defs/LatLng",
          "description": "A point specified using geographic coordinates."
        },
        "address": {
          "type": "string",
          "description": "Human readable address or a plus code. See https://plus.codes for details."
        },
        "placeId": {
          "type": "string",
          "description": "The Place ID associated with the waypoint."
        }
      },
      "description": "Encapsulates a waypoint. Waypoints mark both the beginning and end of a route."
    }
  },
  "required": [
    "origin",
    "destination"
  ],
  "properties": {
    "origin": {
      "$ref": "#/$defs/Waypoint",
      "description": "Required. Origin waypoint."
    },
    "travelMode": {
      "enum": [
        "ROUTE_TRAVEL_MODE_UNSPECIFIED",
        "DRIVE",
        "WALK"
      ],
      "type": "string",
      "description": "Optional. Specifies the mode of transportation.",
      "x-google-enum-descriptions": [
        "No travel mode specified. Defaults to `DRIVE`.",
        "Travel by passenger car.",
        "Travel by walking. NOTE: `WALK` routes are in beta and might sometimes be missing clear sidewalks or pedestrian paths. You must display this warning to the user for all walking that you display in your app."
      ]
    },
    "destination": {
      "$ref": "#/$defs/Waypoint",
      "description": "Required. Destination waypoint."
    }
  },
  "description": "ComputeRoutesRequest."
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

com.googleapis.mapstools/mcp

1/7 registries
View full server →