Skip to main content
Glama
nkarasiak

QGIS MCP

by nkarasiak

Sample Raster Values

sample_raster_values
Read-only

Extract pixel values from a raster layer at specified point coordinates. Supports selecting a single band or all bands. For points in a different CRS, transform coordinates first.

Instructions

Sample raster pixel values at points. 'points' is a list of [x, y] in the raster's CRS. Omit 'band' to sample all bands. Use transform_coordinates first if your points are in a different CRS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bandNo
pointsYes
raster_layerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is clear. The description adds useful behavior: points format, band omission for all bands, and CRS expectation. It doesn't mention edge cases like out-of-bounds points, but overall adds value.

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 concise sentences with no wasted words. Information is front-loaded: action, then param details, then cross-reference for CRS conversion. Every sentence is necessary and informative.

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

Completeness5/5

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

Given the existence of an output schema (not shown), the description need not detail return values. It covers CRS handling, multi-band sampling, and coordinate format, which are the main contextual concerns for use.

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

Parameters4/5

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

Schema coverage is 0%, so the description compensates well. It explains `points` as a list of [x,y] in raster CRS and `band` as optional to sample all bands. `raster_layer` is not described but is self-explanatory. The description adds meaningful context beyond the schema.

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 the tool 'samples raster pixel values at points', specifying the action and resource. It distinguishes from siblings like `zonal_statistics` and `get_raster_info` by focusing on point-based sampling.

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?

Provides explicit guidance to use `transform_coordinates` if points are in a different CRS, which is a key prerequisite. However, it does not mention alternatives or exclusions, leaving some ambiguity about when not to use this tool.

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/nkarasiak/qgis-mcp'

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