Skip to main content
Glama
nkarasiak

QGIS MCP

by nkarasiak

Add Layout Scale Bar

add_layout_scalebar

Add a scale bar to a QGIS print layout, linked to a map item. Customize style, position, and size.

Instructions

Add a scale bar to a print layout, linked to a map item. style e.g. 'Single Box', 'Double Box', 'Line Ticks Up', 'Numeric'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
styleNoSingle Box
widthNo
heightNo
layout_nameYes
map_item_idNo
Behavior2/5

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

No annotations are provided, and the description lacks behavioral details such as whether the layout must exist, side effects of adding a scale bar, or error conditions. Only the basic action is stated.

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, front-loaded with the main action and a secondary sentence for style examples. No wasted words, but could include more structured parameter hints.

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

Completeness2/5

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

Given the lack of annotations and output schema, and 7 parameters with no explanation, the description is insufficient for complete understanding. It does not cover prerequisites, return value, or parameter behavior.

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?

With 0% schema description coverage, the description does not explain the meaning of parameters like x, y, width, height, or map_item_id. Only 'style' is illustrated with examples, leaving the agent to guess the role of other parameters.

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 action ('Add a scale bar') and the resource ('to a print layout'), with specific detail on linking to a map item. This distinguishes it from sibling tools like add_layout_label or add_layout_legend.

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 implies usage context (e.g., linked to a map item, style examples) but does not provide explicit when-to-use or when-not-to-use guidance, nor alternatives among layout 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/nkarasiak/qgis-mcp'

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