Skip to main content
Glama

style_load_qml

Load a layer's style from a .qml or .sld file, replacing current renderer and labels after user confirmation.

Instructions

Load a layer's style (renderer, labels, opacity, etc.) from a .qml or .sld file.

Replaces the layer's current style. Confirm with the user before loading over a style they haven't saved a copy of.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
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 exist, so the description must handle behavioral disclosure. It mentions style replacement and the need for user confirmation, but lacks details on reversibility, error handling, or file format limitations.

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 front-loaded purpose and a caution. No redundant information.

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 presence of an output schema, return value info is not needed. However, prerequisites like file accessibility and layer existence are missing. Overall, sufficient for a style loading 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?

Schema coverage is 0%, so the description must add meaning. It hints that 'path' refers to a .qml or .sld file, and 'layer_id' is implied but not elaborated. More detail on path format and layer identification would help.

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 loads a layer's style from .qml or .sld files, replacing the current style. This differentiates it from sibling tools like style_set_single_symbol or style_save_qml.

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?

Explicitly advises user confirmation before overwriting unsaved styles, providing a clear usage precaution. However, it does not compare against alternative style-setting tools.

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