Skip to main content
Glama

geo_geojson

Read-only

GeoJSON stats + validator — Measure and validate GeoJSON offline. Required: geojson= (inline GeoJSON text: FeatureCollection, Feature or bare geometry, up to 200,000 characters). Optional: url= instead of geojson= to analyze a hosted .geojson file (up to 6 MB). Returns feature count, geometry type counts, vertex count, bbox and center, geodesic area (m2, km2, hectares, acres, square miles; holes subtracted; same spherical formula as Turf.js), line length and polygon perimeter (haversine), per-feature stats (first 100, with name/id), property keys, and an RFC 7946 validation report: invalid positions, latitude out of range with a lat/lon-swapped hint, unclosed rings, rings under 4 positions, winding order, self-intersecting rings, duplicate points, null geometries, legacy crs member. valid=true means no errors (warnings allowed). Price: $0.004 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": {
      "geojson": "<geojson>"
    },
    "name": "geo_geojson"
  }
}

Input Schema

NameRequiredDescriptionDefault
geojsonYes{"type":"Feature","properties":{"name":"Centennial Park block"},"geometry":{"type":"Polygon","coordinates":[[[-86.8136,36.1497],[-86.8080,36.1497],[-86.8080,36.1530],[-86.8136,36.1530],[-86.8136,36.1497]]]}}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/non-destructive annotations: it discloses per-request cost ($0.004 USDC via x402 on Base), input size ceilings, that holes are subtracted using the same spherical formula as Turf.js, that per-feature stats are capped at the first 100 features, and what valid=true actually means (errors vs. warnings).

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 then required/optional inputs, then returns, then pricing — a sensible order. The middle return-value sentence is a long semicolon-separated braid that is dense but every clause carries distinct information, so it earns its length rather than padding.

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

Completeness5/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 carries the full burden and discharges it: it enumerates every returned field group, the validation checks performed, the lat/lon-swap hint behavior, and the valid=true semantics. An agent can predict the response shape and cost before calling.

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% for geojson, yet the description still adds real meaning: the 200,000-character cap and the existence of a url= alternative with a 6 MB cap that the schema does not declare. That said, the schema marks geojson as required with no url property, so the 'url instead of geojson' guidance is in tension with the declared contract and may fail schema validation as written.

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?

Names two specific verbs (measure, validate) against a specific resource (GeoJSON), and the RFC 7946 validation scope plus the stats listed make it unmistakable next to the geo_* lookup/geocoding siblings, none of which touch GeoJSON geometry analysis.

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?

Gives clear intake conditions — inline GeoJSON text up to 200,000 characters, or a hosted .geojson file via url= instead of geojson= up to 6 MB — which tells the agent how to feed it. It stops short of naming when-not-to-use or pointing at an alternative tool, which is the only thing separating it from a 5.

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