Skip to main content
Glama

A layer's features by year

get_layer_years
Read-only

How many features of a world map layer fall in each year (for layers with dates, such as sightings or bleaching surveys): the series the map's year slider draws. Give a find_layers id. 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": {
      "layer": "<layer>"
    },
    "name": "get_layer_years"
  }
}

Input Schema

NameRequiredDescriptionDefault
layerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, and the description's closing "Read-only" merely repeats that, so it earns no credit there. What it does add is genuinely useful: the prerequisite that the layer must have dates, and the shape of the result as a per-year series. It says nothing about what happens for a layer with no dates, which is the main behavioral gap.

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?

One front-loaded sentence establishes what is counted and returned, a parenthetical scopes the applicable layers, and a short clause states the parameter requirement. Nothing is redundant except the trailing "Read-only", which duplicates an annotation.

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?

With no output schema, the description reasonably conveys the return value as a year-to-count series, which is enough to use the result. The remaining hole is the undated-layer case, where behavior is only implied rather than stated.

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 coverage is 0% — the single parameter is typed only as a string — so the description has to carry the semantics, and it does by specifying that the value is a find_layers id, i.e. a foreign key from a sibling tool rather than an arbitrary name. It doesn't address format or validation details, but provenance is the piece that matters for correct invocation.

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 — counting features of a layer per year — and pins the output to something concrete ("the series the map's year slider draws"). That framing distinguishes it immediately from get_features, which returns the features themselves rather than an aggregate series.

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 clear usage context: it applies to layers that carry dates, with two illustrative examples (sightings, bleaching surveys), and it tells the agent the id must come from find_layers. It stops short of an explicit exclusion — it never says what to do for undated layers, only implies this tool isn't for them.

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