Developers and AI
The website, HTTP, Effect RPC and MCP use the same checked content, annual input and result. The annual calculator supports the stated 2025–26 single-person scope.
Public HTTP
The public API base is https://api.adad.app.
- GET /pages lists public page summaries.
- GET /pages/home reads the home page as checked JSON, including Markdown.
- GET /calculators lists calculator availability.
- GET /calculators/annual reads annual availability and supported years.
- POST /calculators/annual/calculate calculates the canonical annual input.
Calculation requests use taxYear, input and success. For example, taxYear is 2025-26; input contains taxableIncome with _tag Money, currency AUD and safe integer cents 8000000 for $80,000. Set success to null when usage collection is off. A participating caller supplies the same logicalId UUID, occurredAt ISO time and calculatorId annual across retries of one calculation. These fields contain no financial values.
The result is the canonical AnnualTaxReport, with taxableIncome, liability, rawLiability, component ledger, rulePackVersion and explanation trace. UnsupportedTaxYear and CalculationError are declared failures; HTTP returns 422 for these. Malformed financial input returns a fixed 400 without echoing it. Unknown page and calculator identifiers return 404.
No login or API key is required. Keep input and result out of page addresses, logs, analytics and saved data.
Effect RPC
POST /rpc uses the native Effect protocol. The contract provides ListPages, GetPage, ListCalculators, GetCalculator and CalculateAnnual. Use the matching native Effect RPC contract; CalculateAnnual takes the same request and returns the same report or declared error.
Browser requests omit credentials. The API admits only the exact matching website origin. Non-browser clients may omit Origin.
Remote MCP
POST /mcp provides list_pages, get_page, list_calculators, get_calculator and calculate_annual. Get reads take id; list reads take an empty object. calculate_annual takes the same annual request. It can record anonymous successful use; its read-only hint is false. Reuse success identity and time when retrying. Set success to null when collection is off.
Only protocol version 2026-07-28 is supported. It uses per-request metadata, without an initialise or session handshake. Each POST needs Accept for application/json and text/event-stream, MCP-Protocol-Version, MCP-Method and MCP-Name for a tool call. Header version, method and tool name must agree with the body. Discovery uses server/discover. Older versions and subscriptions are unavailable.
Requests are limited to 32 KiB, finite replies to 256 KiB, unfinished work to ten seconds and concurrent requests to sixteen. Browser clients use the exact website origin and omit credentials.
Browser tools
A browser with document.modelContext can register the same five tools while the annual page is open at the matching origin. Calls use the website's generated HTTP client. Browser tool calculations send no success analytics metadata. Leaving the page removes owned registrations and stops unfinished calls. Unsupported browsers and registration refusals have clear status messages.
AI discovery and Markdown
Read llms.txt, the sitemap or this page's Markdown copy. They describe the same supported year, scope and interfaces. Read privacy information before sending financial input.