Skip to main content
Glama

set_project_area

Set the project polygon layer every QGIS map is built on, adding a red outline and zooming the canvas to it.

Instructions

Set the project shape (polygon layer) every map is built on.

In QGIS it is added on top as a red outline and the canvas zooms to it.

Args: path: Polygon file (.shp, .gpkg, .geojson...). name: Project name shown on the map (defaults to the file name). crs: Output CRS such as "EPSG:32615"; defaults to the shape's CRS. subset: Optional attribute filter, e.g. ""CODIGO" = 'P-01'".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
crsNo
nameNo
pathYes
subsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 disclose visible side effects: the layer is added on top as a red outline and the canvas zooms to it. It does not say whether an existing project area is replaced/destroyed or what permissions are required, leaving a real gap for a mutation tool.

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 front-loaded sentences capture purpose plus visual behavior, followed by a tight Args block with no filler. Every line earns its place.

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 four-parameter, no-annotation, no-output-schema tool, the description covers parameters and UI side effects well. It stops short of describing replace/overwrite semantics on repeat calls, which is the one behavior an agent might need to reason about.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate and does: it documents all four parameters with concrete formats and defaults — file extensions for path, default-to-filename for name, an EPSG example for crs, and a literal filter expression for subset.

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 verb and resource ('Set the project shape (polygon layer)') and clarifies scope: this is the base geometry 'every map is built on', which separates it from a generic add_layer sibling. An agent can tell what this does without opening the schema.

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 context is implied rather than stated — the description makes clear this defines the base area of the project, but it never says when to call it versus add_layer, nor whether it should be set before generate_map. No alternatives or exclusions are named.

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