Skip to main content
Glama

DMD Costs legal costs tools

CPR deadline calculator (CPR 2.8 clear days and time limits)

calculate_cpr_deadline
Read-onlyIdempotent

Works out a deadline under the Civil Procedure Rules in England and Wales from a date: clear days (CPR 2.8(2) and (3)), the 5-day rule (CPR 2.8(4)), calendar months (CPR 2.10), court office closures (CPR 2.8(5) and PD 2A) and the latest days to email or post a document for deemed service (CPR 6.26). Name a common time limit as a preset (for example the defence, the acknowledgment of service, the appellant's notice or Points of Dispute), or give your own period, plus the date it runs from.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actNoWithout a preset: "court" for a filing at court (default), "serve" for a document to be served, "other" for anything else.
unitNoWithout a preset: "days" (default) or "months" (months only for a period after the event).
eventYesThe date the period runs from: the date of service, of the decision, of the hearing or other event (YYYY-MM-DD).
amountNoWithout a preset: the length of the period, e.g. "14".
presetNoA common time limit: "claim-form-service", "particulars-to-follow", "acknowledgment", "defence-14" (no acknowledgment filed), "defence-28" (after an acknowledgment), "application-notice", "statement-of-costs-fast-track" (fast track trial), "appellants-notice", "part-36-relevant-period" (21 days), "notice-of-commencement" (N252), "points-of-dispute", "replies" (to Points of Dispute), "request-assessment" (N258), "costs-officer-appeal" (from an authorised court officer). Leave "" to give your own period.
directionNoWithout a preset: "within" a period after the event (default), at least a period "before" it, or at least a period "after" it (gives the earliest day).

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuine context about the rules applied (clear days, the 5-day rule, court office closures) but says nothing about the return shape, rounding conventions or edge cases for a pure calculator.

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?

The purpose and rule coverage are front-loaded in the first clause, followed by the usage note on presets. It is dense but every clause corresponds to real functionality; slight bloat from listing CPR citation numbers alongside each concept.

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?

With no output schema, the description carries the burden of indicating what comes back, and it only loosely implies a computed deadline date without describing the result (single date, adjusted date, explanation). For a six-parameter calculator the coverage of inputs is good but the output side is left implicit.

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 the schema already documents all six parameters including enums and the preset list. The description restates the preset-vs-own-period choice and lists a few example presets, largely duplicating what the schema provides rather than adding new meaning. Baseline 3 applies.

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 (works out a deadline) and a precise resource (a CPR deadline in England and Wales), then enumerates the rules applied (CPR 2.8, 2.10, 6.26, PD 2A). It is very clear what the tool does. However it never distinguishes itself from siblings like calculate_deemed_service, which it partially overlaps by offering 'latest days to email or post a document for deemed service'.

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 explains how to drive the tool (use a named preset or supply your own period plus a start date) but not when to choose this over siblings such as calculate_deemed_service or calculate_detailed_assessment_deadlines. Usage is implied by the CPR scope rather than stated with conditions or exclusions.

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