Skip to main content
Glama
arbetsformedlingen-mcp-server

arbetsformedlingen-mcp-server

Enrich job listing text

af_enrich_job_text
Read-only

Analyze job listing text to extract occupations, competencies, traits, and locations with probability scores that indicate which terms are requested by employers.

Instructions

Analyse a job listing text with AI and extract relevant labour market terms.

Returns identified occupations, competencies, personal traits and geographies, each with a probability score (0.0–1.0) indicating how likely the term is requested by the employer. Closer to 1.0 = explicitly requested. Closer to 0.0 = mentioned but not required.

Args:

  • text (string): The job listing text to analyse (headline + description)

  • only_requested (boolean, optional): If true, only return terms above the classification threshold (default: false)

Returns: Identified occupations, competencies, traits and locations with probability scores.

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": {
      "text": "<text>"
    },
    "name": "af_enrich_job_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe job listing to analyse (max 10,000 characters)
only_requestedNoReturn only terms classified as requested

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the description's real contribution is output semantics: the 0.0–1.0 probability scale and the crucial interpretation that high means 'explicitly requested' rather than merely 'mentioned'. That is genuinely useful behaviour the annotations cannot convey. It stops short of covering failure modes (oversized text is only handled in the schema) or latency/cost of an AI analysis call.

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?

Front-loaded with the purpose, then a well-structured Args/Returns block, and the probability interpretation is placed where it matters. There is mild redundancy: the four output categories are listed once in the opening paragraph and again under Returns, which could be merged.

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 must carry the return-value burden, and it does: it enumerates occupations, competencies, traits and geographies plus probability scores. Given only two parameters and full schema coverage, the remaining gap is minor — nothing on empty/no-match results or on what a threshold-less call returns.

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 both parameters are already documented. The description restates them and adds a small amount of meaning (text is 'headline + description'; only_requested maps to the classification threshold), but adds no format or edge-case detail beyond the schema. Baseline 3 applies.

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 ('Analyse a job listing text with AI and extract relevant labour market terms') and names the four output categories. An agent can tell this is a text-enrichment tool rather than a lookup like af_get_job or a search like af_search_jobs, though it never says so explicitly.

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?

The required `text` argument implies usage: you call this when you already hold raw listing text rather than a job ID. But there is no explicit when-to-use/when-not guidance, no mention of prerequisites or the relationship to sibling tools such as af_get_job, and no exclusion criteria.

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