Skip to main content
Glama

Aleva open data

Population per region and year

population
Read-onlyIdempotent

Population per region and year. Returns a list of records; pass next_cursor to get the next page. Fields: region_code (varchar): 00 Sweden, 2 digits county, 4 digits municipality; region (varchar); level (varchar); year (integer); population (bigint).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoYear (equals)
levelNocountry, county or municipality (equals)
limitNoHow many rows to return
cursorNonext_cursor from the previous result, for the next page
year_gteNoYear (at least)
year_lteNoYear (at most)
region_codeNo00 Sweden, 2 digits county, 4 digits municipality (equals)
region_code_inNo00 Sweden, 2 digits county, 4 digits municipality (any of)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description goes beyond them by disclosing the pagination contract ('pass next_cursor to get the next page') and enumerating the returned fields, which is real behavioral context for a cursor-paged endpoint.

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?

Two sentences, front-loaded with the resource and then the pagination and field contract. The field list is dense but earns its place given there is no output schema; nothing is padded.

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

Completeness3/5

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

Listing the return fields compensates for the missing output schema, and pagination is explained. However, for an eight-parameter tool with zero required parameters, it never says what happens with no filters, nor how the inclusive year bounds interact with the exact year filter.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description's field legend largely restates the schema's region_code wording and says nothing about the relationship between year, year_gte and year_lte or the limit default/ceiling.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource and scope: population records keyed by region and year. An agent knows it is a filtered statistics query. It does not distinguish itself from the sibling population_latest, which is the obvious competing choice for the same data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance at all. With population_latest, municipal_figures and municipal_figures_latest in the sibling list, the agent gets no signal about when this historical/filterable endpoint is preferable, nor any note that all eight filters are optional.

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