Skip to main content
Glama
GIS MCP Server
by mahdin75

point_in_polygon

Assign polygon attributes to points based on spatial containment, so point datasets inherit polygon-level data for spatial analysis.

Instructions

Assign each point the attributes of the polygon that contains it.

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": {
      "points_path": "<points_path>",
      "polygons_path": "<polygons_path>"
    },
    "name": "point_in_polygon"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNo
columnsNo
precisionNo
output_pathNo
points_pathYes
max_featuresNo
polygons_pathYes
include_geometryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.16.0
    • addedInput schema / properties / columns
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / include_geometry
      Added value: +{
      +  "default": true,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_features
      Added value: +{
      +  "default": 5,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / precision
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. Changed7 schema fields changedv1.0.0
    • addedInput schema / properties / output_path / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / output_path / title
      Removed value: -"Output Path"
    • removedInput schema / properties / output_path / type
      Removed value: -"string"
    • removedInput schema / properties / points_path / title
      Removed value: -"Points Path"
    • removedInput schema / properties / polygons_path / title
      Removed value: -"Polygons Path"
    • removedInput schema / title
      Removed value: -"point_in_polygonArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations at all, the description bears the full behavioral burden, and it discloses almost nothing beyond the core operation. It does not say whether the result is written to output_path, whether unmatched points are dropped or kept, how precision affects matching, or what max_features limits.

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?

It is a single front-loaded sentence with no filler, and the verb-object structure puts the operation first. The brevity is a virtue structurally, even though the content is thin for a tool of this complexity.

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

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with eight parameters, two required file paths, no annotations, and no output schema, one sentence is nowhere near sufficient. An agent cannot determine file formats, output behavior, or how the optional parameters change results.

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

Parameters1/5

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

Schema description coverage is 0% across eight parameters, and the description supplies no meaning for any of them: points_path, polygons_path, output_path, columns, precision, offset, max_features, and include_geometry are entirely unexplained. This is the worst-case combination of many undocumented parameters and a description that does not compensate.

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?

The description names a concrete operation on a concrete resource: it assigns polygon attributes to points that fall inside them, i.e. a spatial join. That is far more specific than the bare tool name, though it never explicitly contrasts itself with nearby siblings such as nearest_point_on_geometry or calculate_geodetic_point.

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 when-to-use or when-not-to-use guidance, no prerequisites, and no mention of alternatives. The agent must infer the use case (attribute join) purely from the one sentence, and nothing indicates what to do when points fall outside every polygon.

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