Skip to main content
Glama

Read a layer's features

get_features
Read-only

Get a vector layer's features as GeoJSON from Biohotspot's OGC API, optionally inside a bounding box [west, south, east, north]; up to limit features (500 by default, 5,000 at most). Give an id that find_layers marks get_features: true. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "collection": "<collection>"
    },
    "name": "get_features"
  }
}

Input Schema

NameRequiredDescriptionDefault
bboxNo
limitNo
collectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real behavioral facts beyond them: output is GeoJSON, the default page size is 500, the hard ceiling is 5,000, and bbox is optional. It does not mention pagination or truncation behavior when more features exist than the cap.

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?

A single dense sentence, front-loaded with the resource and return format, followed by the optional bbox and limit constraints, then the id precondition. Every clause supplies information not present in the schema or annotations.

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?

For a three-parameter read tool with no output schema, the definition covers format, sizing, spatial filtering, and how to obtain a valid collection id. It is slightly short of complete because pagination and result-truncation semantics are unstated, which matters given the 5,000 cap.

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?

Schema description coverage is 0%, so the description carries the full burden and largely does: it defines bbox axis order as [west, south, east, north], gives limit's default and maximum, and constrains collection to ids flagged by find_layers. Gaps remain on bbox units/CRS and whether an omitted limit silently truncates results.

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?

States a specific verb and resource ('Get a vector layer's features') plus the return format (GeoJSON) and the backing service (OGC API). An agent can distinguish this from discovery siblings like find_layers or get_habitat without opening any schema.

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?

Gives a concrete precondition: the collection id must be one that find_layers marks get_features: true, which routes the agent to the right discovery tool first. It does not state any when-not conditions or mention alternatives for raster/tabular data, so it stops just short of full guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources