GOOGLESUPER_DISTANCE_MATRIX_API
DEPRECATED: Legacy API that calculates travel distance and time for a matrix of origins and destinations. This API only works with API keys (no OAuth2 support). Use the modern 'Compute Route Matrix' action instead, which supports OAuth2 authentication. Supports different modes of transportation a...
This record as markdown: /tools/googlesuper/googlesuper-distance-matrix-api.md
What GOOGLESUPER_DISTANCE_MATRIX_API does on Google Super
AI agents call GOOGLESUPER_DISTANCE_MATRIX_API to retrieve information from Google Super without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | — | Your application's API key. This key identifies your application for purposes of quota management. |
mode | string | — | Specifies the mode of transport to use. |
avoid | string | — | Indicates that the calculated route should avoid the specified features. Multiple values can be pipe-separated e.g. 'tolls|highways'. |
units | string | — | Specifies the unit system to use when displaying results. The default is metric. |
region | string | — | The region code, specified as a ccTLD ('top-level domain') two-character value. This helps influence results based on the region. |
origins | string | — | The starting point for calculating travel distance and time. You can supply one or more locations separated by the pipe character (|), in the form of a place ID |
language | string | — | The language in which to return results. See the list of supported languages: https://developers.google.com/maps/faq#languagesupport |
arrival_time | integer | — | Specifies the desired time of arrival for transit directions, in seconds since midnight, January 1, 1970 UTC. You can specify either departure_time or arrival_t |
destinations | string | — | One or more locations to use as the finishing point for calculating travel distance and time. Accepts the same formats as origins. |
transit_mode | string | — | Specifies one or more preferred modes of transit. This parameter may only be specified for transit directions. Multiple values can be pipe-separated e.g. 'bus|t |
traffic_model | string | — | Specifies the assumptions to use when calculating time in traffic. This parameter is only used if the request includes a departure_time and mode is 'driving'. |
departure_time | integer | — | Specifies the desired time of departure. You can specify the time as an integer in seconds since midnight, January 1, 1970 UTC, or as the string 'now'. Required |
Parameters from the server's own tool schema.
Why GOOGLESUPER_DISTANCE_MATRIX_API is rated Low
GOOGLESUPER_DISTANCE_MATRIX_API is a read-only tool that queries travel metrics between locations. It retrieves pre-computed distance and time information based on input parameters (origins, destinations, transportation mode). There are no side effects, no data modification, no code execution, and no financial transactions.
From the tool's definition Tool 'calculates travel distance and time' with support for 'different modes of transportation and options like departure/arrival times' — these are query operations that retrieve routing/distance data without modifying state or executing arbitrary code.
Risk signalsHigh parameter count (13 properties)
Attacks that exploit this kind of access
The rule that runs GOOGLESUPER_DISTANCE_MATRIX_API safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Google Super, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For GOOGLESUPER_DISTANCE_MATRIX_API, this is the rule to start with:
GOOGLESUPER_DISTANCE_MATRIX_API is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Google Super, apply this rule, and every GOOGLESUPER_DISTANCE_MATRIX_API call is checked against it from then on.
Questions about GOOGLESUPER_DISTANCE_MATRIX_API
DEPRECATED: Legacy API that calculates travel distance and time for a matrix of origins and destinations. This API only works with API keys (no OAuth2 support). Use the modern 'Compute Route Matrix' action instead, which supports OAuth2 authentication. Supports different modes of transportation and options like departure/arrival times. It is categorised as a Read tool in the Google Super MCP Server, which means it retrieves data without modifying state.
GOOGLESUPER_DISTANCE_MATRIX_API accepts 12 parameters: key, mode, avoid, units, region, origins, language, arrival_time, destinations, transit_mode, traffic_model, departure_time. The full parameter table on this page comes from the server's own tool schema.
Register the Google Super MCP server in PolicyLayer and add a rule for GOOGLESUPER_DISTANCE_MATRIX_API: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Google Super. Nothing to install.
GOOGLESUPER_DISTANCE_MATRIX_API is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the GOOGLESUPER_DISTANCE_MATRIX_API rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for GOOGLESUPER_DISTANCE_MATRIX_API. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
GOOGLESUPER_DISTANCE_MATRIX_API is provided by the Google Super MCP server (googlesuper). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Google Super, and thousands of servers like it.
This server
Across the catalogue