Skip to main content
Glama
GIS MCP Server
by mahdin75

clip_vector

Clip vector features to the polygon extent of another vector file to restrict spatial data to a target area.

Instructions

Clip vector features to the polygon extent of another vector file.

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": {
      "gdf_path": "<gdf_path>",
      "clip_path": "<clip_path>"
    },
    "name": "clip_vector"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNo
columnsNo
gdf_pathYes
clip_pathYes
precisionNo
output_pathNo
max_featuresNo
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
    • removedInput schema / properties / clip_path / title
      Removed value: -"Clip Path"
    • removedInput schema / properties / gdf_path / title
      Removed value: -"Gdf Path"
    • 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 / title
      Removed value: -"clip_vectorArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not disclose whether the operation modifies inputs or writes to output_path, how errors are handled, whether it requires matching CRS, or what the return value looks like. The presence of an output_path parameter hints at a write operation, but the description never confirms or explains this.

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?

The description is a single, front-loaded sentence with no wasted words. However, its extreme brevity leaves it under-specified for a tool with 8 parameters, so conciseness comes at the cost of necessary detail.

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

Completeness2/5

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

Given 8 parameters, no annotations, no output schema, and 0% schema description coverage, the description is far too thin. It does not explain key controls (precision, offset, max_features, include_geometry) or the output behavior, leaving an agent with substantial gaps before invocation.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters. The description only implicitly identifies the roles of gdf_path (input features) and clip_path (clip polygon), leaving offset, columns, precision, output_path, max_features, and include_geometry completely undocumented. It does not compensate for the near-total lack of schema descriptions.

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 states a specific verb ('clip') and resource ('vector features') and scopes the operation to 'the polygon extent of another vector file.' It distinguishes vector clipping from raster clipping implicitly via 'vector features,' though it does not name the sibling clip_raster_with_shapefile.

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?

The description implies when to use it (when you need to clip vector features by a polygon extent), but offers no explicit when-not guidance, no alternatives, and no prerequisites such as whether both files must share a CRS or exist on disk.

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