Skip to main content
Glama
arbetsformedlingen-mcp-server

arbetsformedlingen-mcp-server

Fetch job events from stream (JobStream v2)

af_stream_jobs
Read-onlyIdempotent

Fetch real-time new, updated, and removed Swedish job listing events to keep a local database synchronized with the labour market. Use date and taxonomy filters to limit results.

Instructions

Fetch real-time events (new, updated, and removed job listings) from the JobStream v2 API.

Ideal for keeping a local database in sync with the Swedish labour market. Events contain full listing data for new/updated ads, and ID-only for removed ads.

Args:

  • date (string): Fetch all events since this datetime (ISO 8601: "YYYY-MM-DDTHH:MM:SS"). Example: "2024-06-01T00:00:00". Note: large time ranges can return large volumes.

  • date_before (string, optional): Only fetch events before this datetime (ISO 8601). Defaults to now.

  • occupation_concept_id (string[], optional): Filter by occupation concept IDs from the taxonomy.

  • location_concept_id (string[], optional): Filter by location concept IDs from the taxonomy.

Returns: List of events since the given date. Removed listings are marked with removed=true.

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": {
      "date": "<date>"
    },
    "name": "af_stream_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesStart datetime (ISO 8601 e.g. '2024-06-01T00:00:00'). Fetches events since this point.
date_beforeNoEnd datetime (ISO 8601). Defaults to now.
location_concept_idNoFilter by location concept IDs from af_search_taxonomy
occupation_concept_idNoFilter by occupation concept IDs from af_search_taxonomy

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the bar is lower, and the description still adds real behavioral detail: new/updated events carry full listing data while removed events are ID-only with removed=true, and large time ranges can return large volumes. That pagination/volume caveat is genuinely useful for an agent planning a call, though nothing is said about event ordering, deduplication, or cursor semantics for incremental sync.

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

Conciseness3/5

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

The purpose sentence is front-loaded and clear, and the Returns block adds value because no output schema exists. However, the Args block duplicates the schema descriptions almost verbatim (ISO format, example, default-to-now), so a meaningful portion of the text does not earn its place.

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 correctly compensates by describing the return payload shape and the removed=true marker, and it flags the volume risk of wide ranges. For a read-only, four-parameter, open-world fetch tool this is close to complete; ordering and incremental-sync mechanics are the main omissions.

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 schema already documents all four parameters, including the ISO 8601 example and that date_before defaults to now. The description's Args block largely restates these definitions; its only added meaning is the volume warning attached to wide date ranges, which earns a baseline 3 rather than more.

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 verb and resource ('Fetch real-time events ... from the JobStream v2 API') and scopes it to new/updated/removed job listings. It never names or distinguishes itself from the obvious siblings (af_search_jobs, af_search_historical_jobs), so the agent must infer that this is the streaming/incremental path rather than a query path.

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

Usage Guidelines3/5

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

'Ideal for keeping a local database in sync with the Swedish labour market' implies the intended use case, but it is a benefit statement rather than routing guidance. There is no explicit when-not, no mention of the historical/search siblings, and no stated prerequisite such as needing a prior cursor or a taxonomy lookup before filtering.

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