Skip to main content
Glama

tabulate_area

Calculates the area of each categorical raster class within each zone polygon and returns rows with VALUE_ columns for land-cover or zoning summaries. Requires Spatial Analyst.

Instructions

Area of each class of a categorical raster (land cover, zoning) inside each zone polygon, with the rows returned. Columns VALUE_ hold areas in the zone layer's square units; a raster that codes missing data as a value (often 0) gets its own column, which a share usually leaves out. Requires the Spatial Analyst extension.

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": {
      "zone_layer": "<zone_layer>",
      "zone_field": "<zone_field>",
      "class_raster": "<class_raster>"
    },
    "name": "tabulate_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
map_nameNoMap to act on; defaults to the active map.
cell_sizeNoProcessing cell size; default the raster's.
zone_fieldYesField identifying each zone.
zone_layerYesPolygon layer defining the zones.
class_fieldNoRaster field holding the class.Value
class_rasterYesCategorical raster layer or path.
output_tableNoWhere to write the table; default <zone layer>_tabulate_area in the project geodatabase.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the output column convention (VALUE_<class>), that values are in the zone layer's square units, that a nodata-coded class (often 0) receives its own column, and that the Spatial Analyst extension is a prerequisite. It does not cover whether an existing output table is overwritten or what happens with overlapping polygons, keeping it below a 5.

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?

Three sentences, front-loaded with the core operation, followed by output semantics and the extension prerequisite. Dense but every clause carries information; the parenthetical 'which a share usually leaves out' is a minor aside that could be trimmed.

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?

For a seven-parameter geoprocessing tool with a full schema and an output schema, the description adds the non-obvious pieces: unit interpretation, nodata column behavior, and the extension requirement. Missing only write/overwrite behavior for the default output table, which is a moderate gap rather than a blocking one.

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?

Schema description coverage is 100%, so all seven parameters are already documented in the schema; the description only indirectly illuminates zone_layer (square units of that layer) and the output table's column layout. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

States a specific operation — computing the area of each raster class within each zone polygon — with concrete domain examples (land cover, zoning). The output shape (rows of VALUE_<class> columns) is described, so an agent knows exactly what the tool produces, and no sibling in the catalog performs zonal cross-tabulation.

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 only implied: the description names the inputs conceptually (categorical raster, zone polygons) and the required extension, which lets an agent infer the scenario, but it never says when to prefer this over alternatives or when it is inappropriate (e.g., continuous rasters, non-polygon zones).

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