Skip to main content
Glama

geo_geofence

Read-only

Geofence check — Is a point inside a geofence? Offline point-in-polygon with distance to the boundary in meters. point=lat,lon plus any of: polygon=lat,lon;lat,lon;... (3-500 points, several polygons separated by |, optional name: prefix), circle=lat,lon,radius_m (| for several), bbox=minLat,minLon,maxLat,maxLon. Up to 20 fences per call. Returns per fence INSIDE / OUTSIDE / ON EDGE (tolerance= meters, default 5), distance to the nearest edge and the nearest edge point, area, perimeter and centroid, plus an overall verdict and the nearest boundary. For delivery zones, service areas, site check-ins and asset tracking. Price: $0.002 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": {
      "point": "<point>",
      "polygon": "<polygon>"
    },
    "name": "geo_geofence"
  }
}

Input Schema

NameRequiredDescriptionDefault
pointYes40.7829,-73.9654
polygonYescentral-park:40.7681,-73.9819;40.8006,-73.9581;40.7968,-73.9493;40.7644,-73.9730

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?

Annotations only cover the read-only/non-destructive profile; the description adds the operation is fully offline, caps at 20 fences per call, defines ON EDGE tolerance (default 5 m), and discloses billing ($0.002 USDC on Base via x402) — a paid call an agent must know about 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-loads the core question, then the input syntax, then returns and pricing; every clause carries information. The middle syntax block is dense and would scan better as a list, but nothing is wasted.

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 fully covers return values (per-fence INSIDE/OUTSIDE/ON EDGE, nearest-edge distance and point, area, perimeter, centroid, overall verdict), limits, tolerance, and cost — everything needed to call it correctly.

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 description goes well beyond it: it documents 'lat,lon' ordering, the ';'-separated polygon syntax with 3–500 points, '|' for multiple rings, optional 'name:' prefixes, and circle/bbox/tolerance options that don't even appear in the schema — a meaningful supplement, though it creates ambiguity about whether those extra inputs are actually accepted.

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?

Opens with a specific verb and resource ('Geofence check — Is a point inside a geofence?') and immediately names the algorithm ('offline point-in-polygon with distance to the boundary in meters'), which cleanly separates it from siblings like geo_distance or geo_nearby.

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 concrete situations ('delivery zones, service areas, site check-ins, asset tracking') that make the intended use clear, but never explicitly contrasts itself with the distance or nearby tools an agent might pick instead.

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