Skip to main content
Glama

style_set_graduated

Apply a graduated color ramp to a vector layer based on a numeric field, with options for classification mode and number of classes.

Instructions

Style a vector layer with a graduated color ramp over a numeric field.

mode is one of: quantile (default), equal_interval, natural_breaks, std_dev, pretty. color_ramp is a QGIS style color ramp name (defaults to "Spectral").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoquantile
fieldYes
classesNo
layer_idYes
color_rampNo

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. Description adds context for mode and color_ramp defaults but does not disclose side effects, error conditions, or confirm non-destructive nature.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with a clear list for mode options. Front-loaded purpose, minimal waste.

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?

Despite output schema existence, description lacks explanation of 'classes' parameter and fundamental graduated concept. Adequate but incomplete for the complexity.

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%. Description explains mode (list of values, default) and color_ramp (default) but omits explanations for layer_id, field, and classes, leaving 3/5 parameters undocumented.

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 styles a vector layer with a graduated color ramp over a numeric field, which is specific and distinguishes it from sibling tools like style_set_single_symbol or style_set_categorized.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use graduated styling versus alternatives like categorized or rule-based. Only implied by mentioning numeric field and mode options.

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