Skip to main content
Glama
arbetsformedlingen-mcp-server

arbetsformedlingen-mcp-server

Search historical job listings

af_search_historical_jobs
Read-onlyIdempotent

Search archived Swedish job listings from 2006 onward using filters like occupation, region, employer, and dates to analyze labor market trends and historical hiring patterns.

Instructions

Search among archived (historical) job listings from 2006 onwards via the Historical Job Ads API.

Same search parameters as af_search_jobs but targeting archived/closed listings. Excellent for labour market analysis, trend analysis and research.

Args:

  • q (string, optional): Free-text search

  • occupation_name (string, optional): Occupation name

  • occupation_group (string, optional): Occupation group ID

  • occupation_field (string, optional): Occupation field ID

  • municipality (string, optional): Municipality code

  • region (string, optional): Region/county code

  • employer (string, optional): Organization number

  • published_after (string, optional): ISO 8601 date, e.g. "2023-01-01"

  • published_before (string, optional): ISO 8601 date, e.g. "2023-12-31"

  • limit (number, optional): Number of results (default: 10, max: 100)

  • offset (number, optional): Pagination offset

  • detail (string, optional): "summary" or "full"

Returns: List of historical job listings with metadata.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "af_search_historical_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFree-text search
limitNo
detailNosummary
offsetNo
regionNo
employerNo
municipalityNo
occupation_nameNo
published_afterNoISO 8601 date, e.g. '2023-01-01'
occupation_fieldNo
occupation_groupNo
published_beforeNoISO 8601 date, e.g. '2023-12-31'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new context: the archive starts in 2006 and the corpus is closed/archived listings. It says nothing about rate limits, how the large offset ceiling behaves, or how 'detail' changes the payload, so it remains a partial behavioral picture.

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?

Purpose and the af_search_jobs relationship are front-loaded in the first two sentences, then a scannable parameter list follows. The Args list partially duplicates the schema, but that duplication is justified by the low schema coverage; only the 'Returns' line is thin.

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 12-parameter, no-required-parameter search tool with no output schema, the description covers scope, use case, every parameter, and a one-line return summary. Missing only pagination guidance (how deep offset can practically go) and any note that older date ranges may return sparse results.

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 only 25%, so the description must carry the load, and it does: it glosses all twelve parameters, including code semantics the schema omits entirely (employer = organization number, municipality = municipality code, occupation_group = group ID) and the limit default/max and detail enum values.

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 gives a specific verb and resource ('Search among archived (historical) job listings') plus a temporal scope ('from 2006 onwards') and names the backing API. It explicitly distinguishes itself from the sibling af_search_jobs by stating it targets 'archived/closed listings' rather than current ones.

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?

It states the use cases clearly ('labour market analysis, trend analysis and research') and implicitly routes live-listing queries to af_search_jobs via the archived-vs-current contrast. It stops short of an explicit 'do not use this for current openings' exclusion, but the intended context is unambiguous.

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