Skip to main content
Glama

layer_join

Join attributes from another vector layer using a shared key field. Matches records by specified fields and adds joined fields to the target layer for the session.

Instructions

Join another vector layer's attributes onto this layer by a shared key field.

join_field is the field on join_layer_id; target_field is the field on layer_id to match it against. prefix is prepended to the joined field names to avoid collisions - defaults to the join layer's name if omitted. This adds fields to every feature on layer_id for the rest of the session; confirm with the user first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prefixNo
layer_idYes
join_fieldYes
target_fieldYes
join_layer_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Without annotations, the description fully covers behavioral traits: it adds fields to every feature for the rest of the session, explains prefix default behavior to avoid collision, and requires user confirmation. This goes beyond the schema and annotations (none provided).

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 front-loaded with the main purpose, then details parameters. It is appropriately sized for a tool with 5 parameters, though could be slightly more concise. Every sentence adds value, with no wasted words.

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

Completeness5/5

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

Given the tool has 5 parameters (4 required) and an output schema (so return values not needed), the description provides complete context: parameter semantics, behavioral transparency (session persistence, user confirmation), and usage guidance. No gaps remain.

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

Parameters5/5

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

Schema coverage is 0%, so the description must explain parameters. It clarifies 'join_field' is on join layer, 'target_field' on target layer, and 'prefix' defaults to join layer's name if omitted. All 5 parameters are explained, adding meaning beyond the schema.

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 joins attributes from another vector layer onto this layer by a shared key field, specifying verbs ('Join another vector layer's attributes'), resources ('layer_id', 'join_layer_id'), and the operation. It distinguishes from sibling tools like attributes_add_field or attributes_calculate by being a join operation.

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?

The description explains when to use the tool (to bring attributes from another layer based on a shared field) and identifies the key fields ('join_field' on join layer, 'target_field' on target layer). It advises confirming with the user first, implying session-persistent modification. However, it does not explicitly state when not to use or mention alternatives.

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