Skip to main content
Glama
GIS MCP Server
by mahdin75

get_length

Calculate the length of a geometry to support accurate spatial measurements and geospatial analysis.

Instructions

Get the length of a geometry.

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": {
      "geometry": "<geometry>"
    },
    "name": "get_length"
  }
}

Input Schema

NameRequiredDescriptionDefault
geometryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.16.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. Changed3 schema fields changedv1.0.0
    • removedInput schema / properties / geometry / title
      Removed value: -"Geometry"
    • removedInput schema / title
      Removed value: -"get_lengthArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden and provides none beyond the bare operation. It does not say whether the result is planar or geodesic, what units are returned, how CRS affects the value, or what happens for non-lineal geometries such as points or polygons.

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

Conciseness3/5

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

The single sentence is front-loaded and free of waste, but its brevity reflects under-specification rather than tight editing. There is no structure to speak of because there is essentially no content.

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?

For a geospatial measurement tool with no output schema, no annotations, and an undocumented parameter, the description omits critical information an agent needs to interpret the result, notably units and coordinate-system behavior. It is a name restated as a sentence rather than a usable specification.

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% for the single required 'geometry' parameter, so the description must compensate and does not. It never states the accepted geometry representation (WKT, GeoJSON, shapely object) or whether an empty or invalid geometry is tolerated.

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?

States a specific verb and resource: it returns the length of a geometry. That is enough to distinguish it from siblings such as get_area and get_centroid, though the description does not explicitly contrast itself with them or with the geodetic measurement tools.

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 guidance on when to use this tool versus alternatives like calculate_geodetic_distance or distance_band_weights, and no preconditions are stated. An agent must infer the applicable context entirely from the tool name.

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