Skip to main content
Glama

features_select_by_location

Select vector features on a layer using their spatial relationship to a reference layer, such as intersecting or containing. Specify the predicate and mode to refine the selection.

Instructions

Select features on layer_id by their spatial relationship to another layer.

predicate is one of: intersects, contains, within, touches, overlaps, crosses, disjoint, equals. mode is the same set/add/intersect/remove combination as features_select_by_expression.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoset
layer_idYes
predicateNointersects
reference_layer_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations provided, so description carries full burden. It discloses that the tool selects features and mentions mode (set/add/intersect/remove) but does not explain these modes or side effects on existing selection. Lacks details on prerequisites like layer existence or visibility.

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 sentences, no fluff, front-loaded with core action. Every sentence adds value.

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

Completeness3/5

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

For a moderately complex tool with 4 parameters, no output schema expected, description is minimal. Missing context like selection modification behavior, expected layer properties, and mode semantics. Adequate but not comprehensive.

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 has 0% description coverage, so description must compensate. It explains predicate values and references mode from another tool, but does not define mode behavior or default, nor explain reference_layer_id. Adds some meaning but incomplete.

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?

The description clearly states it selects features on a specific layer based on spatial relationship to another layer, listing predicate options. It distinguishes itself from siblings like features_select_by_expression (which uses expressions) and features_select_by_rectangle (uses a rectangle).

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?

The description implies its use for spatial selection against another layer but does not explicitly state when to choose it over alternatives like features_select_by_rectangle or features_select_by_expression. No exclusions or context provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piatkowski/qgis-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server