Skip to main content
Glama

wmts_add_layer

Add a WMTS raster tile layer to a QGIS project using a capabilities URL and layer identifier. Optionally specify a tile matrix set for projection.

Instructions

Add a WMTS raster (tiled) layer to the project.

url is the WMTS capabilities endpoint, layer the server-side layer identifier (use ows_list_capabilities with service="WMTS" to list options, including available tile_matrix_set names). Pass tile_matrix_set to pick a specific one (e.g. a non-default projection); omit to let QGIS pick the server's default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
crsNo
urlYes
layerYes
styleNo
formatNoimage/png
layer_nameNo
tile_matrix_setNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description bears the full burden. It describes the action (adding a layer) as a mutation but does not disclose side effects, permissions required, or behavior when a duplicate layer exists. It does partially address behavior for the tile_matrix_set parameter (default vs. specified). Given the lack of annotations, the description is moderately transparent but not comprehensive.

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?

The description is concise—only three sentences. The first sentence clearly states the purpose, and the following sentences add value by explaining key parameters. There is no redundant information, and every sentence serves a purpose.

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?

Given the tool has 7 parameters and an output schema (not described in description), the description covers the core functionality and key parameters. It does not discuss return values, but the presence of an output schema mitigates this. The description could mention behavior for duplicate layers or expected output format, but overall it is fairly complete for a straightforward tool.

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 0% description coverage, so the description must compensate. It adds meaning for url, layer, and tile_matrix_set, which are critical, but does not describe crs, style, format, or layer_name. While the coverage is partial, the description adds significant value for the most important parameters, earning a score of 3.

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 'Add a WMTS raster (tiled) layer to the project,' specifying the verb 'add', resource 'WMTS raster layer', and context. It distinguishes from siblings like wms_add_layer by explicitly mentioning WMTS, making the purpose specific and unambiguous.

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?

The description explains the key parameters (url, layer, tile_matrix_set) and references the auxiliary tool ows_list_capabilities for listing options. It provides guidance on optional parameters, such as omitting tile_matrix_set to let QGIS pick the default. While it doesn't explicitly state when not to use this tool, the context of sibling tools for other service types implies the appropriate use case.

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