Skip to main content
Glama

Föräldraledighetsplanen

plan_leave

Read-onlyIdempotent

Föreslå en fördelning av kvarvarande föräldradagar (av 480) mellan 1–2 föräldrar med schema för dubbeldagar, sjukpenningnivå och lägstanivå, datum och belopp. Om barnet redan är fött startar planen idag och uttagna dagar räknas bort. Returnerar källa och länk till planeraren.

Input Schema

NameRequiredDescriptionDefault
idagNoValfritt dagens datum ÅÅÅÅ-MM-DD
onskemalNo
foraldrarYes
startdatumNoValfritt startdatum ÅÅÅÅ-MM-DD (standard: födseln, eller idag om barnet redan är fött)
fodelsedatumYesBarnets (beräknade) födelsedatum, ÅÅÅÅ-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / foraldrar / items / properties / uttagna
      Added value: +{
      +  "description": "Redan uttagna dagar för förälderns del",
      +  "properties": {
      +    "lagstaniva": {
      +      "type": "number"
      +    },
      +    "sjukpenningniva": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / idag
      Added value: +{
      +  "description": "Valfritt dagens datum ÅÅÅÅ-MM-DD",
      +  "type": "string"
      +}
    • addedInput schema / properties / onskemal / properties / dubbeldagar
      Added value: +{
      +  "description": "Antal dubbeldagar att lägga först (max 60, före 15 månader)",
      +  "type": "number"
      +}
    • addedInput schema / properties / startdatum
      Added value: +{
      +  "description": "Valfritt startdatum ÅÅÅÅ-MM-DD (standard: födseln, eller idag om barnet redan är fött)",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior. The description adds genuinely new context: the retroactive start-today-and-deduct rule for already-born children and the fact that it returns a source and a link. It does not describe output detail or limits beyond that.

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?

Three sentences, front-loaded with the core action, then the birth-date conditional, then the return value. No wasted text, though the Swedish phrasing is dense.

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

Completeness3/5

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

For a nested 5-parameter tool with no output schema, the description covers the main behavior and return hint (source and link). It stops short of explaining how the 1–2 parent split and the andel parameter interact, leaving some gaps for a fairly complex planner.

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 coverage is 60%, and the description mentions the schedule dimensions (dubbeldagar, sjukpenningnivå, lägstanivå), dates and amounts, aligning loosely with the nested parameters. It adds only marginal meaning over the schema and leaves the uncovered 40% undocumented.

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?

The description names a specific verb and resource: proposing a distribution of the remaining 480 parental days between 1–2 parents, with schedule, dates and amounts. This is clearly distinct from siblings like calc_benefit or days_remaining, though it never names them 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?

It gives the conditional 'if the child is already born, the plan starts today and used days are deducted', which implies when the tool applies, but it offers no explicit guidance on when to prefer it over calc_benefit or days_remaining.

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