Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

maps_distance_matrix

Read-only

Calculate travel time and distance between multiple origins and destinations to identify the closest locations and compare routes.

Instructions

Travel time and distance from several origins to several destinations (e.g. which store is closest to each customer).

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": {
      "origins": "<origins>",
      "destinations": "<destinations>"
    },
    "name": "maps_distance_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDRIVE
originsYes
destinationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=true, so the agent knows this is a non-mutating external lookup and the description does not need to re-state safety. The description adds only the cardinality semantics (several-to-several), and says nothing about per-element limits, latency/cost of a 25x25 matrix, or whether unresolved addresses are returned as errors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the core semantics first and a clarifying example second; no filler or redundant restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description should explain what comes back (a per-origin/per-destination matrix of durations and distances, units, and result ordering), which it does not. Combined with 0% parameter coverage and an unmentioned mode enum, an agent would have to open the schema and guess at the response shape to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it only conveys that origins and destinations are both multi-valued. It never mentions the mode parameter or its DRIVE/WALK/BICYCLE/TRANSIT/TWO_WHEELER options, the 25-element caps, or that each element can be an address string or a lat/lng object.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb phrase (returns travel time and distance) and a specific resource scope (several origins to several destinations), which lets an agent distinguish this many-to-many lookup from a single-route maps_directions call. It stops short of naming any sibling explicitly, so differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The parenthetical example ('which store is closest to each customer') implies the batch/closest-match use case and is genuinely useful context. However, there is no explicit guidance on when to use this versus maps_directions for a single pair, nor any exclusion or prerequisite, so the routing decision is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools