Skip to main content
Glama

get_layer_summary

Combine five separate QGIS layer queries into one call, returning feature count, geometry type, CRS, extent, and field details with example values for vector layers.

Instructions

Summarize a layer in one call: feature count, geometry type, CRS, extent, and fields.

Replaces the usual five round-trips (layer_info + list_fields + samples) with a single response. For vector layers, each field comes with up to 3 example values pulled from the first features scanned - not a full distinct-value enumeration. Raster layers get the shared metadata (id/name/type/crs/extent) with geometry_type, feature_count, and fields set to null.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layer_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It clearly explains that for vector layers, fields come with up to 3 example values (not full enumeration) and that raster layers have null fields. This discloses behavioral traits beyond the basic summary.

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 two short paragraphs with the key action in the first sentence. It efficiently covers vector/raster differences without redundancy.

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 output schema is rich, the description effectively explains what the output includes for both layer types and notes limitations (example values not full distinct). It is complete for the tool's purpose.

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?

Schema coverage is 0%, and the description adds no detail about the sole parameter 'layer_name' beyond its implied meaning. It does not specify format, completeness, or constraints, relying entirely on the parameter name.

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 starts with a clear verb 'Summarize' and specifies the resource 'a layer' along with the exact outputs: feature count, geometry type, CRS, extent, and fields. It distinguishes from sibling tools by explaining it replaces five separate calls, while siblings like filter_layer_by_expression or reproject_layer serve different purposes.

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 states this tool replaces five round-trips (layer_info, list_fields, samples) with a single response, implying it is the go-to for quick summary. However, it does not explicitly list when not to use it or compare to alternatives among the sibling 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