Skip to main content
Glama
nkarasiak

QGIS MCP

by nkarasiak

Remove Layer

remove_layer
Destructive

Delete a layer from your QGIS project using its unique layer ID. This action is permanent and removes the layer entirely.

Instructions

Remove a layer from the project by its layer ID. This is irreversible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layer_idYes
Behavior4/5

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

Annotations already set destructiveHint=true. The description adds 'This is irreversible', which reinforces and clarifies the permanent nature of the operation, providing beyond what annotations convey.

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 extremely concise with two sentences that convey the essential action and consequence. No unnecessary words.

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 simple one-parameter tool with no output schema, the description covers the action, parameter method, and consequence. It is nearly complete; minor missing context like 'permanently removes from project' could be added.

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

Parameters2/5

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

Schema coverage is 0% and the description provides minimal help: only 'by its layer ID' with no explanation of what a layer ID is, how to obtain it, or its format. The description does not compensate adequately for the missing schema descriptions.

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 verb 'Remove', the resource 'a layer', and the method 'by its layer ID'. It is specific and distinguishes from sibling tools like remove_bookmark or remove_layout.

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 mentions irreversibility but does not provide explicit guidance on when to use this tool versus alternatives (e.g., hiding a layer vs. removing it). Usage context is only implied.

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