Skip to main content
Glama

Set Layer Labeling

set_layer_labeling

Configure labeling for vector layers: enable or disable labels, set the label attribute field, adjust font size and color (hex).

Instructions

Configure labeling for a vector layer. Set enabled=false to disable labels. Set field_name to the attribute field to label with. Optional: font_size (float), color (hex like '#000000').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorNo
enabledNo
layer_idYes
font_sizeNo
field_nameNo
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It states that the tool configures labeling but does not mention side effects (e.g., overwriting existing settings), permission requirements, or error handling (e.g., what if layer_id does not exist). The description implies a safe update operation but lacks explicit transparency.

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?

The description is concise with three short sentences. The first sentence immediately states the core purpose. No redundant information. It is appropriately front-loaded and uses minimal words.

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?

Given 5 parameters and no output schema, the description covers the main intent but lacks details such as expected return value (maybe void), validation of color format, or behavior when layer_id is invalid. For a configuration tool, missing context about persistence or immediate effect is notable but not critical.

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 description coverage is 0%. The description adds meaning for enabled, field_name, font_size (float), and color (hex format). However, it does not explain that color defaults to null, or provide details on font_size units (e.g., points). It partially compensates for the schema gap but misses some crucial semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool configures labeling for a vector layer. It specifies the verb 'configure' and resource 'labeling for a vector layer', and distinguishes from sibling tools like get_layer_labeling (read) and set_layer_style (different purpose). However, it could be more explicit about what labeling entails (text labels on features).

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 provides basic usage guidance: setting enabled=false to disable labels and field_name for the attribute field. It mentions optional parameters but does not explicitly state when to use this tool versus alternatives (e.g., set_layer_property, get_layer_labeling) or any prerequisites. No exclusion criteria or context for when not to use it.

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/lefcgis/qgis-mcp'

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