Answer statutory notice periods in an HR chatbot, with legal basis
The agent calls the calculator and gives the notice period, end date and legal basis.
An HR chatbot should not work out notice periods by itself. With the MCP server, it calls hr_kuendigungsfrist and answers, for example: joined on March 1, 2017, notice received on November 10, 2026, so employment ends on February 28, 2027 (§ 622 Abs. 2 Satz 1 Nr. 3 BGB). The field frist names the applicable period: 3 Monate zum Ende eines Kalendermonats.
Add the Quellenkontor MCP server to your agent.
The agent recognizes the question and calls hr_kuendigungsfrist with the start date and the date the notice was received.
The response contains the notice period, end date and section of law. The agent quotes the sentence from the field zitat.
Why the agent should not do the math
The notice period under § 622 of the German Civil Code (BGB) depends on length of service when the notice is received, and it ends on the 15th or at the end of a month. Language models miscount easily here, for example in months with 30 days or when the period starts on the day after receipt (§ 187 BGB).
The calculator applies the rule schematically and returns the legal basis along with the period and end date. The agent only has to understand the question and pass the two dates. The detailed rules are on the notice period calculator page.
What to put in the agent's instructions
- Never calculate notice periods yourself, always call the tool.
- If the start date or the date of receipt is missing, ask instead of guessing.
- In the answer, give the notice period, end date and legal basis, and point out that the contract or a collective agreement (Tarifvertrag) can provide for longer periods.
The calculator returns the statutory notice period. It does not check contractual or collectively agreed periods, special protection against dismissal (Sonderkündigungsschutz) or whether the dismissal is valid.
What the call looks like
Example with the dataset Notice period calculator. The response comes from the same code as the API.
Frequently asked questions
Which notice periods does the calculator know?
The basic period, the extended periods for dismissal by the employer and the period during probation (Probezeit) under § 622 BGB.
What happens if the agent passes a wrong date?
The server rejects the call with a message about the affected parameter, and the agent can correct it. Such calls do not count against your quota.
How do I set up the MCP server?
In Claude Code with one command, in Cursor and VS Code with a configuration file. The instructions are in the MCP server docs.
Datasets used
Related use cases
Enter maternity protection periods in HR software automatically
The expected due date gives you the start and end of the maternity protection period (Mutterschutzfrist) in your system.
Account for public holidays by location in shift planning
Public holidays for each location in the plan automatically, regional holidays included.