Skip to main content
Glama

Maps Elevation

maps_elevation
Read-onlyIdempotent

"Elevation at [coords] via Google" / "altitude / height above sea level", elevation in meters for one or more lat/lng pairs via Google Maps Elevation API. Pipe-separated locations for batch queries.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_apiKey": "your-google_maps-api-key",
      "locations": "39.7391,-104.9847"
    },
    "name": "maps_elevation"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyYesGoogle Maps API key
locationsYesPipe-separated "lat,lng" pairs (e.g., "39.7391,-104.9847|36.4555,-116.8666")

Output Schema

NameRequiredDescriptionDefault
statusNoStatus of the elevation request
resultsNoElevation results for each location

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "results": {
      +      "description": "Elevation results for each location",
      +      "items": {
      +        "properties": {
      +          "elevation": {
      +            "description": "Elevation in meters",
      +            "type": "number"
      +          },
      +          "location": {
      +            "properties": {
      +              "lat": {
      +                "description": "Latitude coordinate",
      +                "type": "number"
      +              },
      +              "lng": {
      +                "description": "Longitude coordinate",
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "resolution": {
      +            "description": "Elevation data resolution in meters",
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "description": "Status of the elevation request",
      +      "enum": [
      +        "OK",
      +        "INVALID_REQUEST",
      +        "OVER_QUERY_LIMIT",
      +        "REQUEST_DENIED",
      +        "UNKNOWN_ERROR"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-google_maps-api-key",
      +    "locations": "39.7391,-104.9847"
      +  },
      +  {
      +    "_apiKey": "your-google_maps-api-key",
      +    "locations": "39.7391,-104.9847|36.4555,-116.8666"
      +  }
      +]
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds units (meters), the underlying provider, and that batching is supported via pipe-separated pairs, but says nothing about failure modes for malformed coordinates, API key/quota requirements, or response shape.

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

Conciseness4/5

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

Two short sentences with the operation and unit front-loaded; the leading quoted synonyms are slightly noisy but do usefully disambiguate vocabulary an agent or user might use. Nothing extraneous beyond that.

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

Completeness4/5

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

With an output schema present, return values need not be described, and both required parameters are documented in the schema with examples. For a simple two-parameter lookup, the only meaningful gap is the missing relationship to coordinate-producing siblings like maps_geocode.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already fully documented in structured data, which sets the baseline at 3. The description's 'pipe-separated locations for batch queries' restates the schema's own example and adds no new syntax or constraint detail.

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+resource ('elevation ... for one or more lat/lng pairs via Google Maps Elevation API'), adds the unit (meters) and the synonym set (altitude / height above sea level) so intent is unambiguous. It does not distinguish itself from siblings like maps_geocode, which an agent might reach for when it actually needs coordinates first, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative. The most valuable cue an agent needs here — that this tool requires coordinates and so must follow maps_geocode — is absent, leaving the routing entirely implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.