Skip to main content
Glama
muend

arcgis-mcp-bridge

polygon_to_raster

Convert polygon features to raster cells for map algebra, suitability modeling, or raster overlay using attribute field values.

Instructions

Convert polygon features to a raster dataset using ArcPy PolygonToRaster. Use this when vector zones, classes, parcels, or planning units need to become raster cells for map algebra, suitability modeling, or raster overlay. Reads polygon features and writes out_raster using value_field, cell_assignment, and cell_size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.0.1
    • addedInput schema / $defs / PolygonToRasterInput / description
      Added value: +"Input contract for converting polygon features to raster cells."
    • addedInput schema / $defs / PolygonToRasterInput / properties / cell_assignment / description
      Added value: +"Rule used to assign polygon values to raster cells. CELL_CENTER uses the polygon covering the cell center; MAXIMUM_AREA uses the polygon occupying the largest cell area; MAXIMUM_COMBINED_AREA combines areas by value."
    • addedInput schema / $defs / PolygonToRasterInput / properties / cell_size / description
      Added value: +"Output raster cell size in map units."
    • addedInput schema / $defs / PolygonToRasterInput / properties / in_features / description
      Added value: +"Absolute path to the input polygon feature class. The path must be inside a configured PathGuard allowed root."
    • addedInput schema / $defs / PolygonToRasterInput / properties / out_raster / description
      Added value: +"Absolute output raster path to create. Existing outputs require overwrite=true."
    • addedInput schema / $defs / PolygonToRasterInput / properties / overwrite / description
      Added value: +"Set true only when replacing an existing output raster is intended."
    • addedInput schema / $defs / PolygonToRasterInput / properties / value_field / description
      Added value: +"Attribute field whose values will be burned into output raster cells."
  2. First observedv1.0.0

TDQS

A3.8/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 full burden. It mentions 'reads polygon features and writes out_raster' but does not disclose side effects, required permissions, or any constraints beyond what the input schema already provides.

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?

Description is three short sentences, front-loaded with purpose, no filler. Every sentence adds value.

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

Completeness4/5

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

With an output schema present, the description need not explain return values. It covers the basic functionality and use cases. Could mention prerequisites (e.g., ArcPy license) but is largely complete.

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

Parameters3/5

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

The input schema has detailed descriptions for each parameter (e.g., cell_size, overwrite). The tool description mentions 'value_field, cell_assignment, and cell_size' but adds no new semantic information beyond what the schema already provides.

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?

Description clearly states 'Convert polygon features to a raster dataset' with specific verb and resource, and distinguishes from sibling tools by naming the ArcPy tool and specifying use cases like 'suitability modeling' and 'raster overlay'.

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?

Description explicitly says 'Use this when vector zones, classes, parcels, or planning units need to become raster cells...' providing clear usage context. Does not mention when not to use, but the sibling list implies alternatives for other raster operations.

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

Deploy Server

Other Tools