Skip to main content
Glama

ScorpTech x402 Tools

Geo Polygon

geo_polygon
Read-onlyIdempotent

Analyse GeoJSON polygons (Polygon, MultiPolygon, Feature or FeatureCollection): geodesic area (m², km², ha, acres; same spherical formula as Turf.js), perimeter, area-weighted centroid, bounding box, validity report (unclosed or short rings, self-intersections, RFC 7946 winding order), point-in-polygon tests for up to 1,000 points honouring holes and edges, convex hull and optional Douglas-Peucker simplification to a tolerance in metres. Offline. Returns JSON with: type, polygons, vertices, area, perimeterMeters, centroid, bbox, valid. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/geo-polygon

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "geo_polygon"
  }
}

Input Schema

NameRequiredDescriptionDefault
hullNoReturn the convex hull (of the geometry, or of points when no geometry is given)
pointsNoPoints to test, each [lon, lat]
geometryNoGeoJSON Polygon / MultiPolygon / Feature / FeatureCollection ([lon, lat] order)
simplifyNoDouglas-Peucker tolerance in metres (returns simplified geometry)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered; the description adds genuinely new context: offline execution, a hard 1,000-point cap for point-in-polygon, ring/winding validation behaviour, and a x402 payment requirement at $0.002 USDC per successful call. The only gap is error/failure behaviour when the geometry is invalid, which is not stated.

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 the verb and resource, then a dense capability list, then returns, then pricing/endpoint. Nearly every clause carries information, though the trailing price and HTTPS endpoint sentence reads as promotional metadata and adds bulk to an otherwise tight definition.

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?

No output schema exists, so enumerating the returned JSON keys (type, polygons, vertices, area, perimeterMeters, centroid, bbox, valid) fills that gap. Combined with the offline guarantee, the point cap, coordinate order, and payment model, an agent has everything needed to invoke it correctly and anticipate cost.

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%, so the baseline is 3; the description goes slightly beyond by clarifying that point tests honour holes and edges, that simplify takes a tolerance in metres, and that hull applies to the geometry or to supplied points. These are useful semantic refinements rather than restatements of the schema.

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 a specific resource (GeoJSON Polygon/MultiPolygon/Feature/FeatureCollection) and enumerates the concrete operations: geodesic area, perimeter, centroid, bbox, validity report, point-in-polygon tests, convex hull, Douglas-Peucker simplification. The polygon-analysis scope clearly separates it from the sibling geo_distance, which measures between points rather than within geometries.

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 capability list lets an agent infer which tasks fit (e.g. validity checks, point-in-polygon, simplification), and 'Offline' signals no network dependency. However, there is no explicit when-to-use/when-not guidance and no named alternative for overlapping tasks, so routing must be inferred from the feature list.

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