Skip to content
NoticeAhead

For agents

NoticeAhead for agents

Assistants and agent runtimes can read a workspace's contracts and work out notice deadlines over the Model Context Protocol, without custom glue on your side. Point the client at one URL and give it a workspace API token.

New to NoticeAhead? Start at the home page, compare plans and limits, or try the free deadline calculator.

01

The endpoint

URL
https://noticeahead.com/mcp
Transport
streamable HTTP (POST)
Authentication
Authorization: Bearer <token>
Alternative header
X-Api-Key: <token>

A request without a valid token is refused with 401. A token belongs to one workspace: it never exposes another workspace's contracts, and revoking it in the app stops access immediately.

02

Getting a token

The workspace owner creates API tokens in the app under Workspace → API tokens, gives each one a name, and can revoke it there. The token is shown once, when it is created. It is scoped to one workspace and carries a scope: read (default, cannot change anything) or read and write. The same token also works for /api/v1/contracts.

03

Tools

Tool Arguments Returns
list_contracts (read) limit (1-200, default 200) The workspace's contracts, each with its computed notice_deadline, decision_deadline and days_until_notice.
notice_deadline (read) term_end_date, notice_period, notice_unit, preparation_buffer_days The notice and decision deadlines for one contract term, with the steps used and any warnings. No workspace data is read.
get_contract (read) contract_id One contract of the workspace: parties, term dates, notice period and unit, the computed notice_deadline, decision_deadline, days_until_notice, the status and any reminders. A contract of another workspace is never returned.
list_expiring_contracts (read) days (1-365, default 30), deadline (notice|decision, default notice), limit (1-200, default 50) The workspace's contracts whose notice or decision deadline falls in the next N days, oldest first.
renewal_calendar (read) months (1-24, default 3) The workspace's contracts grouped by the month their term ends, with the notice and decision deadlines that drive the renewal.
deadline_rules (read) none The deadline-calculation rules as text, quoted from the shipped rules document. No workspace data is read.
create_contract (write) fields, confirm (must be true), idempotency_key Creates a contract in the workspace with the same validation as the app and returns it. A retry with the same idempotency_key returns the first result instead of a duplicate.
update_contract (write) contract_id, fields, confirm (must be true) Changes only the fields you name, re-validates the whole contract and returns it.
set_reminder (write) contract_id, days_before (1-365, default 7), recipient_id, confirm Schedules a reminder in the reminders app at 09:00 in the workspace's timezone; asking twice for the same contract, offset and recipient creates one job.
mark_decision (write) contract_id, decision, reason, confirm (must be true) Records a decision, keeping the app's rules: cancellation_planned records intent, cancellation_confirmed (or closed) completes it.
list_plans (read) none The plans the workspace can subscribe to, with prices in euros and their limits. PayPal plan ids are never returned.
subscription_status (read) none The workspace's current plan, interval, status and period end, or that it has no subscription yet.
start_subscription (write) plan_code, interval (month or year), return_url, confirm (must be true), idempotency_key Creates a pending subscription and returns the PayPal approval URL. Nothing is charged: the customer opens the link and approves it in PayPal.
confirm_subscription (write) subscription_id, confirm (must be true) Asks PayPal for the authoritative status and applies it, exactly like the webhook does. Only PayPal can report a subscription as active.

Every tool is scoped to your workspace. The read tools never change data; the six write tools (create_contract, update_contract, set_reminder, mark_decision, start_subscription, confirm_subscription) need a write-scoped token and confirm=true. The billing tools never take a payment: start_subscription returns the PayPal approval link that the customer opens and approves, and PayPal charges only after that. The contract tools reuse the same API described in /llms.txt and the same deadline engine as the free calculator.

04

Connecting a client

Clients that support remote (streamable HTTP) MCP servers need two things: the URL and the token as a header. JSON-configured clients use a shape like this - VS Code keeps the same fields under servers, and other clients only differ in the key names:

{
  "mcpServers": {
    "noticeahead": {
      "type": "http",
      "url": "https://noticeahead.com/mcp",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}
Client Where the server is added
Claude (desktop or web) Settings → Connectors → Add custom connector, then paste the URL. Where the client asks for a token or header, use your API token.
Cursor MCP settings, or ~/.cursor/mcp.json with the entry above.
VS Code / Copilot .vscode/mcp.json (workspace) or the user MCP settings, using the same URL and header.
Codex CLI ~/.codex/config.toml, adding a remote MCP server with this URL and an Authorization header.

A client that can only launch a local process can run the same tools over stdio instead: python mcp_server.py.

05

Questions agents and their operators ask

Does connecting an assistant need a paid plan?
No account is needed to compute a deadline: GET /api/notice-deadline is free and stateless. Reading a workspace's own contracts over MCP needs a workspace API token, which a workspace owner creates in the app.
Does the MCP endpoint use OAuth?
Not today. It authenticates with a workspace Bearer token (or X-Api-Key). Because there is no OAuth server, the endpoint is not yet eligible for directory features that require OAuth client registration.
Which clients can connect?
Any client that can be given a remote streamable-HTTP MCP URL and a header: Claude, Cursor, VS Code / Copilot, Codex, and others. A client that can only start a local process can run the same tools over stdio with python mcp_server.py.
Can an assistant change our contracts?
Only with a write-scoped token and confirm=true. A read token can read and compute but never change anything; the six write tools are recorded in the workspace audit log.
Can one token see another workspace?
No. A token belongs to exactly one workspace; a contract id from another workspace answers exactly like an unknown id, and revoking a token in the app stops access immediately.
How is the notice deadline computed?
Term end date minus the notice period (days or calendar months, clamped to the last day of the target month), minus an optional preparation buffer. The steps are returned with every result and the rules are readable as plain text through the deadline_rules tool.
The MCP endpoint requires a workspace token even for the deadline calculator tool, and requests are rate limited. A read token lets an assistant read contracts and compute deadlines. A write token can also create and change contracts and start a subscription, but every write needs confirm=true and is recorded in the workspace audit log. No tool can charge a card: a subscription starts only when the customer approves it in PayPal.