Skip to main content
Glama

calculate uk maternity pay

calculate_uk_maternity_pay
Read-onlyIdempotent

UK Statutory Maternity Pay 2026-27: 39 weeks, 6 at 90% of average weekly earnings, 33 at £194.32 or 90% if lower. General information only, as of 2026-11-22; eligibility is not checked.

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": {
      "weeklyEarnings": "<weeklyEarnings>"
    },
    "name": "calculate_uk_maternity_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
weeklyEarningsYesAverage weekly earnings before tax (GBP)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower, and the description still adds real context: the applicable tax year (2026-27), the legal rate structure used in the computation, the as-of date 2026-11-22, and the explicit limitation that eligibility is not verified. The remaining gap is that it says nothing about the return shape or precision.

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?

Information is front-loaded: the jurisdiction and year first, then the rate breakdown, then the disclaimer. Every clause is substantive, though the hard-coded weekly rate makes the sentence dense and slightly number-heavy rather than structurally crisp.

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 one-parameter read-only calculator this is largely adequate, and the rate breakdown implicitly signals the output structure. However, with no output schema, the description never states what is actually returned (weekly breakdown versus total, rounding, currency formatting), leaving a genuine gap for an agent that must consume the result.

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% for the single required parameter, so the schema already documents 'Average weekly earnings before tax (GBP)'. The description adds meaning by tying that input directly to the formula ('6 at 90% of average weekly earnings', '90% if lower'), clarifying why earnings is the only input and how it drives the result.

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 resource and jurisdiction ('UK Statutory Maternity Pay 2026-27') and enumerates the exact computation rule (39 weeks: 6 at 90%, 33 at £194.32 or 90% if lower), so an agent knows precisely what is being calculated. It does not explicitly distinguish itself from the KR maternity sibling or other UK payroll calculators, but the UK/SMP scoping in the text is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus alternatives such as calculate_uk_employer_cost or the KR maternity sibling, and no prerequisites described. The only contextual guidance is the caveat 'eligibility is not checked', which tells the agent a limit but not a routing rule.

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.