Skip to main content
Glama

get_layer_sample

Preview representative features from a vector layer. Get up to 20 features with optional bounding box instead of full geometry.

Instructions

Fetch a handful of representative features from a vector layer.

limit defaults to 5 and is capped at 20 - this is a preview, not a data export. Geometry is omitted unless include_bbox is set, in which case each feature gets its bounding box only, never full WKT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
layer_idYes
include_bboxNo

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, the description fully discloses key behaviors: default limit (5), cap (20), preview nature, and geometry handling (omitted or bounding box only). It does not mention authentication or rate limits, but those are less relevant for a read-only preview tool.

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

Conciseness5/5

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

Two compact sentences: first states purpose clearly, second adds constraints with inline formatting. Every word earns its place—no redundancy or filler.

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?

The description explains the tool's purpose, constraints, and return behavior (representative features, no geometry by default). Given the presence of an output schema, this is sufficient for an agent to understand the tool's output, though it could mention randomness or ordering of features.

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

Parameters4/5

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

The description adds meaning for 'limit' (default, cap) and 'include_bbox' (geometry omitted unless set, then only bbox), which are not explained in the schema (0% coverage). The 'layer_id' parameter is obvious from context but not explicitly described, preventing a perfect score.

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 uses a specific verb ('Fetch') and resource ('representative features from a vector layer'), clearly distinguishing it from siblings like 'get_layer_schema' (schema only) and 'features_get' (full data retrieval).

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?

Explicitly states this is a 'preview, not a data export' and that geometry is omitted unless requested, providing clear context for when to use this tool. However, it does not directly name alternative tools for complete data retrieval.

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