Skip to main content
Glama

days_remaining

Read-onlyIdempotent

Räkna ut hur många föräldradagar som är kvar per förälder: sjukpenningnivå, lägstanivå, reserverade dagar, dubbeldagar kvar före 15 månader, hur många dagar som måste tas ut före 4 år (max 96 sparas) och sista dag för uttag (12 år). Enligt Försäkringskassans regler, med källa.

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": {
      "fodelsedatum": "<fodelsedatum>"
    },
    "name": "days_remaining"
  }
}

Input Schema

NameRequiredDescriptionDefault
idagNoValfritt dagens datum ÅÅÅÅ-MM-DD
foraldrarNo1–2 föräldrar med uttagna dagar
fodelsedatumYesBarnets födelsedatum ÅÅÅÅ-MM-DD
uttagna_dubbeldagarNoRedan uttagna dubbeldagar (antal dagar per förälder)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds meaningful context beyond that: computations follow Försäkringskassan's official rules and results are delivered "med källa" (with a source citation), which tells the agent the output is rule-derived and attributable. It stops short of describing response shape or handling of missing inputs.

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?

A single dense sentence that front-loads the verb and resource before listing outputs; every clause contributes a distinct computed result. It is slightly run-on and could be broken up, but there is no filler.

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 usefully enumerates what will be returned (balances by level, reserved days, double days, age-4 deadline with the 96-day cap, 12-year cutoff) and notes the regulatory basis. Only minor gaps remain, such as default handling for the optional idag and confirmatory output format.

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 each of the four parameters (fodelsedatum, idag, foraldrar, uttagna_dubbeldagar) is already documented in the schema. The description adds no parameter-level detail — e.g. it never clarifies that uttagna_dubbeldagar counts days per parent or how the optional idag defaults — so baseline 3 applies.

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?

States a specific verb ("Räkna ut" / calculate) and resource (remaining parental days per parent), then enumerates the exact outputs: sjukpenningnivå, lägstanivå, reserved days, double days before 15 months, days required before age 4, and final withdrawal date at 12 years. That output profile clearly separates it from calc_benefit (money), plan_leave (scheduling), and the rules/explanation siblings.

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?

Usage is only implied: an agent can infer this is the tool for computing remaining day balances, but the description never says when to choose it over calc_benefit or plan_leave, nor states prerequisites (e.g. that taken-days inputs must be supplied per parent).

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