API & MCP
Everything a person can do on Paperwell Contract Notice Deadlines, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://paperwellnoticedeadlines.usefulweb.site/api/v1/calculate– run Paperwell Contract Notice DeadlinesGET https://paperwellnoticedeadlines.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Paperwell Contract Notice Deadlines
Computes the term table of a contract (initial term, automatic renewals) or the earliest end of an open-ended contract (notice on any day, to the end of a month, quarter or year), the last day your notice must arrive, the days left and an iCalendar file with reminders. The same engine powers the deadlines view of Paperwell.
| Field | Type | Default | Description |
|---|---|---|---|
title | text | — | Contract name |
startDate (required) | date | — | Start date of the contract |
anchor | select (term-end, any-time, month-end, quarter-end, year-end) | "term-end" | Kind of contract |
termValue | integer | — | Initial (minimum) term. Required for fixed terms. For open-ended contracts an optional minimum term. |
termUnit | select (day, business-day, week, month, year) | "month" | Unit of the initial term |
renewalValue | integer | — | Automatic renewal period. Empty = the contract ends after the initial term. |
renewalUnit | select (day, business-day, week, month, year) | "month" | Unit of the renewal period |
noticeValue (required) | integer | — | Notice period |
noticeUnit | select (day, business-day, week, month, year) | "month" | Unit of the notice period |
asOf | date | — | Reference day (today). Empty = today. |
cycles | integer | 4 | Terms to list |
remind | text | "30, 7" | Reminders (days before the last notice day). Comma-separated, e.g. "30, 7". Used for the calendar file. |
Example request
24-month software subscription, 12-month renewals, 90 days notice
curl -X POST https://paperwellnoticedeadlines.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"title":"Software subscription","startDate":"2026-11-01","anchor":"term-end","termValue":24,"termUnit":"month","renewalValue":12,"renewalUnit":"month","noticeValue":90,"noticeUnit":"day","asOf":"2026-10-26","cycles":3,"remind":"30, 7"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://paperwellnoticedeadlines.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
paperwell_notice_deadlines - Local stdio connector:
node src/mcp-stdio.ts --tool=paperwell-notice-deadlines
{
"mcpServers": {
"paperwell-notice-deadlines": { "type": "http", "url": "https://paperwellnoticedeadlines.usefulweb.site/mcp" }
}
}