Skip to main content
Glama

geo_wkt

Read-only

WKT / GeoJSON converter — Offline OGC Well-Known Text parser and converter. wkt= any WKT or EWKT geometry (POINT, LINESTRING, POLYGON with holes, MULTI*, GEOMETRYCOLLECTION, Z dimensions, EMPTY, SRID=4326; prefix) returns RFC 7946 GeoJSON, normalized WKT, vertex count, bbox, geodesic length (km) and area (km2) when coordinates are lon/lat, and warnings for unclosed or too-short polygon rings. Or pass geojson= a Geometry, Feature or FeatureCollection to get WKT back (for PostGIS, BigQuery GEOGRAPHY, Shapely, SQL Server). Syntax errors return 422 with the failing token. Price: $0.001 USDC (Base, via x402).

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": {
      "wkt": "<wkt>"
    },
    "name": "geo_wkt"
  }
}

Input Schema

NameRequiredDescriptionDefault
wktYesPOLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description goes well beyond by disclosing that syntax errors return 422 with the failing token, that malformed polygon rings produce warnings rather than hard failures, the full set of computed return fields, and a per-call price of $0.001 USDC via x402 — a payment prerequisite an agent must know before invoking.

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?

Front-loaded with purpose and input format, then output, then error and pricing details — a sensible ordering. It is a single dense paragraph with heavy parenthetical nesting that is slightly harder to scan than a bulleted breakdown, but no sentence is filler.

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 no output schema, the description correctly carries the burden of describing returns (RFC 7946 GeoJSON, normalized WKT, vertex count, bbox, geodesic length in km, area in km2, ring warnings) and error shape. The only real gap is the advertised reverse-direction geojson= parameter that the schema does not expose, leaving the documented reverse mode uninvokable as described.

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

Parameters4/5

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

Schema coverage is 100% but the schema's wkt description is only a sample value; the description adds real semantics — EWKT with SRID=4326 prefix, Z dimensions, EMPTY geometries, POLYGON with holes, GEOMETRYCOLLECTION. It loses a point for instructing agents to pass a geojson= parameter that does not exist anywhere in the input schema, which could cause malformed calls.

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

Purpose5/5

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

States a specific verb and resource ('WKT / GeoJSON converter', 'Offline OGC Well-Known Text parser and converter') and enumerates exactly which geometry types it accepts and what it emits. It is clearly distinguishable from siblings like geo_geojson because it frames itself as a bidirectional format conversion rather than a GeoJSON builder.

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

Usage Guidelines4/5

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

Explicitly routes between the two modes: pass wkt= to get GeoJSON/WKT metrics, or pass geojson= to get WKT back for PostGIS, BigQuery GEOGRAPHY, Shapely, or SQL Server. It gives clear context for each direction but never names a sibling alternative or states when-not to use this tool.

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.

Resources