Skip to main content
Glama
arbetsformedlingen-mcp-server

arbetsformedlingen-mcp-server

Search suggestions

af_autocomplete
Read-onlyIdempotent

Fetch autocomplete suggestions for job listing searches to find correct terms before querying af_search_jobs, returning suggestions with occurrence counts.

Instructions

Fetch autocomplete suggestions for job listing searches.

Use this to find correct search terms before calling af_search_jobs.

Args:

  • q (string): Search term to complete, minimum 2 characters. Example: "nurs", "java dev"

  • contextual_q (string, optional): Existing search query that provides contextual suggestions

Returns: List of suggested search terms with occurrence counts.

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": {
      "q": "<q>"
    },
    "name": "af_autocomplete"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesThe search term to autocomplete
contextual_qNoExisting search query for context

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds behavior beyond that: the two-character minimum and the fact that results are suggested terms with occurrence counts, which tells the agent what signals come back for ranking suggestions.

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 is front-loaded in one sentence, followed by the sibling pointer and a compact Args/Returns block with no filler. It loses a point only because the minimum-length constraint is repeated verbatim from the schema's minLength.

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

Completeness5/5

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

For a two-parameter read tool with no output schema, the definition covers purpose, sequencing, constraints, and the shape of the return value (terms plus occurrence counts). Nothing an agent needs to invoke it correctly is missing.

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 100%, so the baseline is 3, but the description earns above that by giving concrete example values ("nurs", "java dev") and clarifying that contextual_q supplies an existing query to condition suggestions on — the latter is only thinly described in the schema.

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 first sentence gives a specific verb and resource ("Fetch autocomplete suggestions for job listing searches") and the second ties it explicitly to af_search_jobs, so an agent can separate it from af_synonym_dictionary or af_search_taxonomy without opening any schema.

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?

The description states a clear usage condition: use this to resolve correct search terms before calling af_search_jobs. That is a concrete pre-step relationship rather than vague context, though it gives no guidance on when not to bother (e.g., when a term is already known to be valid).

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