Skip to main content
Glama
GIS MCP Server
by mahdin75

write_file_gpd

Exports a vector dataset to a specified path, letting you choose ESRI Shapefile, GeoJSON, or GPKG as the output driver.

Instructions

Export a vector file to another path. driver may be ESRI Shapefile, GeoJSON, or GPKG.

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>",
      "output_path": "<output_path>"
    },
    "name": "write_file_gpd"
  }
}

Input Schema

NameRequiredDescriptionDefault
driverNo
gdf_pathYes
output_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.16.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. Changed7 schema fields changedv1.0.0
    • addedInput schema / properties / driver / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / driver / title
      Removed value: -"Driver"
    • removedInput schema / properties / driver / type
      Removed value: -"string"
    • removedInput schema / properties / gdf_path / title
      Removed value: -"Gdf Path"
    • removedInput schema / properties / output_path / title
      Removed value: -"Output Path"
    • removedInput schema / title
      Removed value: -"write_file_gpdArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It says nothing about whether an existing file at output_path is overwritten, whether parent directories are created, whether the format is inferred from the extension or only from driver, or what is returned on success; only the driver options are disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action and followed by the one parameter that needs enumerating. No wasted wording.

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?

For a mutation tool with zero annotation coverage, no output schema, and 0% parameter description coverage, the definition is under-specified: overwrite semantics, path/directory requirements, format resolution, and return behavior are all absent.

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%, so the description must compensate for all three parameters. It clarifies the accepted driver values, which is genuinely useful, but leaves gdf_path and output_path unexplained – an agent cannot tell from the text whether gdf_path is a file path or an in-memory dataset handle, or what input formats are accepted.

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 gives a specific verb and resource: 'Export a vector file to another path.' That is enough for an agent to distinguish this write/export tool from read_file_gpd and from write_raster, though it never names a sibling explicitly.

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?

Usage is implied by 'vector file' and 'to another path' – use it to persist a vector dataset – but there is no explicit when-to-use, no exclusion (e.g., use write_raster for rasters), and no prerequisites stated.

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