{"openapi":"3.1.0","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"Mithril API","version":"1.0.0","summary":"Ontario legal operations with cited, signed answers, and a consent-bound handoff to a licensed lawyer.","description":"Mithril is Jonathan Kleiman’s Ontario law practice, the software it runs on, and consulting to build the same for your firm.\n\nEvery run returns a receipt signed with the site’s Ed25519 key (JWS, EdDSA). It records the operation, hashes of the facts and the answer, and each rule’s version and verification status. Verify it offline against /.well-known/jwks.json or with POST /api/v1/receipts/verify.\n\nYou can retain Mithril Law for your user. Start with a quote; your user sets up a mandate once.\n\nSign-in: None for free tools. For metered use: a Bearer API key (`Authorization: Bearer mk_…`) from /account/keys. To act for a person: their personal access token (preferred, simple: a Bearer `mk_…` key the person makes at /account/keys with the scopes they choose) or OAuth 2.1.\n\nEvery tool without personal facts answers at one URL: fetch https://mithril.law/{area}/{tool}.md with the facts as query parameters and you get the answer as markdown, every step cited, with a receipt. If a fact is missing, the answer lists it and gives the URL to fetch next. Tools that need names or addresses say how to proceed instead.\n\nErrors: `{ \"error\": { \"code\", \"message\", \"hint\", \"details\" }, \"requestId\" }`; the hint always says what to do next. POSTs accept `Idempotency-Key`. Lists use cursor pagination (`nextCursor`).\nRate limits per minute: anonymous 120 reads, 30 runs, 10 writes; with an API key or OAuth 1200, 300 and 60.\n\nThe software provides legal information and document preparation, sold by Jonathan Kleiman. Legal advice starts at the lawyer boundary and is provided by Mithril Law under an engagement.","contact":{"name":"Jonathan M. Kleiman","email":"jonathan@mithril.law","url":"https://mithril.law/agents"}},"servers":[{"url":"https://mithril.law/api/v1"}],"externalDocs":{"description":"Developer docs","url":"https://mithril.law/agents"},"tags":[{"name":"operations","description":"What the layer can do."},{"name":"runs","description":"Running operations; results, receipts and documents."},{"name":"law","description":"Rules and sources: the verification register."},{"name":"receipts","description":"Signed receipts and their verification."},{"name":"practice","description":"The lawyer handoff, slots and bookings."},{"name":"webhooks","description":"Signed event delivery."},{"name":"portal","description":"Delegated access for an agent acting for a client."},{"name":"tools","description":"Tools that are not operations: the handoff, bookings, receipts, rules, prices."},{"name":"meta","description":"Prices and discovery."},{"name":"corporate","description":"Operations in corporate."},{"name":"criminal","description":"Operations in criminal."},{"name":"employment","description":"Operations in employment."},{"name":"general","description":"Operations in general."},{"name":"ltb","description":"Operations in ltb."},{"name":"small-claims","description":"Operations in small-claims."}],"security":[{},{"apiKey":[]},{"oauth2":[]}],"paths":{"/":{"get":{"operationId":"api_index","tags":["meta"],"summary":"Where everything is","security":[{},{"apiKey":[]},{"oauth2":[]}],"responses":{"200":{"description":"Links to every surface.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}}}}},"/operations":{"get":{"operationId":"list_operations","tags":["operations"],"summary":"List published operations","description":"Every operation production may serve: schemas, guidance, price and verification status. Outside production, unverified operations are listed too, marked `unverified`.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"name":"area","in":"query","required":false,"description":"Filter by area.","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Filter by kind.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1 to 200, default 50).","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"`nextCursor` from the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of operations.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationList"}}}},"429":{"$ref":"#/components/responses/E429"}}}},"/operations/{id}":{"get":{"operationId":"get_operation","tags":["operations"],"summary":"Get one operation","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Operation id, for example `employment.severance_check`.","schema":{"type":"string"}}],"responses":{"200":{"description":"The operation.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Operation"}}}},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/operations/{id}/runs":{"post":{"operationId":"run_operation","tags":["runs"],"summary":"Run any operation","description":"Body: `{ \"input\": { …facts } }`, validated against the operation's input schema. Each operation also has its own typed path below. Every run returns a receipt signed with the site’s Ed25519 key (JWS, EdDSA). It records the operation, hashes of the facts and the answer, and each rule’s version and verification status. Verify it offline against /.well-known/jwks.json or with POST /api/v1/receipts/verify.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Operation id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}}}}},"responses":{"201":{"description":"The run.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/operations/{id}/run":{"get":{"operationId":"get_run_operation","tags":["runs"],"summary":"Run any operation from a URL","description":"For read-only operations whose facts do not identify a person: the facts as dotted query parameters (`pay.annualSalary=104000`) or `facts=<url-encoded JSON>`. Always 200 unless the operation does not exist or needs sign-in: `object` is `run`, `missing_facts` (each fact with its title, description, type and the URL to fetch next) or `post_required` (the operation needs POST, MCP or the person's page).","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Operation id.","schema":{"type":"string"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, the facts still needed, or how to proceed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Run"},{"$ref":"#/components/schemas/MissingFacts"},{"$ref":"#/components/schemas/PostRequired"}]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/operations/corporate.annual_maintenance/runs":{"post":{"operationId":"run_corporate_annual_maintenance","tags":["corporate"],"summary":"The year’s resolutions and annual return","description":"Use this when a corporation has closed a financial year and needs the year's resolutions, its annual return deadline and its register updates. Ontario and federal corporations. Do not use it before the financial year has ended, or to file the annual return (the person files it). Next: the directors and shareholders sign the resolutions; corporate_share_issuance or corporate_isc_register when shares or control change.\n\nFor founders on the founder plan: the year’s director and shareholder resolutions, the annual return and its deadline, and the register updates.\n\nUse after a financial year ends. Give a companyId from the founder plan, or the corporation’s details. Ask which financial year end is being closed, whether every shareholder agrees to go without an auditor, and whether the directors to be elected can serve. The answer gives the due dates with citations and the resolutions to sign. If a shareholder does not agree to go without an auditor, an auditor must be appointed and the answer hands off to a lawyer.\n\nPrice: CAD 299 per company per year plus HST (sku `corporate.founder_plan`, Jonathan Kleiman (software and consulting)). Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: `corporate/deadlines/annual-meeting` (unverified), `corporate/deadlines/annual-return` (unverified), `corporate/audit-exemption` (unverified), `corporate/directors/qualifications` (unverified), `corporate/directors/residency` (unverified), `corporate/isc/register` (unverified), `corporate/documents/annual-resolutions` (unverified). Availability: unverified.\nMCP tool: `corporate_annual_maintenance`. Markdown: https://mithril.law/corporate/annual-maintenance.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"fiscalYearEnded":{"type":"string","title":"Which year end are you closing?","description":"The last day of the financial year the resolutions are for, for example December 31, 2026.","format":"date"},"companyId":{"type":"string","minLength":3,"maxLength":64,"title":"Company","description":"A company on your founder plan. Leave empty and fill in the corporation instead."},"company":{"type":"object","properties":{"jurisdiction":{"anyOf":[{"type":"string","const":"on","title":"Ontario","description":"Under the Business Corporations Act (Ontario)."},{"type":"string","const":"ca","title":"Federal","description":"Under the Canada Business Corporations Act."}],"title":"Where the corporation is incorporated"},"name":{"type":"string","minLength":3,"maxLength":120,"title":"Corporate name","description":"Exactly as on the certificate of incorporation."},"incorporatedOn":{"type":"string","title":"Date of incorporation","description":"The date on the certificate of incorporation.","format":"date"},"fiscalYearEnd":{"default":"12-31","title":"Fiscal year end","description":"Month and day the financial year ends, for example 12-31 for December 31.","type":"string","pattern":"^(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"registeredOffice":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit or suite if there is one. A post office box alone is not accepted."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"province":{"default":"Ontario","title":"Province or territory","type":"string","enum":["Ontario","Quebec","British Columbia","Alberta","Manitoba","Saskatchewan","Nova Scotia","New Brunswick","Newfoundland and Labrador","Prince Edward Island","Yukon","Northwest Territories","Nunavut"]},"postalCode":{"type":"string","pattern":"^[A-Za-z]\\d[A-Za-z] ?\\d[A-Za-z]\\d$","title":"Postal code","description":"For example M5V 2T6."}},"required":["street","city","postalCode"],"title":"Registered office"},"directors":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address for service"},"residentCanadian":{"type":"boolean","title":"Resident Canadian","description":"Yes if this person is a Canadian citizen who ordinarily lives in Canada, or a permanent resident who ordinarily lives in Canada (and has not been eligible to apply for citizenship for more than a year). A federal corporation needs enough of these directors."},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."}},"required":["fullName","address","residentCanadian"],"title":"Director"},"title":"Current directors"},"officers":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"office":{"type":"string","enum":["President","Secretary","Treasurer","Chief Executive Officer","Chief Financial Officer","Chair","Vice-President"],"title":"Office","description":"The title this person holds. One person can hold several offices."}},"required":["fullName","office"],"title":"Officer"},"title":"Current officers"},"shareholders":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Shareholder’s full legal name","description":"As it appears on government ID."},"kind":{"default":"individual","title":"Type of shareholder","description":"individual: a person. corporation: a company, such as a holding company.","type":"string","enum":["individual","corporation"]},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address","description":"For an individual, their residential address."},"holdings":{"minItems":1,"type":"array","items":{"type":"object","properties":{"shareClass":{"default":"Common shares","title":"Class of shares","description":"As named in the articles, for example Common shares.","type":"string","minLength":1},"shares":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000000,"title":"Number of shares held"}},"required":["shares"],"title":"Holding"},"title":"Shares held"},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."},"details":{"type":"object","properties":{"dateOfBirth":{"type":"string","title":"Date of birth","description":"For the register of individuals with significant control.","format":"date"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes"},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship","description":"Federal corporations must record it."},"addressForService":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address for service","description":"Federal only, if the person wants this published instead of their home address."}},"title":"Details for the register of individuals with significant control"},"controllers":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"residentialAddress":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Residential address"},"dateOfBirth":{"type":"string","title":"Date of birth","description":"For the register of individuals with significant control.","format":"date"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes"},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship"}},"required":["fullName"],"title":"Individual who controls or directs the shares"},"title":"Individuals who control this corporation’s shares","description":"Only for a corporate shareholder."}},"required":["fullName","address","holdings"],"title":"Shareholder"},"title":"Current shareholders"},"shareClasses":{"default":[{"name":"Common shares","votesPerShare":1,"fairMarketValuePerShare":"1"}],"title":"Share classes in the articles","minItems":1,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"title":"Class name","description":"As named in the articles."},"votesPerShare":{"default":1,"title":"Votes per share","description":"0 for non-voting shares.","type":"integer","minimum":0,"maximum":1000},"fairMarketValuePerShare":{"default":"1","title":"Fair market value per share (CAD)","description":"Only matters if there is more than one class. Used for the 25% test by value.","type":"string"}},"required":["name"],"title":"Share class"}},"corporationNumber":{"type":"string","maxLength":30,"title":"Corporation number"},"lastAnnualMeeting":{"type":"string","title":"Last annual meeting","description":"The date of the last annual meeting or the last annual shareholder resolutions. Leave empty if there has not been one.","format":"date"},"shareholderAgreementInPlace":{"default":false,"title":"Shareholder agreement in place","type":"boolean"},"unanimousShareholderAgreement":{"default":false,"title":"Unanimous shareholder agreement","description":"Yes if the shareholders signed an agreement that restricts the directors’ powers.","type":"boolean"},"articlesGrantPreemptiveRights":{"default":false,"title":"Articles give pre-emptive rights","description":"Yes if the articles give existing shareholders the first right to buy new shares.","type":"boolean"}},"required":["jurisdiction","name","incorporatedOn","registeredOffice","directors","officers","shareholders"],"title":"The corporation"},"allShareholdersAgreeNoAuditor":{"default":true,"title":"Every shareholder agrees to no auditor","description":"Yes if every shareholder, including any with non-voting shares, agrees the company will not appoint an auditor.","type":"boolean"},"directorsToElect":{"maxItems":20,"type":"array","items":{"type":"string","minLength":2,"maxLength":120},"title":"Directors to elect","description":"Full names. Leave empty to re-elect the current directors."},"directorsConfirmedQualified":{"type":"boolean","title":"Every director can serve","description":"Confirm each director to be elected is at least 18, not bankrupt and not found incapable."}},"required":["fiscalYearEnded","directorsConfirmedQualified"],"title":"Annual maintenance"}}},"examples":{"example1":{"summary":"Ontario company closing 2026","value":{"input":{"fiscalYearEnded":"2026-12-31","allShareholdersAgreeNoAuditor":true,"directorsConfirmedQualified":true,"company":{"jurisdiction":"on","name":"Maple Robotics Inc.","incorporatedOn":"2026-03-15","fiscalYearEnd":"12-31","registeredOffice":{"street":"100 King Street West, Suite 5700","city":"Toronto","province":"Ontario","postalCode":"M5X 1C7"},"directors":[{"fullName":"Alex Founder","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"residentCanadian":true}],"officers":[{"fullName":"Alex Founder","office":"President"}],"shareholders":[{"fullName":"Alex Founder","kind":"individual","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"holdings":[{"shareClass":"Common shares","shares":1000000}]}],"shareClasses":[{"name":"Common shares","votesPerShare":1,"fairMarketValuePerShare":"1"}],"shareholderAgreementInPlace":false,"unanimousShareholderAgreement":false,"articlesGrantPreemptiveRights":false}}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"corporationName":{"type":"string"},"fiscalYearEnded":{"type":"string"},"annualResolutions":{"type":"object","properties":{"due":{"type":"string"},"statutoryLatest":{"type":"string"},"statementsLatest":{"type":"string"},"sendStatementsBy":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["due","statutoryLatest","statementsLatest","sendStatementsBy","cites"]},"annualReturn":{"type":"object","properties":{"opens":{"type":"string"},"due":{"type":"string"},"feeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"where":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["opens","due","feeCents","where","steps","cites"]},"auditor":{"type":"object","properties":{"exempt":{"type":"boolean"},"reason":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["exempt","reason","cites"]},"registerUpdates":{"type":"array","items":{"type":"object","properties":{"register":{"type":"string"},"change":{"type":"string"}},"required":["register","change"]}},"documents":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]}}},"required":["corporationName","fiscalYearEnded","annualResolutions","annualReturn","auditor","registerUpdates","documents"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"corporate.annual_maintenance","version":1,"title":"The year’s resolutions and annual return"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"corporationName":"text","fiscalYearEnded":"text","annualResolutions":{"due":"text","statutoryLatest":"text","statementsLatest":"text","sendStatementsBy":"text","cites":[{"sourceId":"text","label":"text","url":"text"}]},"annualReturn":{"opens":"text","due":"text","feeCents":1,"where":"text","steps":["text"],"cites":[{"sourceId":"text","label":"text","url":"text"}]},"auditor":{"exempt":false,"reason":"text","cites":[{"sourceId":"text","label":"text","url":"text"}]},"registerUpdates":[{"register":"text","change":"text"}],"documents":[{"key":"text","title":"text"}]},"summary":"The year’s resolutions and annual return: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"corporate/deadlines/annual-meeting","title":"Annual shareholder business deadline","status":"unverified"},{"id":"corporate/deadlines/annual-return","title":"Annual return deadline","status":"unverified"},{"id":"corporate/audit-exemption","title":"No auditor","status":"unverified"},{"id":"corporate/directors/qualifications","title":"Who can be a director","status":"unverified"},{"id":"corporate/directors/residency","title":"Resident Canadian directors","status":"unverified"},{"id":"corporate/isc/register","title":"Keeping the register of individuals with significant control","status":"unverified"},{"id":"corporate/documents/annual-resolutions","title":"Annual resolutions","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"corporate.annual_maintenance","version":1,"kind":"prepare","audience":["person","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":false},"price":{"sku":"corporate.founder_plan","title":"Founder plan","label":"CAD 299 per company per year plus HST","amount":29900,"currency":"CAD","kind":"subscription","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"Each year’s resolutions and annual return prepared, share issuances recorded, and the registers kept current."},"personalData":true}}},"/operations/corporate.incorporation_plan/runs":{"post":{"operationId":"run_corporate_incorporation_plan","tags":["corporate"],"summary":"Where to incorporate, and what it costs","description":"Use this when a founder wants to start a company in Ontario and needs to know whether to incorporate in Ontario or federally, the steps in order and the total cost. Ontario and federal business corporations for a business in Ontario. Do not use it for a business run outside Ontario, for a non-profit, or to prepare the documents (corporate_incorporation_prepare). Next: corporate_incorporation_prepare for the package; handoff_create when the plan says a lawyer is needed.\n\nFor founders: Ontario or federal incorporation, the steps in order, and the whole cost, itemized, before you pay anything.\n\nCall this first when someone wants to start a company. Ask where the business will operate, how many founders there are and how many are Canadian citizens or permanent residents living in Canada, whether they want a chosen name or a numbered company, the share structure, and whether they plan to raise money soon. The answer is a recommendation with reasons, the filing steps with citations, and the total cost in cents. If it says a lawyer is needed, offer the handoff.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `corporate/jurisdiction/choice` (unverified), `corporate/directors/residency` (unverified), `corporate/fees/incorporation` (unverified), `corporate/plan/boundary` (unverified), `corporate/incorporation/timing` (unverified), `corporate/incorporation/name` (unverified), `corporate/deadlines/initial-return` (unverified), `corporate/deadlines/annual-return` (unverified), `corporate/isc/register` (unverified). Availability: unverified.\nMCP tool: `corporate_incorporation_plan`. Markdown: https://mithril.law/corporate/incorporation-plan.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"operatesIn":{"type":"string","enum":["ontario_only","multiple_provinces","national_or_international"],"title":"Where will the business operate?","description":"ontario_only: only in Ontario. multiple_provinces: in Ontario and other provinces. national_or_international: across Canada or outside Canada."},"founders":{"type":"integer","minimum":1,"maximum":20,"title":"Number of founders","description":"Everyone who will own the company at the start. The plan assumes each founder is also a director."},"residentCanadianFounders":{"type":"integer","minimum":0,"maximum":20,"title":"Founders who are resident Canadians","description":"How many founders are Canadian citizens or permanent residents who ordinarily live in Canada."},"name":{"type":"string","enum":["word_name","numbered"],"title":"What will it be called?","description":"word_name: a name you choose, such as Maple Robotics Inc. numbered: the registry assigns a number, such as 1234567 Ontario Inc."},"shareStructure":{"default":"common_only","title":"What shares will it have?","description":"common_only: one class of common shares (the simple choice). common_and_preferred: common shares plus preferred shares. other: anything else.","type":"string","enum":["common_only","common_and_preferred","other"]},"raisingMoneySoon":{"default":false,"title":"Raising money within 12 months","description":"Yes if you expect to take money from investors, including a SAFE or convertible note, in the next 12 months.","type":"boolean"},"shareholderAgreementInPlace":{"default":false,"title":"Shareholder agreement in place","description":"Yes if the founders already have a signed shareholder agreement.","type":"boolean"},"startDate":{"type":"string","title":"When should it start?","description":"The date you want the company to exist. Leave empty for as soon as possible.","format":"date"}},"required":["operatesIn","founders","residentCanadianFounders","name"],"title":"Incorporation plan"}}},"examples":{"example1":{"summary":"One founder, Ontario only, numbered company","value":{"input":{"operatesIn":"ontario_only","founders":1,"residentCanadianFounders":1,"name":"numbered","shareStructure":"common_only","raisingMoneySoon":false,"shareholderAgreementInPlace":false}}},"example2":{"summary":"Two founders selling across Canada","value":{"input":{"operatesIn":"national_or_international","founders":2,"residentCanadianFounders":2,"name":"word_name","shareStructure":"common_only","raisingMoneySoon":false,"shareholderAgreementInPlace":false}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"jurisdiction":{"type":"string","enum":["on","ca"]},"jurisdictionName":{"type":"string"},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["code","text","cites"]}},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["label","detail","cites"]}},"youWillNeed":{"type":"array","items":{"type":"string"}},"cost":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceId":{"type":"string"},"sku":{"type":"string"}},"required":["label","cents"]}},"governmentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mithrilCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"string"},"excluded":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"reason":{"type":"string"}},"required":["label","reason"]}}},"required":["lines","governmentCents","mithrilCents","totalCents","total","excluded"]},"timing":{"type":"object","properties":{"serviceTime":{"type":"string"},"earliestFilingDate":{"type":"string"},"requestEffectiveDate":{"type":"string"},"text":{"type":"string"}},"required":["serviceTime","earliestFilingDate","text"]},"afterIncorporation":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["label","detail","cites"]}},"lawyerNeededFor":{"type":"array","items":{"type":"string","enum":["shareholder_agreement","share_structure","financing"]}},"nextActions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"sku":{"type":"string"},"operation":{"type":"string"}},"required":["id","label"]}}},"required":["jurisdiction","jurisdictionName","reasons","steps","youWillNeed","cost","timing","afterIncorporation","lawyerNeededFor","nextActions"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"corporate.incorporation_plan","version":1,"title":"Where to incorporate, and what it costs"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"jurisdiction":"on","jurisdictionName":"Ontario (Business Corporations Act)","reasons":[{"code":"ontario_only","text":"The business will operate only in Ontario. An Ontario corporation deals with one registry, files its annual return for free, and has no resident Canadian director rule.","cites":[{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"},{"sourceId":"on/obca/s-118","label":"Business Corporations Act, s. 118","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obr/notice-incorporating","label":"Notice – Business Corporations Act – Incorporating a Business Corporation (Notice – BCA 1-002)","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00224"}]}],"steps":[{"label":"Prepare the articles and the organizational documents","detail":"The incorporation package gives you a data sheet for every field of the articles, the by-law, resolutions, subscriptions, consents, registers and a minute book index.","cites":[{"sourceId":"on/obca/s-5","label":"Business Corporations Act, s. 5(1)","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-117","label":"Business Corporations Act, s. 117","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"File the articles online in the Ontario Business Registry","detail":"Sign in with your Ontario.ca login, have each incorporator sign the articles, and pay the CAD 300 fee. The certificate and your company key arrive by email.","cites":[{"sourceId":"on/obr/notice-incorporating","label":"Notice – Business Corporations Act – Incorporating a Business Corporation (Notice – BCA 1-002)","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00224"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]},{"label":"Sign the organizational documents and issue the shares","detail":"Directors sign their resolutions and consents; each shareholder signs a subscription and pays for their shares; shareholders then sign their resolutions.","cites":[{"sourceId":"on/obca/s-129","label":"Business Corporations Act, s. 129","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-104","label":"Business Corporations Act, s. 104","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-23","label":"Business Corporations Act, s. 23(3)","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"File the initial return within 60 days","detail":"In the Ontario Business Registry, with your company key. There is no fee.","cites":[{"sourceId":"on/cia/s-2","label":"Corporations Information Act, s. 2(2)","url":"https://www.ontario.ca/laws/statute/90c39"},{"sourceId":"on/obr/notice-initial-return","label":"Notice – Corporations Information Act – Filing an Initial Return and Notice of Change – Ontario Corporations","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00230"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]}],"youWillNeed":["For each founder: full legal name and an address for service","No resident Canadian director is required","A registered office address (a physical address, not only a post office box)","An email address for the corporation","A description of the main business activity (for the NAICS code)","An Ontario.ca login for the Ontario Business Registry","A credit or debit card for the government fee"],"cost":{"lines":[{"label":"Ontario articles of incorporation, filed online","cents":30000,"sourceId":"on/obr/fees"},{"label":"Ontario initial return (Ontario corporation)","cents":0,"sourceId":"on/obr/fees"},{"label":"Mithril incorporation package","cents":39900,"sku":"corporate.incorporation"}],"governmentCents":30000,"mithrilCents":39900,"totalCents":69900,"excluded":[],"total":"CAD 699"},"timing":{"serviceTime":"immediate","earliestFilingDate":"2026-09-23","text":"Ontario processes online articles immediately."},"afterIncorporation":[{"label":"Annual return","detail":"Every year, within six months after the end of the corporation’s tax year, in the Ontario Business Registry. No fee.","cites":[{"sourceId":"on/cia/s-3.1","label":"Corporations Information Act, s. 3.1","url":"https://www.ontario.ca/laws/statute/90c39"},{"sourceId":"on/cia-reg-400-21/s-3","label":"Corporations Information Act General Regulation, O. Reg. 400/21, s. 3","url":"https://www.ontario.ca/laws/regulation/210400"},{"sourceId":"on/obr/notice-annual-return","label":"Notice – Corporations Information Act – Filing an Annual Return","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00229"}]},{"label":"Annual shareholder and director resolutions","detail":"Approve the financial statements, elect directors, appoint officers and, if every shareholder agrees, do without an auditor. Written resolutions can replace the meetings.","cites":[{"sourceId":"on/obca/s-94","label":"Business Corporations Act, s. 94(1)","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-104","label":"Business Corporations Act, s. 104(1)","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-148","label":"Business Corporations Act, s. 148","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"Register of individuals with significant control","detail":"Keep it at the registered office and review it at least once a year. Ontario corporations do not file it.","cites":[{"sourceId":"on/obca/s-140.2","label":"Business Corporations Act, s. 140.2","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/cia/s-6.1","label":"Corporations Information Act, s. 6.1","url":"https://www.ontario.ca/laws/statute/90c39"}]},{"label":"Changes","detail":"Report changes to directors, officers or the registered office within 15 days with a notice of change. No fee.","cites":[{"sourceId":"on/cia/s-4","label":"Corporations Information Act, s. 4","url":"https://www.ontario.ca/laws/statute/90c39"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]}],"lawyerNeededFor":[],"nextActions":[{"id":"buy","label":"Prepare the package","sku":"corporate.incorporation","operation":"corporate.incorporation_prepare"}]},"headline":{"label":"In all, with HST","value":"CAD 750.87"},"summary":"Incorporate in Ontario. CAD 300 goes to the registry, and the package is CAD 399 plus HST, paid to Jonathan Kleiman. CAD 750.87 in all.","steps":[{"label":"Where to incorporate","value":"Ontario (Business Corporations Act)","detail":"The business will operate only in Ontario. An Ontario corporation deals with one registry, files its annual return for free, and has no resident Canadian director rule.","cites":[{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"},{"sourceId":"on/obca/s-118","label":"Business Corporations Act, s. 118","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obr/notice-incorporating","label":"Notice – Business Corporations Act – Incorporating a Business Corporation (Notice – BCA 1-002)","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00224"}]},{"label":"Ontario articles of incorporation, filed online","value":"CAD 300","cites":[{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]},{"label":"Ontario initial return (Ontario corporation)","value":"No fee","cites":[{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]},{"label":"Mithril incorporation package","value":"CAD 399"},{"label":"HST on the package (13%)","value":"CAD 51.87"},{"label":"Total, with HST","value":"CAD 750.87"},{"label":"Step 1: Prepare the articles and the organizational documents","detail":"The incorporation package gives you a data sheet for every field of the articles, the by-law, resolutions, subscriptions, consents, registers and a minute book index.","cites":[{"sourceId":"on/obca/s-5","label":"Business Corporations Act, s. 5(1)","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-117","label":"Business Corporations Act, s. 117","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"Step 2: File the articles online in the Ontario Business Registry","detail":"Sign in with your Ontario.ca login, have each incorporator sign the articles, and pay the CAD 300 fee. The certificate and your company key arrive by email.","cites":[{"sourceId":"on/obr/notice-incorporating","label":"Notice – Business Corporations Act – Incorporating a Business Corporation (Notice – BCA 1-002)","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00224"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]},{"label":"Step 3: Sign the organizational documents and issue the shares","detail":"Directors sign their resolutions and consents; each shareholder signs a subscription and pays for their shares; shareholders then sign their resolutions.","cites":[{"sourceId":"on/obca/s-129","label":"Business Corporations Act, s. 129","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-104","label":"Business Corporations Act, s. 104","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-23","label":"Business Corporations Act, s. 23(3)","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"Step 4: File the initial return within 60 days","detail":"In the Ontario Business Registry, with your company key. There is no fee.","cites":[{"sourceId":"on/cia/s-2","label":"Corporations Information Act, s. 2(2)","url":"https://www.ontario.ca/laws/statute/90c39"},{"sourceId":"on/obr/notice-initial-return","label":"Notice – Corporations Information Act – Filing an Initial Return and Notice of Change – Ontario Corporations","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00230"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]}],"boundary":{"kind":"automated","actions":[{"id":"buy","label":"Prepare the package","sku":"corporate.incorporation","operation":"corporate.incorporation_prepare","href":"/corporate/incorporation-prepare?jurisdiction=on&shareholderAgreementInPlace=false"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"corporate/jurisdiction/choice","title":"Ontario or federal incorporation","status":"unverified"},{"id":"corporate/directors/residency","title":"Resident Canadian directors","status":"unverified"},{"id":"corporate/fees/incorporation","title":"Total cost of incorporating","status":"unverified"},{"id":"corporate/plan/boundary","title":"When the plan needs a lawyer","status":"unverified"},{"id":"corporate/incorporation/timing","title":"How long incorporation takes","status":"unverified"},{"id":"corporate/incorporation/name","title":"Name search and legal ending","status":"unverified"},{"id":"corporate/deadlines/initial-return","title":"Initial return deadline","status":"unverified"},{"id":"corporate/deadlines/annual-return","title":"Annual return deadline","status":"unverified"},{"id":"corporate/isc/register","title":"Keeping the register of individuals with significant control","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"corporate.incorporation_plan","version":1,"kind":"guide","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/corporate.incorporation_plan/run":{"get":{"operationId":"get_corporate_incorporation_plan","tags":["corporate"],"summary":"Where to incorporate, and what it costs (from a URL)","description":"Use this when a founder wants to start a company in Ontario and needs to know whether to incorporate in Ontario or federally, the steps in order and the total cost. Ontario and federal business corporations for a business in Ontario. Do not use it for a business run outside Ontario, for a non-profit, or to prepare the documents (corporate_incorporation_prepare). Next: corporate_incorporation_prepare for the package; handoff_create when the plan says a lawyer is needed.\n\nFor founders: Ontario or federal incorporation, the steps in order, and the whole cost, itemized, before you pay anything.\n\nCall this first when someone wants to start a company. Ask where the business will operate, how many founders there are and how many are Canadian citizens or permanent residents living in Canada, whether they want a chosen name or a numbered company, the share structure, and whether they plan to raise money soon. The answer is a recommendation with reasons, the filing steps with citations, and the total cost in cents. If it says a lawyer is needed, offer the handoff.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `corporate/jurisdiction/choice` (unverified), `corporate/directors/residency` (unverified), `corporate/fees/incorporation` (unverified), `corporate/plan/boundary` (unverified), `corporate/incorporation/timing` (unverified), `corporate/incorporation/name` (unverified), `corporate/deadlines/initial-return` (unverified), `corporate/deadlines/annual-return` (unverified), `corporate/isc/register` (unverified). Availability: unverified.\nMCP tool: `corporate_incorporation_plan`. Markdown: https://mithril.law/corporate/incorporation-plan.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/corporate.incorporation_plan/run?operatesIn=ontario_only&founders=1&residentCanadianFounders=1&name=numbered&shareStructure=common_only&raisingMoneySoon=false&shareholderAgreementInPlace=false","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"operatesIn","in":"query","required":true,"description":"ontario_only: only in Ontario. multiple_provinces: in Ontario and other provinces. national_or_international: across Canada or outside Canada.","schema":{"type":"string","enum":["ontario_only","multiple_provinces","national_or_international"],"title":"Where will the business operate?","description":"ontario_only: only in Ontario. multiple_provinces: in Ontario and other provinces. national_or_international: across Canada or outside Canada."}},{"name":"founders","in":"query","required":true,"description":"Everyone who will own the company at the start. The plan assumes each founder is also a director.","schema":{"type":"integer","minimum":1,"maximum":20,"title":"Number of founders","description":"Everyone who will own the company at the start. The plan assumes each founder is also a director."}},{"name":"residentCanadianFounders","in":"query","required":true,"description":"How many founders are Canadian citizens or permanent residents who ordinarily live in Canada.","schema":{"type":"integer","minimum":0,"maximum":20,"title":"Founders who are resident Canadians","description":"How many founders are Canadian citizens or permanent residents who ordinarily live in Canada."}},{"name":"name","in":"query","required":true,"description":"word_name: a name you choose, such as Maple Robotics Inc. numbered: the registry assigns a number, such as 1234567 Ontario Inc.","schema":{"type":"string","enum":["word_name","numbered"],"title":"What will it be called?","description":"word_name: a name you choose, such as Maple Robotics Inc. numbered: the registry assigns a number, such as 1234567 Ontario Inc."}},{"name":"shareStructure","in":"query","required":false,"description":"common_only: one class of common shares (the simple choice). common_and_preferred: common shares plus preferred shares. other: anything else.","schema":{"default":"common_only","title":"What shares will it have?","description":"common_only: one class of common shares (the simple choice). common_and_preferred: common shares plus preferred shares. other: anything else.","type":"string","enum":["common_only","common_and_preferred","other"]}},{"name":"raisingMoneySoon","in":"query","required":false,"description":"Yes if you expect to take money from investors, including a SAFE or convertible note, in the next 12 months.","schema":{"default":false,"title":"Raising money within 12 months","description":"Yes if you expect to take money from investors, including a SAFE or convertible note, in the next 12 months.","type":"boolean"}},{"name":"shareholderAgreementInPlace","in":"query","required":false,"description":"Yes if the founders already have a signed shareholder agreement.","schema":{"default":false,"title":"Shareholder agreement in place","description":"Yes if the founders already have a signed shareholder agreement.","type":"boolean"}},{"name":"startDate","in":"query","required":false,"description":"The date you want the company to exist. Leave empty for as soon as possible.","schema":{"type":"string","title":"When should it start?","description":"The date you want the company to exist. Leave empty for as soon as possible.","format":"date"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"jurisdiction":{"type":"string","enum":["on","ca"]},"jurisdictionName":{"type":"string"},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["code","text","cites"]}},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["label","detail","cites"]}},"youWillNeed":{"type":"array","items":{"type":"string"}},"cost":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceId":{"type":"string"},"sku":{"type":"string"}},"required":["label","cents"]}},"governmentCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mithrilCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"string"},"excluded":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"reason":{"type":"string"}},"required":["label","reason"]}}},"required":["lines","governmentCents","mithrilCents","totalCents","total","excluded"]},"timing":{"type":"object","properties":{"serviceTime":{"type":"string"},"earliestFilingDate":{"type":"string"},"requestEffectiveDate":{"type":"string"},"text":{"type":"string"}},"required":["serviceTime","earliestFilingDate","text"]},"afterIncorporation":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["label","detail","cites"]}},"lawyerNeededFor":{"type":"array","items":{"type":"string","enum":["shareholder_agreement","share_structure","financing"]}},"nextActions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"sku":{"type":"string"},"operation":{"type":"string"}},"required":["id","label"]}}},"required":["jurisdiction","jurisdictionName","reasons","steps","youWillNeed","cost","timing","afterIncorporation","lawyerNeededFor","nextActions"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"corporate.incorporation_plan","version":1,"title":"Where to incorporate, and what it costs"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"jurisdiction":"on","jurisdictionName":"Ontario (Business Corporations Act)","reasons":[{"code":"ontario_only","text":"The business will operate only in Ontario. An Ontario corporation deals with one registry, files its annual return for free, and has no resident Canadian director rule.","cites":[{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"},{"sourceId":"on/obca/s-118","label":"Business Corporations Act, s. 118","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obr/notice-incorporating","label":"Notice – Business Corporations Act – Incorporating a Business Corporation (Notice – BCA 1-002)","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00224"}]}],"steps":[{"label":"Prepare the articles and the organizational documents","detail":"The incorporation package gives you a data sheet for every field of the articles, the by-law, resolutions, subscriptions, consents, registers and a minute book index.","cites":[{"sourceId":"on/obca/s-5","label":"Business Corporations Act, s. 5(1)","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-117","label":"Business Corporations Act, s. 117","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"File the articles online in the Ontario Business Registry","detail":"Sign in with your Ontario.ca login, have each incorporator sign the articles, and pay the CAD 300 fee. The certificate and your company key arrive by email.","cites":[{"sourceId":"on/obr/notice-incorporating","label":"Notice – Business Corporations Act – Incorporating a Business Corporation (Notice – BCA 1-002)","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00224"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]},{"label":"Sign the organizational documents and issue the shares","detail":"Directors sign their resolutions and consents; each shareholder signs a subscription and pays for their shares; shareholders then sign their resolutions.","cites":[{"sourceId":"on/obca/s-129","label":"Business Corporations Act, s. 129","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-104","label":"Business Corporations Act, s. 104","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-23","label":"Business Corporations Act, s. 23(3)","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"File the initial return within 60 days","detail":"In the Ontario Business Registry, with your company key. There is no fee.","cites":[{"sourceId":"on/cia/s-2","label":"Corporations Information Act, s. 2(2)","url":"https://www.ontario.ca/laws/statute/90c39"},{"sourceId":"on/obr/notice-initial-return","label":"Notice – Corporations Information Act – Filing an Initial Return and Notice of Change – Ontario Corporations","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00230"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]}],"youWillNeed":["For each founder: full legal name and an address for service","No resident Canadian director is required","A registered office address (a physical address, not only a post office box)","An email address for the corporation","A description of the main business activity (for the NAICS code)","An Ontario.ca login for the Ontario Business Registry","A credit or debit card for the government fee"],"cost":{"lines":[{"label":"Ontario articles of incorporation, filed online","cents":30000,"sourceId":"on/obr/fees"},{"label":"Ontario initial return (Ontario corporation)","cents":0,"sourceId":"on/obr/fees"},{"label":"Mithril incorporation package","cents":39900,"sku":"corporate.incorporation"}],"governmentCents":30000,"mithrilCents":39900,"totalCents":69900,"excluded":[],"total":"CAD 699"},"timing":{"serviceTime":"immediate","earliestFilingDate":"2026-09-23","text":"Ontario processes online articles immediately."},"afterIncorporation":[{"label":"Annual return","detail":"Every year, within six months after the end of the corporation’s tax year, in the Ontario Business Registry. No fee.","cites":[{"sourceId":"on/cia/s-3.1","label":"Corporations Information Act, s. 3.1","url":"https://www.ontario.ca/laws/statute/90c39"},{"sourceId":"on/cia-reg-400-21/s-3","label":"Corporations Information Act General Regulation, O. Reg. 400/21, s. 3","url":"https://www.ontario.ca/laws/regulation/210400"},{"sourceId":"on/obr/notice-annual-return","label":"Notice – Corporations Information Act – Filing an Annual Return","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00229"}]},{"label":"Annual shareholder and director resolutions","detail":"Approve the financial statements, elect directors, appoint officers and, if every shareholder agrees, do without an auditor. Written resolutions can replace the meetings.","cites":[{"sourceId":"on/obca/s-94","label":"Business Corporations Act, s. 94(1)","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-104","label":"Business Corporations Act, s. 104(1)","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-148","label":"Business Corporations Act, s. 148","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"Register of individuals with significant control","detail":"Keep it at the registered office and review it at least once a year. Ontario corporations do not file it.","cites":[{"sourceId":"on/obca/s-140.2","label":"Business Corporations Act, s. 140.2","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/cia/s-6.1","label":"Corporations Information Act, s. 6.1","url":"https://www.ontario.ca/laws/statute/90c39"}]},{"label":"Changes","detail":"Report changes to directors, officers or the registered office within 15 days with a notice of change. No fee.","cites":[{"sourceId":"on/cia/s-4","label":"Corporations Information Act, s. 4","url":"https://www.ontario.ca/laws/statute/90c39"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]}],"lawyerNeededFor":[],"nextActions":[{"id":"buy","label":"Prepare the package","sku":"corporate.incorporation","operation":"corporate.incorporation_prepare"}]},"headline":{"label":"In all, with HST","value":"CAD 750.87"},"summary":"Incorporate in Ontario. CAD 300 goes to the registry, and the package is CAD 399 plus HST, paid to Jonathan Kleiman. CAD 750.87 in all.","steps":[{"label":"Where to incorporate","value":"Ontario (Business Corporations Act)","detail":"The business will operate only in Ontario. An Ontario corporation deals with one registry, files its annual return for free, and has no resident Canadian director rule.","cites":[{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"},{"sourceId":"on/obca/s-118","label":"Business Corporations Act, s. 118","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obr/notice-incorporating","label":"Notice – Business Corporations Act – Incorporating a Business Corporation (Notice – BCA 1-002)","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00224"}]},{"label":"Ontario articles of incorporation, filed online","value":"CAD 300","cites":[{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]},{"label":"Ontario initial return (Ontario corporation)","value":"No fee","cites":[{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]},{"label":"Mithril incorporation package","value":"CAD 399"},{"label":"HST on the package (13%)","value":"CAD 51.87"},{"label":"Total, with HST","value":"CAD 750.87"},{"label":"Step 1: Prepare the articles and the organizational documents","detail":"The incorporation package gives you a data sheet for every field of the articles, the by-law, resolutions, subscriptions, consents, registers and a minute book index.","cites":[{"sourceId":"on/obca/s-5","label":"Business Corporations Act, s. 5(1)","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-117","label":"Business Corporations Act, s. 117","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"Step 2: File the articles online in the Ontario Business Registry","detail":"Sign in with your Ontario.ca login, have each incorporator sign the articles, and pay the CAD 300 fee. The certificate and your company key arrive by email.","cites":[{"sourceId":"on/obr/notice-incorporating","label":"Notice – Business Corporations Act – Incorporating a Business Corporation (Notice – BCA 1-002)","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00224"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]},{"label":"Step 3: Sign the organizational documents and issue the shares","detail":"Directors sign their resolutions and consents; each shareholder signs a subscription and pays for their shares; shareholders then sign their resolutions.","cites":[{"sourceId":"on/obca/s-129","label":"Business Corporations Act, s. 129","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-104","label":"Business Corporations Act, s. 104","url":"https://www.ontario.ca/laws/statute/90b16"},{"sourceId":"on/obca/s-23","label":"Business Corporations Act, s. 23(3)","url":"https://www.ontario.ca/laws/statute/90b16"}]},{"label":"Step 4: File the initial return within 60 days","detail":"In the Ontario Business Registry, with your company key. There is no fee.","cites":[{"sourceId":"on/cia/s-2","label":"Corporations Information Act, s. 2(2)","url":"https://www.ontario.ca/laws/statute/90c39"},{"sourceId":"on/obr/notice-initial-return","label":"Notice – Corporations Information Act – Filing an Initial Return and Notice of Change – Ontario Corporations","url":"https://forms.mgcs.gov.on.ca/en/dataset/on00230"},{"sourceId":"on/obr/fees","label":"ServiceOntario, Cost and time required to register, change or search for a business name, corporation or not-for-profit","url":"https://www.ontario.ca/page/cost-time-required-to-register-change-search-for-business-name-corporation-not-for-profit"}]}],"boundary":{"kind":"automated","actions":[{"id":"buy","label":"Prepare the package","sku":"corporate.incorporation","operation":"corporate.incorporation_prepare","href":"/corporate/incorporation-prepare?jurisdiction=on&shareholderAgreementInPlace=false"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"corporate/jurisdiction/choice","title":"Ontario or federal incorporation","status":"unverified"},{"id":"corporate/directors/residency","title":"Resident Canadian directors","status":"unverified"},{"id":"corporate/fees/incorporation","title":"Total cost of incorporating","status":"unverified"},{"id":"corporate/plan/boundary","title":"When the plan needs a lawyer","status":"unverified"},{"id":"corporate/incorporation/timing","title":"How long incorporation takes","status":"unverified"},{"id":"corporate/incorporation/name","title":"Name search and legal ending","status":"unverified"},{"id":"corporate/deadlines/initial-return","title":"Initial return deadline","status":"unverified"},{"id":"corporate/deadlines/annual-return","title":"Annual return deadline","status":"unverified"},{"id":"corporate/isc/register","title":"Keeping the register of individuals with significant control","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"corporate.incorporation_plan","version":1,"kind":"guide","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/corporate.incorporation_prepare/runs":{"post":{"operationId":"run_corporate_incorporation_prepare","tags":["corporate"],"summary":"Incorporation package","description":"Use this when a founder has run corporate_incorporation_plan and wants the articles data, by-law, organizational resolutions, subscriptions, registers and minute book. Ontario and federal corporations only. Do not use it before corporate_incorporation_plan, or to file (the person files from their own registry account). Next: give the person the checkout link (the documents are released once they pay); corporate_isc_register once the company exists.\n\nFor founders: every document to incorporate, filled from your answers. The articles data sheet, by-law, organizational resolutions, subscriptions, consents, share certificates, registers and minute book index.\n\nRun the incorporation plan first. Collect: where to incorporate, the name (or numbered), the registered office, each director (name, address for service, whether a resident Canadian, and confirmation they are 18 or older, not bankrupt and not found incapable), the officers, each shareholder with their number of shares and price per share, and the fiscal year end. The person files the articles from their own registry account and signs the documents; nothing is filed for them. Documents are locked until the incorporation package is paid for.\n\nPrice: CAD 399 plus HST. The government filing fee is extra. (sku `corporate.incorporation`, Jonathan Kleiman (software and consulting)). Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: `corporate/incorporation/name` (unverified), `corporate/directors/qualifications` (unverified), `corporate/directors/residency` (unverified), `corporate/deadlines/initial-return` (unverified), `corporate/audit-exemption` (unverified), `corporate/isc/test` (unverified), `corporate/isc/register` (unverified), `corporate/shares/issuance` (unverified), `corporate/records/minute-book` (unverified), `corporate/documents/general-by-law` (unverified), `corporate/documents/organizational-resolutions` (unverified). Availability: unverified.\nMCP tool: `corporate_incorporation_prepare`. Markdown: https://mithril.law/corporate/incorporation-prepare.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"jurisdiction":{"anyOf":[{"type":"string","const":"on","title":"Ontario","description":"Under the Business Corporations Act (Ontario)."},{"type":"string","const":"ca","title":"Federal","description":"Under the Canada Business Corporations Act."}],"title":"Where will you incorporate?","description":"Ontario or federal. The incorporation plan recommends one."},"nameChoice":{"anyOf":[{"type":"string","const":"word_name","title":"A name I choose","description":"For example Maple Robotics Inc."},{"type":"string","const":"numbered","title":"A numbered company","description":"The registry assigns a number, for example 1234567 Ontario Inc."}],"title":"Company name"},"corporateName":{"type":"string","minLength":3,"maxLength":120,"title":"Corporate name","description":"Only for a word name. Include the legal ending, for example Maple Robotics Inc."},"legalEnding":{"default":"Inc.","title":"Legal ending for a numbered name","description":"Only for a numbered company.","type":"string","enum":["Inc.","Ltd.","Corp.","Incorporated","Limited","Corporation"]},"registeredOffice":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit or suite if there is one. A post office box alone is not accepted."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"province":{"default":"Ontario","title":"Province or territory","type":"string","enum":["Ontario","Quebec","British Columbia","Alberta","Manitoba","Saskatchewan","Nova Scotia","New Brunswick","Newfoundland and Labrador","Prince Edward Island","Yukon","Northwest Territories","Nunavut"]},"postalCode":{"type":"string","pattern":"^[A-Za-z]\\d[A-Za-z] ?\\d[A-Za-z]\\d$","title":"Postal code","description":"For example M5V 2T6."}},"required":["street","city","postalCode"],"title":"Registered office","description":"Where the corporation’s records are kept and documents can be served. For an Ontario corporation it must be in Ontario."},"officialEmail":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email for the corporation","description":"The registry sends the certificate and official notices here."},"directors":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address for service","description":"Where documents can be delivered to them. This is on the public record."},"residentCanadian":{"type":"boolean","title":"Resident Canadian","description":"Yes if this person is a Canadian citizen who ordinarily lives in Canada, or a permanent resident who ordinarily lives in Canada (and has not been eligible to apply for citizenship for more than a year). A federal corporation needs enough of these directors."},"confirmedQualified":{"type":"boolean","title":"This person can be a director","description":"Confirm they are at least 18, have not been found incapable of managing property or declared incapable by a court, and are not bankrupt."},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."},"residentialAddress":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Home address","description":"Only if different from the address for service. It goes in the register of directors, not on the public record."}},"required":["fullName","address","residentCanadian","confirmedQualified"],"title":"Director"},"title":"Who are the directors?","description":"Each director signs the articles as an incorporator."},"officers":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"office":{"type":"string","enum":["President","Secretary","Treasurer","Chief Executive Officer","Chief Financial Officer","Chair","Vice-President"],"title":"Office","description":"The title this person holds. One person can hold several offices."}},"required":["fullName","office"],"title":"Officer"},"title":"Who are the officers?","description":"At least one, for example a President."},"shareholders":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Shareholder’s full legal name","description":"As it appears on government ID."},"kind":{"default":"individual","title":"Type of shareholder","description":"individual: a person. corporation: a company, such as a holding company.","type":"string","enum":["individual","corporation"]},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address","description":"For the securities register. For an individual, their residential address."},"shares":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000000,"title":"Number of shares","description":"A whole number."},"pricePerShare":{"type":"string","title":"Price per share (CAD)","description":"What each share costs, in dollars. Founders often pay a small amount, for example 0.001."},"consideration":{"default":"money","title":"How the shares are paid for","description":"money: cash or e-transfer (the usual choice). property: an asset transferred to the company. past_services: work already done for the company.","type":"string","enum":["money","property","past_services"]},"considerationDescription":{"type":"string","maxLength":500,"title":"What is being transferred","description":"Only if paying with property or past services."},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."},"details":{"type":"object","properties":{"dateOfBirth":{"type":"string","title":"Date of birth","description":"Needed for the register of individuals with significant control if this person holds 25% or more.","format":"date"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes","description":"For example Canada."},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship","description":"Country or countries of citizenship. Federal corporations must record it."}},"title":"Details for the register of individuals with significant control"},"controllers":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"residentialAddress":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Residential address"},"dateOfBirth":{"type":"string","title":"Date of birth","description":"For the register of individuals with significant control.","format":"date"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes"},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship"}},"required":["fullName"],"title":"Individual who controls or directs the shares"},"title":"Individuals who control this corporation’s shares","description":"Only for a corporate shareholder: each individual with direct or indirect control or direction over its shares."}},"required":["fullName","address","shares","pricePerShare"],"title":"Shareholder"},"title":"Who gets shares, and how many?","description":"Everyone who will receive common shares at incorporation."},"fiscalYearEnd":{"default":"12-31","title":"Fiscal year end","description":"Month and day the financial year ends, for example 12-31 for December 31.","type":"string","pattern":"^(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"businessActivity":{"type":"string","maxLength":200,"title":"Main business activity","description":"In a few words, for choosing the NAICS code, for example software publishing."},"nuansReference":{"type":"string","maxLength":60,"title":"Nuans report reference number","description":"Ontario word names only, once you have the report."},"nuansDate":{"type":"string","title":"Nuans report date","description":"Ontario word names only. It must be no more than 90 days before you file.","format":"date"},"effectiveDate":{"type":"string","title":"Requested effective date","description":"Ontario only. Leave empty to incorporate on the day you file; you may ask for a date up to 30 days later.","format":"date"},"minDirectors":{"default":1,"title":"Minimum number of directors","type":"integer","minimum":1,"maximum":10},"maxDirectors":{"default":10,"title":"Maximum number of directors","type":"integer","minimum":1,"maximum":20},"noAuditorFirstYear":{"default":true,"title":"No auditor for the first year","description":"Yes if every shareholder agrees the company will not appoint an auditor for its first financial year. Usual for a private company.","type":"boolean"},"bank":{"type":"string","maxLength":120,"title":"Bank","description":"Where the company will bank, if you know."},"shareholderAgreementInPlace":{"default":false,"title":"Shareholder agreement in place","description":"Yes if the shareholders already have a signed shareholder agreement.","type":"boolean"}},"required":["jurisdiction","nameChoice","registeredOffice","officialEmail","directors","officers","shareholders"],"title":"Incorporation package"}}},"examples":{"example1":{"summary":"One founder, Ontario, numbered company","value":{"input":{"jurisdiction":"on","nameChoice":"numbered","legalEnding":"Inc.","registeredOffice":{"street":"100 King Street West, Suite 5700","city":"Toronto","province":"Ontario","postalCode":"M5X 1C7"},"officialEmail":"founder@example.com","directors":[{"fullName":"Alex Founder","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"residentCanadian":true,"confirmedQualified":true}],"officers":[{"fullName":"Alex Founder","office":"President"},{"fullName":"Alex Founder","office":"Secretary"}],"shareholders":[{"fullName":"Alex Founder","kind":"individual","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"shares":1000000,"pricePerShare":"0.001","consideration":"money"}],"fiscalYearEnd":"12-31","minDirectors":1,"maxDirectors":10,"noAuditorFirstYear":true,"shareholderAgreementInPlace":false}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"corporationName":{"type":"string"},"jurisdiction":{"type":"string","enum":["on","ca"]},"filingSteps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["label","detail","cites"]}},"documents":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]}},"capTable":{"type":"array","items":{"type":"object","properties":{"holder":{"type":"string"},"shares":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"number"},"considerationCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["holder","shares","percent","considerationCents"]}},"individualsWithSignificantControl":{"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string"},"grounds":{"type":"array","items":{"type":"string"}},"votesPercent":{"type":"number"},"missing":{"type":"array","items":{"type":"string"}}},"required":["fullName","grounds","votesPercent","missing"]}},"deadlines":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"when":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["label","when","cites"]}},"governmentFeeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"packageCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["corporationName","jurisdiction","filingSteps","documents","capTable","individualsWithSignificantControl","deadlines","governmentFeeCents","packageCents"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"corporate.incorporation_prepare","version":1,"title":"Incorporation package"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"corporationName":"text","jurisdiction":"on","filingSteps":[{"label":"text","detail":"text","cites":[{"sourceId":"text","label":"text","url":"text"}]}],"documents":[{"key":"text","title":"text"}],"capTable":[{"holder":"text","shares":1,"percent":1,"considerationCents":1}],"individualsWithSignificantControl":[{"fullName":"text","grounds":["text"],"votesPercent":1,"missing":["text"]}],"deadlines":[{"label":"text","when":"text","cites":[{"sourceId":"text","label":"text","url":"text"}]}],"governmentFeeCents":1,"packageCents":1},"summary":"Incorporation package: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"corporate/incorporation/name","title":"Name search and legal ending","status":"unverified"},{"id":"corporate/directors/qualifications","title":"Who can be a director","status":"unverified"},{"id":"corporate/directors/residency","title":"Resident Canadian directors","status":"unverified"},{"id":"corporate/deadlines/initial-return","title":"Initial return deadline","status":"unverified"},{"id":"corporate/audit-exemption","title":"No auditor","status":"unverified"},{"id":"corporate/isc/test","title":"Individuals with significant control","status":"unverified"},{"id":"corporate/isc/register","title":"Keeping the register of individuals with significant control","status":"unverified"},{"id":"corporate/shares/issuance","title":"Issuing shares","status":"unverified"},{"id":"corporate/records/minute-book","title":"What the minute book holds","status":"unverified"},{"id":"corporate/documents/general-by-law","title":"General By-law No. 1","status":"unverified"},{"id":"corporate/documents/organizational-resolutions","title":"Organizational resolutions and incorporation documents","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"corporate.incorporation_prepare","version":1,"kind":"prepare","audience":["person","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":false},"price":{"sku":"corporate.incorporation","title":"Incorporation","label":"CAD 399 plus HST. The government filing fee is extra.","amount":39900,"currency":"CAD","kind":"one_time","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"Articles, by-law, organizational resolutions, share issuances and registers, filed from your own account."},"personalData":true}}},"/operations/corporate.isc_register/runs":{"post":{"operationId":"run_corporate_isc_register","tags":["corporate"],"summary":"Register of individuals with significant control","description":"Use this when a corporation needs its register of individuals with significant control, under the 25% tests, prepared or updated. Ontario and federal corporations. Do not use it to decide whether someone has control in fact (the founder answers that), or for a corporation formed outside Ontario and not federally. Next: the corporation keeps the register with its records; corporate_annual_maintenance at year end.\n\nFor founders on the founder plan: who has significant control under the 25% tests, and the register ready to keep.\n\nGive a companyId from the founder plan, or the corporation’s details with every shareholder and their holdings. Ask whether anyone controls the company in fact without holding shares, whether any shareholders hold jointly or have an agreement to vote together, and, for each individual found, their date of birth, residential address and country of tax residence (and citizenship for a federal company). Whether someone has control in fact is the founder’s answer; the software does not decide it.\n\nPrice: CAD 299 per company per year plus HST (sku `corporate.founder_plan`, Jonathan Kleiman (software and consulting)). Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: `corporate/isc/test` (unverified), `corporate/isc/register` (unverified). Availability: unverified.\nMCP tool: `corporate_isc_register`. Markdown: https://mithril.law/corporate/isc-register.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"companyId":{"type":"string","minLength":3,"maxLength":64,"title":"Company","description":"A company on your founder plan. Leave empty and fill in the corporation instead."},"company":{"type":"object","properties":{"jurisdiction":{"anyOf":[{"type":"string","const":"on","title":"Ontario","description":"Under the Business Corporations Act (Ontario)."},{"type":"string","const":"ca","title":"Federal","description":"Under the Canada Business Corporations Act."}],"title":"Where the corporation is incorporated"},"name":{"type":"string","minLength":3,"maxLength":120,"title":"Corporate name","description":"Exactly as on the certificate of incorporation."},"incorporatedOn":{"type":"string","title":"Date of incorporation","description":"The date on the certificate of incorporation.","format":"date"},"fiscalYearEnd":{"default":"12-31","title":"Fiscal year end","description":"Month and day the financial year ends, for example 12-31 for December 31.","type":"string","pattern":"^(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"registeredOffice":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit or suite if there is one. A post office box alone is not accepted."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"province":{"default":"Ontario","title":"Province or territory","type":"string","enum":["Ontario","Quebec","British Columbia","Alberta","Manitoba","Saskatchewan","Nova Scotia","New Brunswick","Newfoundland and Labrador","Prince Edward Island","Yukon","Northwest Territories","Nunavut"]},"postalCode":{"type":"string","pattern":"^[A-Za-z]\\d[A-Za-z] ?\\d[A-Za-z]\\d$","title":"Postal code","description":"For example M5V 2T6."}},"required":["street","city","postalCode"],"title":"Registered office"},"directors":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address for service"},"residentCanadian":{"type":"boolean","title":"Resident Canadian","description":"Yes if this person is a Canadian citizen who ordinarily lives in Canada, or a permanent resident who ordinarily lives in Canada (and has not been eligible to apply for citizenship for more than a year). A federal corporation needs enough of these directors."},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."}},"required":["fullName","address","residentCanadian"],"title":"Director"},"title":"Current directors"},"officers":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"office":{"type":"string","enum":["President","Secretary","Treasurer","Chief Executive Officer","Chief Financial Officer","Chair","Vice-President"],"title":"Office","description":"The title this person holds. One person can hold several offices."}},"required":["fullName","office"],"title":"Officer"},"title":"Current officers"},"shareholders":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Shareholder’s full legal name","description":"As it appears on government ID."},"kind":{"default":"individual","title":"Type of shareholder","description":"individual: a person. corporation: a company, such as a holding company.","type":"string","enum":["individual","corporation"]},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address","description":"For an individual, their residential address."},"holdings":{"minItems":1,"type":"array","items":{"type":"object","properties":{"shareClass":{"default":"Common shares","title":"Class of shares","description":"As named in the articles, for example Common shares.","type":"string","minLength":1},"shares":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000000,"title":"Number of shares held"}},"required":["shares"],"title":"Holding"},"title":"Shares held"},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."},"details":{"type":"object","properties":{"dateOfBirth":{"type":"string","title":"Date of birth","description":"For the register of individuals with significant control.","format":"date"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes"},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship","description":"Federal corporations must record it."},"addressForService":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address for service","description":"Federal only, if the person wants this published instead of their home address."}},"title":"Details for the register of individuals with significant control"},"controllers":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"residentialAddress":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Residential address"},"dateOfBirth":{"type":"string","title":"Date of birth","description":"For the register of individuals with significant control.","format":"date"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes"},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship"}},"required":["fullName"],"title":"Individual who controls or directs the shares"},"title":"Individuals who control this corporation’s shares","description":"Only for a corporate shareholder."}},"required":["fullName","address","holdings"],"title":"Shareholder"},"title":"Current shareholders"},"shareClasses":{"default":[{"name":"Common shares","votesPerShare":1,"fairMarketValuePerShare":"1"}],"title":"Share classes in the articles","minItems":1,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"title":"Class name","description":"As named in the articles."},"votesPerShare":{"default":1,"title":"Votes per share","description":"0 for non-voting shares.","type":"integer","minimum":0,"maximum":1000},"fairMarketValuePerShare":{"default":"1","title":"Fair market value per share (CAD)","description":"Only matters if there is more than one class. Used for the 25% test by value.","type":"string"}},"required":["name"],"title":"Share class"}},"corporationNumber":{"type":"string","maxLength":30,"title":"Corporation number"},"lastAnnualMeeting":{"type":"string","title":"Last annual meeting","description":"The date of the last annual meeting or the last annual shareholder resolutions. Leave empty if there has not been one.","format":"date"},"shareholderAgreementInPlace":{"default":false,"title":"Shareholder agreement in place","type":"boolean"},"unanimousShareholderAgreement":{"default":false,"title":"Unanimous shareholder agreement","description":"Yes if the shareholders signed an agreement that restricts the directors’ powers.","type":"boolean"},"articlesGrantPreemptiveRights":{"default":false,"title":"Articles give pre-emptive rights","description":"Yes if the articles give existing shareholders the first right to buy new shares.","type":"boolean"}},"required":["jurisdiction","name","incorporatedOn","registeredOffice","directors","officers","shareholders"],"title":"The corporation"},"reviewDate":{"type":"string","title":"Date of this review","description":"Leave empty for today.","format":"date"},"controlInFact":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"dateOfBirth":{"type":"string","title":"Date of birth","description":"For the register.","format":"date"},"residentialAddress":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Residential address"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes"},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship","description":"Federal corporations must record it."}},"required":["fullName"],"title":"Individual"},"title":"Individuals with control in fact","description":"Anyone who, without holding 25% of the shares, has influence that if exercised would control the company, for example through an agreement or family relationship. Leave empty if none."},"actingTogether":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"members":{"minItems":2,"type":"array","items":{"type":"string","minLength":2},"title":"Full names of the individuals"},"basis":{"type":"string","enum":["joint","in_concert","related"],"title":"How they act together","description":"joint: they hold shares jointly. in_concert: they have an agreement to exercise their rights together. related: they are related persons (Ontario only)."}},"required":["members","basis"],"title":"Group acting together"},"title":"Individuals who hold or act together","description":"Leave empty if none."},"previousRegister":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"becameOn":{"type":"string","title":"Became an individual with significant control on","description":"From the current register.","format":"date"}},"required":["fullName","becameOn"],"title":"Entry"},"title":"Current register entries","description":"Only if you are not using a company on the founder plan. Leave empty for a first register."}},"title":"Register of individuals with significant control"}}},"examples":{"example1":{"summary":"Two founders, 60/40","value":{"input":{"company":{"jurisdiction":"ca","name":"Maple Robotics Inc.","incorporatedOn":"2026-03-15","fiscalYearEnd":"12-31","registeredOffice":{"street":"100 King Street West, Suite 5700","city":"Toronto","province":"Ontario","postalCode":"M5X 1C7"},"directors":[{"fullName":"Alex Founder","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"residentCanadian":true}],"officers":[{"fullName":"Alex Founder","office":"President"}],"shareholders":[{"fullName":"Alex Founder","kind":"individual","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"holdings":[{"shareClass":"Common shares","shares":600}]},{"fullName":"Sam Cofounder","kind":"individual","address":{"street":"2 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T7","country":"Canada"},"holdings":[{"shareClass":"Common shares","shares":400}]}],"shareClasses":[{"name":"Common shares","votesPerShare":1,"fairMarketValuePerShare":"1"}],"shareholderAgreementInPlace":true,"unanimousShareholderAgreement":false,"articlesGrantPreemptiveRights":false}}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"corporationName":{"type":"string"},"reviewDate":{"type":"string"},"individuals":{"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string"},"significantControl":{"type":"boolean"},"grounds":{"type":"array","items":{"type":"string"}},"votesPercent":{"type":"number"},"valuePercent":{"type":"number"},"becameOn":{"type":"string"},"ceasedOn":{"type":"string"}},"required":["fullName","significantControl","grounds","votesPercent","valuePercent"]}},"missing":{"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}}},"required":["fullName","fields"]}},"registerFields":{"type":"array","items":{"type":"string"}},"filing":{"type":"object","properties":{"required":{"type":"boolean"},"when":{"type":"array","items":{"type":"string"}}},"required":["required","when"]},"documents":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]}}},"required":["corporationName","reviewDate","individuals","missing","registerFields","filing","documents"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"corporate.isc_register","version":1,"title":"Register of individuals with significant control"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"corporationName":"text","reviewDate":"text","individuals":[{"fullName":"text","significantControl":false,"grounds":["text"],"votesPercent":1,"valuePercent":1}],"missing":[{"fullName":"text","fields":["text"]}],"registerFields":["text"],"filing":{"required":false,"when":["text"]},"documents":[{"key":"text","title":"text"}]},"summary":"Register of individuals with significant control: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"corporate/isc/test","title":"Individuals with significant control","status":"unverified"},{"id":"corporate/isc/register","title":"Keeping the register of individuals with significant control","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"corporate.isc_register","version":1,"kind":"prepare","audience":["person","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":false},"price":{"sku":"corporate.founder_plan","title":"Founder plan","label":"CAD 299 per company per year plus HST","amount":29900,"currency":"CAD","kind":"subscription","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"Each year’s resolutions and annual return prepared, share issuances recorded, and the registers kept current."},"personalData":true}}},"/operations/corporate.share_issuance/runs":{"post":{"operationId":"run_corporate_share_issuance","tags":["corporate"],"summary":"Issue shares","description":"Use this when a corporation is issuing shares and needs the directors' resolution, subscriptions, certificates and updated registers. Ontario and federal corporations. Do not use it to decide whether a securities-law exemption applies (the answer never does), or for a financing round (handoff_create). Next: corporate_isc_register to update the register of individuals with significant control.\n\nFor founders on the founder plan: the directors’ resolution to issue shares, the subscriptions and certificates, and the updated registers. Anything that needs a lawyer is flagged.\n\nGive a companyId from the founder plan, or the corporation’s details with its current shareholders. For each subscriber ask their name and address, the class, the number of shares, the price per share and how they are paying. The answer never says whether a securities-law exemption applies; if a subscriber is new to the company, or there is no shareholder agreement, it hands off to a lawyer.\n\nPrice: CAD 299 per company per year plus HST (sku `corporate.founder_plan`, Jonathan Kleiman (software and consulting)). Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: `corporate/shares/issuance` (unverified), `corporate/shares/issuance-review` (unverified), `corporate/isc/test` (unverified), `corporate/isc/register` (unverified), `corporate/documents/issuance-resolution` (unverified). Availability: unverified.\nMCP tool: `corporate_share_issuance`. Markdown: https://mithril.law/corporate/share-issuance.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"subscribers":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Subscriber’s full legal name","description":"As it appears on government ID."},"kind":{"default":"individual","title":"Type of subscriber","description":"individual: a person. corporation: a company.","type":"string","enum":["individual","corporation"]},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address","description":"For the securities register."},"shareClass":{"default":"Common shares","title":"Class of shares","description":"As named in the articles.","type":"string","minLength":1},"shares":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000000,"title":"Number of shares","description":"A whole number."},"pricePerShare":{"type":"string","title":"Price per share (CAD)","description":"What each share costs, in dollars. Founders often pay a small amount, for example 0.001."},"consideration":{"default":"money","title":"How the shares are paid for","description":"money: cash or e-transfer. property: an asset transferred to the company. past_services: work already done for the company.","type":"string","enum":["money","property","past_services"]},"considerationDescription":{"type":"string","maxLength":500,"title":"What is being transferred","description":"Only if paying with property or past services."},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."}},"required":["fullName","address","shares","pricePerShare"],"title":"Subscriber"},"title":"Who is getting shares?"},"companyId":{"type":"string","minLength":3,"maxLength":64,"title":"Company","description":"A company on your founder plan. Leave empty and fill in the corporation instead."},"company":{"type":"object","properties":{"jurisdiction":{"anyOf":[{"type":"string","const":"on","title":"Ontario","description":"Under the Business Corporations Act (Ontario)."},{"type":"string","const":"ca","title":"Federal","description":"Under the Canada Business Corporations Act."}],"title":"Where the corporation is incorporated"},"name":{"type":"string","minLength":3,"maxLength":120,"title":"Corporate name","description":"Exactly as on the certificate of incorporation."},"incorporatedOn":{"type":"string","title":"Date of incorporation","description":"The date on the certificate of incorporation.","format":"date"},"fiscalYearEnd":{"default":"12-31","title":"Fiscal year end","description":"Month and day the financial year ends, for example 12-31 for December 31.","type":"string","pattern":"^(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"registeredOffice":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit or suite if there is one. A post office box alone is not accepted."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"province":{"default":"Ontario","title":"Province or territory","type":"string","enum":["Ontario","Quebec","British Columbia","Alberta","Manitoba","Saskatchewan","Nova Scotia","New Brunswick","Newfoundland and Labrador","Prince Edward Island","Yukon","Northwest Territories","Nunavut"]},"postalCode":{"type":"string","pattern":"^[A-Za-z]\\d[A-Za-z] ?\\d[A-Za-z]\\d$","title":"Postal code","description":"For example M5V 2T6."}},"required":["street","city","postalCode"],"title":"Registered office"},"directors":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address for service"},"residentCanadian":{"type":"boolean","title":"Resident Canadian","description":"Yes if this person is a Canadian citizen who ordinarily lives in Canada, or a permanent resident who ordinarily lives in Canada (and has not been eligible to apply for citizenship for more than a year). A federal corporation needs enough of these directors."},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."}},"required":["fullName","address","residentCanadian"],"title":"Director"},"title":"Current directors"},"officers":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"office":{"type":"string","enum":["President","Secretary","Treasurer","Chief Executive Officer","Chief Financial Officer","Chair","Vice-President"],"title":"Office","description":"The title this person holds. One person can hold several offices."}},"required":["fullName","office"],"title":"Officer"},"title":"Current officers"},"shareholders":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Shareholder’s full legal name","description":"As it appears on government ID."},"kind":{"default":"individual","title":"Type of shareholder","description":"individual: a person. corporation: a company, such as a holding company.","type":"string","enum":["individual","corporation"]},"address":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address","description":"For an individual, their residential address."},"holdings":{"minItems":1,"type":"array","items":{"type":"object","properties":{"shareClass":{"default":"Common shares","title":"Class of shares","description":"As named in the articles, for example Common shares.","type":"string","minLength":1},"shares":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000000,"title":"Number of shares held"}},"required":["shares"],"title":"Holding"},"title":"Shares held"},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Email","description":"Used to send documents for signature. Optional."},"details":{"type":"object","properties":{"dateOfBirth":{"type":"string","title":"Date of birth","description":"For the register of individuals with significant control.","format":"date"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes"},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship","description":"Federal corporations must record it."},"addressForService":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Address for service","description":"Federal only, if the person wants this published instead of their home address."}},"title":"Details for the register of individuals with significant control"},"controllers":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120,"title":"Full legal name","description":"As it appears on government ID."},"residentialAddress":{"type":"object","properties":{"street":{"type":"string","minLength":3,"maxLength":200,"title":"Street address","description":"Number and street, with the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100,"title":"City or town"},"region":{"type":"string","minLength":1,"maxLength":100,"title":"Province or state"},"postalCode":{"type":"string","minLength":2,"maxLength":20,"title":"Postal or ZIP code"},"country":{"default":"Canada","title":"Country","type":"string","minLength":2,"maxLength":60}},"required":["street","city","region","postalCode"],"title":"Residential address"},"dateOfBirth":{"type":"string","title":"Date of birth","description":"For the register of individuals with significant control.","format":"date"},"taxResidence":{"type":"string","minLength":2,"maxLength":60,"title":"Country of residence for tax purposes"},"citizenship":{"type":"string","minLength":2,"maxLength":120,"title":"Citizenship"}},"required":["fullName"],"title":"Individual who controls or directs the shares"},"title":"Individuals who control this corporation’s shares","description":"Only for a corporate shareholder."}},"required":["fullName","address","holdings"],"title":"Shareholder"},"title":"Current shareholders"},"shareClasses":{"default":[{"name":"Common shares","votesPerShare":1,"fairMarketValuePerShare":"1"}],"title":"Share classes in the articles","minItems":1,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"title":"Class name","description":"As named in the articles."},"votesPerShare":{"default":1,"title":"Votes per share","description":"0 for non-voting shares.","type":"integer","minimum":0,"maximum":1000},"fairMarketValuePerShare":{"default":"1","title":"Fair market value per share (CAD)","description":"Only matters if there is more than one class. Used for the 25% test by value.","type":"string"}},"required":["name"],"title":"Share class"}},"corporationNumber":{"type":"string","maxLength":30,"title":"Corporation number"},"lastAnnualMeeting":{"type":"string","title":"Last annual meeting","description":"The date of the last annual meeting or the last annual shareholder resolutions. Leave empty if there has not been one.","format":"date"},"shareholderAgreementInPlace":{"default":false,"title":"Shareholder agreement in place","type":"boolean"},"unanimousShareholderAgreement":{"default":false,"title":"Unanimous shareholder agreement","description":"Yes if the shareholders signed an agreement that restricts the directors’ powers.","type":"boolean"},"articlesGrantPreemptiveRights":{"default":false,"title":"Articles give pre-emptive rights","description":"Yes if the articles give existing shareholders the first right to buy new shares.","type":"boolean"}},"required":["jurisdiction","name","incorporatedOn","registeredOffice","directors","officers","shareholders"],"title":"The corporation"}},"required":["subscribers"],"title":"Share issuance"}}},"examples":{"example1":{"summary":"Issue more common shares to the founder","value":{"input":{"subscribers":[{"fullName":"Alex Founder","kind":"individual","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"shareClass":"Common shares","shares":500000,"pricePerShare":"0.001","consideration":"money"}],"company":{"jurisdiction":"on","name":"Maple Robotics Inc.","incorporatedOn":"2026-03-15","fiscalYearEnd":"12-31","registeredOffice":{"street":"100 King Street West, Suite 5700","city":"Toronto","province":"Ontario","postalCode":"M5X 1C7"},"directors":[{"fullName":"Alex Founder","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"residentCanadian":true}],"officers":[{"fullName":"Alex Founder","office":"President"}],"shareholders":[{"fullName":"Alex Founder","kind":"individual","address":{"street":"1 Example Road","city":"Toronto","region":"Ontario","postalCode":"M5V 2T6","country":"Canada"},"holdings":[{"shareClass":"Common shares","shares":1000000}]}],"shareClasses":[{"name":"Common shares","votesPerShare":1,"fairMarketValuePerShare":"1"}],"shareholderAgreementInPlace":false,"unanimousShareholderAgreement":false,"articlesGrantPreemptiveRights":false}}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"corporationName":{"type":"string"},"issued":{"type":"array","items":{"type":"object","properties":{"subscriber":{"type":"string"},"shareClass":{"type":"string"},"shares":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pricePerShare":{"type":"string"},"considerationCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"certificateNumber":{"type":"string"}},"required":["subscriber","shareClass","shares","pricePerShare","considerationCents","certificateNumber"]}},"capTableAfter":{"type":"array","items":{"type":"object","properties":{"holder":{"type":"string"},"votes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"votesPercent":{"type":"number"}},"required":["holder","votes","votesPercent"]}},"individualsWithSignificantControlAfter":{"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string"},"grounds":{"type":"array","items":{"type":"string"}}},"required":["fullName","grounds"]}},"iscChanges":{"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string"},"change":{"type":"string","enum":["becomes","ceases"]}},"required":["fullName","change"]}},"flags":{"type":"array","items":{"type":"object","properties":{"flag":{"type":"string"},"text":{"type":"string"}},"required":["flag","text"]}},"documents":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]}}},"required":["corporationName","issued","capTableAfter","individualsWithSignificantControlAfter","iscChanges","flags","documents"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"corporate.share_issuance","version":1,"title":"Issue shares"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"corporationName":"text","issued":[{"subscriber":"text","shareClass":"text","shares":1,"pricePerShare":"text","considerationCents":1,"certificateNumber":"text"}],"capTableAfter":[{"holder":"text","votes":1,"votesPercent":1}],"individualsWithSignificantControlAfter":[{"fullName":"text","grounds":["text"]}],"iscChanges":[{"fullName":"text","change":"becomes"}],"flags":[{"flag":"text","text":"text"}],"documents":[{"key":"text","title":"text"}]},"summary":"Issue shares: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"corporate/shares/issuance","title":"Issuing shares","status":"unverified"},{"id":"corporate/shares/issuance-review","title":"When a share issuance needs a lawyer","status":"unverified"},{"id":"corporate/isc/test","title":"Individuals with significant control","status":"unverified"},{"id":"corporate/isc/register","title":"Keeping the register of individuals with significant control","status":"unverified"},{"id":"corporate/documents/issuance-resolution","title":"Share issuance documents","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"corporate.share_issuance","version":1,"kind":"prepare","audience":["person","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":false},"price":{"sku":"corporate.founder_plan","title":"Founder plan","label":"CAD 299 per company per year plus HST","amount":29900,"currency":"CAD","kind":"subscription","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"Each year’s resolutions and annual return prepared, share issuances recorded, and the registers kept current."},"personalData":true}}},"/operations/criminal.intake_triage/runs":{"post":{"operationId":"run_criminal_intake_triage","tags":["criminal"],"summary":"How urgent is a criminal matter","description":"Use this when someone contacts you about an arrest or a criminal charge in Ontario and you need to decide between calling me now and booking a consultation. Ontario criminal matters, from custody status and court dates only. Do not use it to collect the facts of the case, or to explain what happens next (criminal_what_happens_next). Next: handoff_create or slots_list, as the urgency it returns says.\n\nFrom custody and court dates only: how fast to reach me, and whether to call now or book a consultation. No legal conclusions.\n\nCall this first when someone contacts you about an arrest or a criminal charge, to decide between calling me now and booking a consultation. It needs only whether anyone is in custody now and any bail hearing or court date. Do not collect the facts of the case.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `criminal/intake/urgency` (unverified). Availability: unverified.\nMCP tool: `criminal_intake_triage`. Markdown: https://mithril.law/criminal/intake-triage.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"inCustody":{"type":"boolean","title":"Someone is in custody right now","description":"Held by the police, or in jail or a detention centre, today."},"bailHearingDate":{"title":"Bail hearing date","description":"If a bail hearing is set, its date.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"nextCourtDate":{"title":"Next court date","description":"From the release papers, summons or appearance notice.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"today":{"title":"Today’s date","description":"Leave blank to use today’s date in Ontario.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["inCustody"],"title":"How urgent is it"}}},"examples":{"example1":{"summary":"Brother held since last night","value":{"input":{"inCustody":true}}},"example2":{"summary":"Court in five days","value":{"input":{"inCustody":false,"nextCourtDate":"2026-09-28","today":"2026-09-23"}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"urgency":{"anyOf":[{"type":"string","const":"immediate","title":"Immediate: call now"},{"type":"string","const":"soon","title":"Soon: this week"},{"type":"string","const":"standard","title":"Standard: book a consultation"}]},"urgencyLabel":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"nextAction":{"anyOf":[{"type":"string","const":"book_call","title":"Call now"},{"type":"string","const":"book_consultation","title":"Book a consultation"}]},"daysToBailHearing":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"daysToNextCourtDate":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["urgency","urgencyLabel","reasons","nextAction","daysToBailHearing","daysToNextCourtDate"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"criminal.intake_triage","version":1,"title":"How urgent is a criminal matter"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"urgency":"immediate","urgencyLabel":"Immediate: call now","reasons":["Someone is in custody now."],"nextAction":"book_call","daysToBailHearing":null,"daysToNextCourtDate":null},"summary":"Immediate: call now. Someone is in custody now.","steps":[{"label":"Urgency","value":"Immediate: call now","detail":"Someone is in custody now."}],"boundary":{"kind":"needs_lawyer","reason":"A criminal charge needs a lawyer. I take legal aid certificates for criminal defence, and private retainers.","actions":[{"id":"book_call","label":"Call me now","sku":"legal.call"},{"id":"book_consultation","label":"Book a consultation","sku":"legal.consultation"},{"id":"handoff","label":"Have me take the case on a legal aid certificate","sku":"criminal.legal_aid"},{"id":"handoff","label":"Have me take the case on a private retainer","sku":"criminal.private"},{"id":"run_operation","label":"What happens next","operation":"criminal.what_happens_next"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"criminal/intake/urgency","title":"How urgent is it: custody and court dates","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"criminal.intake_triage","version":1,"kind":"check","audience":["person","agent","firm"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/criminal.intake_triage/run":{"get":{"operationId":"get_criminal_intake_triage","tags":["criminal"],"summary":"How urgent is a criminal matter (from a URL)","description":"Use this when someone contacts you about an arrest or a criminal charge in Ontario and you need to decide between calling me now and booking a consultation. Ontario criminal matters, from custody status and court dates only. Do not use it to collect the facts of the case, or to explain what happens next (criminal_what_happens_next). Next: handoff_create or slots_list, as the urgency it returns says.\n\nFrom custody and court dates only: how fast to reach me, and whether to call now or book a consultation. No legal conclusions.\n\nCall this first when someone contacts you about an arrest or a criminal charge, to decide between calling me now and booking a consultation. It needs only whether anyone is in custody now and any bail hearing or court date. Do not collect the facts of the case.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `criminal/intake/urgency` (unverified). Availability: unverified.\nMCP tool: `criminal_intake_triage`. Markdown: https://mithril.law/criminal/intake-triage.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/criminal.intake_triage/run?inCustody=true","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"inCustody","in":"query","required":true,"description":"Held by the police, or in jail or a detention centre, today.","schema":{"type":"boolean","title":"Someone is in custody right now","description":"Held by the police, or in jail or a detention centre, today."}},{"name":"bailHearingDate","in":"query","required":false,"description":"If a bail hearing is set, its date.","schema":{"title":"Bail hearing date","description":"If a bail hearing is set, its date.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"nextCourtDate","in":"query","required":false,"description":"From the release papers, summons or appearance notice.","schema":{"title":"Next court date","description":"From the release papers, summons or appearance notice.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"today","in":"query","required":false,"description":"Leave blank to use today’s date in Ontario.","schema":{"title":"Today’s date","description":"Leave blank to use today’s date in Ontario.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"urgency":{"anyOf":[{"type":"string","const":"immediate","title":"Immediate: call now"},{"type":"string","const":"soon","title":"Soon: this week"},{"type":"string","const":"standard","title":"Standard: book a consultation"}]},"urgencyLabel":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"nextAction":{"anyOf":[{"type":"string","const":"book_call","title":"Call now"},{"type":"string","const":"book_consultation","title":"Book a consultation"}]},"daysToBailHearing":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"daysToNextCourtDate":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["urgency","urgencyLabel","reasons","nextAction","daysToBailHearing","daysToNextCourtDate"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"criminal.intake_triage","version":1,"title":"How urgent is a criminal matter"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"urgency":"immediate","urgencyLabel":"Immediate: call now","reasons":["Someone is in custody now."],"nextAction":"book_call","daysToBailHearing":null,"daysToNextCourtDate":null},"summary":"Immediate: call now. Someone is in custody now.","steps":[{"label":"Urgency","value":"Immediate: call now","detail":"Someone is in custody now."}],"boundary":{"kind":"needs_lawyer","reason":"A criminal charge needs a lawyer. I take legal aid certificates for criminal defence, and private retainers.","actions":[{"id":"book_call","label":"Call me now","sku":"legal.call"},{"id":"book_consultation","label":"Book a consultation","sku":"legal.consultation"},{"id":"handoff","label":"Have me take the case on a legal aid certificate","sku":"criminal.legal_aid"},{"id":"handoff","label":"Have me take the case on a private retainer","sku":"criminal.private"},{"id":"run_operation","label":"What happens next","operation":"criminal.what_happens_next"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"criminal/intake/urgency","title":"How urgent is it: custody and court dates","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"criminal.intake_triage","version":1,"kind":"check","audience":["person","agent","firm"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/criminal.legal_aid_path/runs":{"post":{"operationId":"run_criminal_legal_aid_path","tags":["criminal"],"summary":"Getting a legal aid lawyer for a criminal charge","description":"Use this when someone charged with a crime in Ontario cannot afford a lawyer, or already has a Legal Aid Ontario certificate and wants me to act. Ontario only: Legal Aid Ontario certificates for criminal charges. Do not use it for family, immigration or refugee matters (I take legal aid for criminal defence only), or to apply for the person (they apply to Legal Aid Ontario themselves). Next: handoff_create with the certificate details.\n\nHow to apply to Legal Aid Ontario for a certificate, what a certificate is, and what to send me once you have one. Legal Aid certificates accepted for criminal defence matters.\n\nCall this when someone charged with a crime in Ontario cannot afford a lawyer, or already has a legal aid certificate and wants me to act. Ask whether a certificate has already been issued and whether the person is in custody. Family size and income are optional and only used to compare with Legal Aid Ontario's published limit; Legal Aid Ontario decides eligibility. The person applies to Legal Aid Ontario themselves (or through a lawyer); an agent cannot apply for them. To have me take the case, use the handoff action with sku criminal.legal_aid.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `criminal/legal-aid/apply` (unverified), `criminal/legal-aid/certificate` (unverified). Availability: unverified.\nMCP tool: `criminal_legal_aid_path`. Markdown: https://mithril.law/criminal/legal-aid-path.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"hasCertificate":{"default":false,"title":"A certificate has already been issued","description":"Yes if Legal Aid Ontario has already given you a certificate.","type":"boolean"},"inCustody":{"default":false,"title":"In custody now","description":"Yes if the person charged is in jail or a detention centre.","type":"boolean"},"youth":{"default":false,"title":"The person charged is under 18","description":"12 to 17 when the offence is said to have happened.","type":"boolean"},"familySize":{"title":"Family size","description":"How many people in your family, including you, as Legal Aid Ontario counts them.","type":"integer","minimum":1,"maximum":30},"familyIncome":{"title":"Yearly family income (CAD)","description":"Your family’s total yearly income. Used only to compare with Legal Aid Ontario’s published limit.","type":"number","minimum":0}},"title":"The legal aid path"}}},"examples":{"example1":{"summary":"Out of custody, not applied yet","value":{"input":{"hasCertificate":false,"inCustody":false,"youth":false}}},"example2":{"summary":"Certificate issued, wants me as lawyer","value":{"input":{"hasCertificate":true,"inCustody":false,"youth":false}}},"example3":{"summary":"Family of three, CAD 40,000 a year","value":{"input":{"hasCertificate":false,"inCustody":false,"youth":false,"familySize":3,"familyIncome":40000}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"hasCertificate":{"type":"boolean"},"inCustody":{"type":"boolean"},"eligibility":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"Who qualifies"},"next":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What happens next"},"do":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What to do now"},"dont":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What not to do"},"help":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"Working with me"},"incomeCheck":{"anyOf":[{"type":"object","properties":{"familySize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyIncome":{"type":"number"},"limit":{"type":["number","null"]},"underLimit":{"type":["boolean","null"]}},"required":["familySize","familyIncome","limit","underLimit"]},{"type":"null"}],"title":"Income compared with the published limit","description":"Information only. Legal Aid Ontario decides."}},"required":["hasCertificate","inCustody","eligibility","next","do","dont","help","incomeCheck"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"criminal.legal_aid_path","version":1,"title":"Getting a legal aid lawyer for a criminal charge"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"hasCertificate":false,"inCustody":false,"eligibility":[{"id":"legal_aid.coverage","text":"Legal Aid Ontario may pay for your lawyer if you qualify financially and you are charged with a crime that could send you to jail if you are found guilty, or you are 12 to 17 and charged under the Youth Criminal Justice Act.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"on/lasa-2020/s-4","label":"Legal Aid Services Act, 2020, s. 4","url":"https://www.ontario.ca/laws/statute/20l11"},{"sourceId":"on/lasa-2020/s-7","label":"Legal Aid Services Act, 2020, s. 7(1)","url":"https://www.ontario.ca/laws/statute/20l11"}]},{"id":"legal_aid.financial_limits","text":"Legal Aid Ontario's published income limits for a criminal certificate: family income must be lower than CAD 45,440 for a family of 1 to 4 people, and lower than CAD 50,803 for a family of 5. Its published asset limit for criminal certificates is CAD 15,000. If you have income or property, it may ask you to repay some or all of the fees under a contribution agreement. Legal Aid Ontario decides.","cites":[{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"},{"sourceId":"lao/news-2025-01-28-eligibility","label":"Legal Aid Ontario, Legal Aid Ontario raising financial eligibility for duty counsel and criminal certificate services (January 28, 2025)","url":"https://www.legalaid.on.ca/news/legal-aid-ontario-raising-financial-eligibility-for-duty-counsel-and-criminal-certificate-services/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]}],"next":[{"id":"legal_aid.decision_time","text":"Legal Aid Ontario can take up to five business days to decide once it has your information, longer if the case is complicated.","cites":[{"sourceId":"lao/decision-time","label":"Legal Aid Ontario, How long after I send in my documents does it take to get a legal aid decision?","url":"https://www.legalaid.on.ca/faq/how-long-after-i-send-in-my-documents-does-it-take-to-get-a-legal-aid-decision/"}]},{"id":"certificate.what","text":"A legal aid certificate confirms that Legal Aid Ontario will cover the cost of a private lawyer who accepts legal aid work, for a set number of hours. Legal Aid Ontario pays the lawyer directly; you do not pay them.","cites":[{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"},{"sourceId":"lao/working-with-your-lawyer","label":"Legal Aid Ontario, Working with your lawyer","url":"https://www.legalaid.on.ca/working-with-your-lawyer/"}]}],"do":[{"id":"legal_aid.phone","text":"Apply by phone: 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern. TTY: 711.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"id":"legal_aid.through_lawyer","text":"Out of custody, a lawyer who does legal aid work can start the application for you. I can.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"},{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"id":"legal_aid.online","text":"Some people can apply online through Legal Aid Ontario's Client Portal, for example people who own no property and receive Ontario Works or ODSP.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"id":"legal_aid.what_you_need","text":"You will need to know what you are charged with. If the police did not tell you, get your disclosure from the Crown Attorney's office. Have proof of any income ready, such as pay stubs, social assistance stubs or employment insurance statements.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"id":"legal_aid.court_soon","text":"If your court date is within five business days, talk to duty counsel at that courthouse first. If it is further away, call Legal Aid Ontario with your disclosure.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"}]},{"id":"certificate.send_numbers","text":"Once your certificate is issued, send me your Legal Aid Ontario client number and certificate number. I will let Legal Aid Ontario know I am acting for you.","cites":[{"sourceId":"lao/tell-lao-your-lawyer","label":"Legal Aid Ontario, How do I let legal aid know who my lawyer is?","url":"https://www.legalaid.on.ca/faq/how-do-i-let-legal-aid-know-who-my-lawyer-is/"}]},{"id":"certificate.send_papers","text":"Send me as well: your next court date and courthouse, your release papers, and any disclosure you have.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]}],"dont":[{"id":"certificate.choose_carefully","text":"Do not pick a lawyer in a hurry: Legal Aid Ontario rarely lets you change lawyers.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]}],"help":[{"id":"certificate.i_accept","text":"I accept legal aid certificates for criminal defence.","cites":[{"sourceId":"on/lasa-2020/s-5","label":"Legal Aid Services Act, 2020, s. 5(2)","url":"https://www.ontario.ca/laws/statute/20l11"},{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"}]},{"id":"certificate.name_me","text":"If you want me as your lawyer, name me, Jonathan Kleiman, when you apply. Legal Aid Ontario then notifies me through its lawyer portal.","cites":[{"sourceId":"lao/tell-lao-your-lawyer","label":"Legal Aid Ontario, How do I let legal aid know who my lawyer is?","url":"https://www.legalaid.on.ca/faq/how-do-i-let-legal-aid-know-who-my-lawyer-is/"},{"sourceId":"lao/how-lawyer-receives-certificate","label":"Legal Aid Ontario, How does my lawyer receive the certificate?","url":"https://www.legalaid.on.ca/faq/how-does-my-lawyer-receive-the-certificate/"}]}],"incomeCheck":null},"summary":"Apply by phone: 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern. TTY: 711. I accept legal aid certificates for criminal defence. If you want me as your lawyer, name me, Jonathan Kleiman, when you apply. Legal Aid Ontario then notifies me through its lawyer portal.","steps":[{"label":"Who qualifies","detail":"Legal Aid Ontario may pay for your lawyer if you qualify financially and you are charged with a crime that could send you to jail if you are found guilty, or you are 12 to 17 and charged under the Youth Criminal Justice Act.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"on/lasa-2020/s-4","label":"Legal Aid Services Act, 2020, s. 4","url":"https://www.ontario.ca/laws/statute/20l11"},{"sourceId":"on/lasa-2020/s-7","label":"Legal Aid Services Act, 2020, s. 7(1)","url":"https://www.ontario.ca/laws/statute/20l11"}]},{"label":"Who qualifies","detail":"Legal Aid Ontario's published income limits for a criminal certificate: family income must be lower than CAD 45,440 for a family of 1 to 4 people, and lower than CAD 50,803 for a family of 5. Its published asset limit for criminal certificates is CAD 15,000. If you have income or property, it may ask you to repay some or all of the fees under a contribution agreement. Legal Aid Ontario decides.","cites":[{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"},{"sourceId":"lao/news-2025-01-28-eligibility","label":"Legal Aid Ontario, Legal Aid Ontario raising financial eligibility for duty counsel and criminal certificate services (January 28, 2025)","url":"https://www.legalaid.on.ca/news/legal-aid-ontario-raising-financial-eligibility-for-duty-counsel-and-criminal-certificate-services/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"What happens next","detail":"Legal Aid Ontario can take up to five business days to decide once it has your information, longer if the case is complicated.","cites":[{"sourceId":"lao/decision-time","label":"Legal Aid Ontario, How long after I send in my documents does it take to get a legal aid decision?","url":"https://www.legalaid.on.ca/faq/how-long-after-i-send-in-my-documents-does-it-take-to-get-a-legal-aid-decision/"}]},{"label":"What happens next","detail":"A legal aid certificate confirms that Legal Aid Ontario will cover the cost of a private lawyer who accepts legal aid work, for a set number of hours. Legal Aid Ontario pays the lawyer directly; you do not pay them.","cites":[{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"},{"sourceId":"lao/working-with-your-lawyer","label":"Legal Aid Ontario, Working with your lawyer","url":"https://www.legalaid.on.ca/working-with-your-lawyer/"}]},{"label":"What to do now","detail":"Apply by phone: 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern. TTY: 711.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"What to do now","detail":"Out of custody, a lawyer who does legal aid work can start the application for you. I can.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"},{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"label":"What to do now","detail":"Some people can apply online through Legal Aid Ontario's Client Portal, for example people who own no property and receive Ontario Works or ODSP.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"What to do now","detail":"You will need to know what you are charged with. If the police did not tell you, get your disclosure from the Crown Attorney's office. Have proof of any income ready, such as pay stubs, social assistance stubs or employment insurance statements.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"What to do now","detail":"If your court date is within five business days, talk to duty counsel at that courthouse first. If it is further away, call Legal Aid Ontario with your disclosure.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"}]},{"label":"What to do now","detail":"Once your certificate is issued, send me your Legal Aid Ontario client number and certificate number. I will let Legal Aid Ontario know I am acting for you.","cites":[{"sourceId":"lao/tell-lao-your-lawyer","label":"Legal Aid Ontario, How do I let legal aid know who my lawyer is?","url":"https://www.legalaid.on.ca/faq/how-do-i-let-legal-aid-know-who-my-lawyer-is/"}]},{"label":"What to do now","detail":"Send me as well: your next court date and courthouse, your release papers, and any disclosure you have.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"label":"What not to do","detail":"Do not pick a lawyer in a hurry: Legal Aid Ontario rarely lets you change lawyers.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"label":"Getting a lawyer","detail":"I accept legal aid certificates for criminal defence.","cites":[{"sourceId":"on/lasa-2020/s-5","label":"Legal Aid Services Act, 2020, s. 5(2)","url":"https://www.ontario.ca/laws/statute/20l11"},{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"}]},{"label":"Getting a lawyer","detail":"If you want me as your lawyer, name me, Jonathan Kleiman, when you apply. Legal Aid Ontario then notifies me through its lawyer portal.","cites":[{"sourceId":"lao/tell-lao-your-lawyer","label":"Legal Aid Ontario, How do I let legal aid know who my lawyer is?","url":"https://www.legalaid.on.ca/faq/how-do-i-let-legal-aid-know-who-my-lawyer-is/"},{"sourceId":"lao/how-lawyer-receives-certificate","label":"Legal Aid Ontario, How does my lawyer receive the certificate?","url":"https://www.legalaid.on.ca/faq/how-does-my-lawyer-receive-the-certificate/"}]}],"boundary":{"kind":"needs_lawyer","reason":"Legal Aid Ontario decides eligibility, and a lawyer takes the case under the certificate.","actions":[{"id":"handoff","label":"Have me take the case on a legal aid certificate","sku":"criminal.legal_aid"},{"id":"book_call","label":"Book a short call with me","sku":"legal.call"},{"id":"open_url","label":"Legal Aid Ontario: how to apply","href":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"criminal/legal-aid/apply","title":"Legal aid for a criminal charge: who qualifies and how to apply","status":"unverified"},{"id":"criminal/legal-aid/certificate","title":"The legal aid certificate, and what to send me","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"criminal.legal_aid_path","version":1,"kind":"guide","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/criminal.legal_aid_path/run":{"get":{"operationId":"get_criminal_legal_aid_path","tags":["criminal"],"summary":"Getting a legal aid lawyer for a criminal charge (from a URL)","description":"Use this when someone charged with a crime in Ontario cannot afford a lawyer, or already has a Legal Aid Ontario certificate and wants me to act. Ontario only: Legal Aid Ontario certificates for criminal charges. Do not use it for family, immigration or refugee matters (I take legal aid for criminal defence only), or to apply for the person (they apply to Legal Aid Ontario themselves). Next: handoff_create with the certificate details.\n\nHow to apply to Legal Aid Ontario for a certificate, what a certificate is, and what to send me once you have one. Legal Aid certificates accepted for criminal defence matters.\n\nCall this when someone charged with a crime in Ontario cannot afford a lawyer, or already has a legal aid certificate and wants me to act. Ask whether a certificate has already been issued and whether the person is in custody. Family size and income are optional and only used to compare with Legal Aid Ontario's published limit; Legal Aid Ontario decides eligibility. The person applies to Legal Aid Ontario themselves (or through a lawyer); an agent cannot apply for them. To have me take the case, use the handoff action with sku criminal.legal_aid.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `criminal/legal-aid/apply` (unverified), `criminal/legal-aid/certificate` (unverified). Availability: unverified.\nMCP tool: `criminal_legal_aid_path`. Markdown: https://mithril.law/criminal/legal-aid-path.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/criminal.legal_aid_path/run?hasCertificate=false&inCustody=false&youth=false","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"hasCertificate","in":"query","required":false,"description":"Yes if Legal Aid Ontario has already given you a certificate.","schema":{"default":false,"title":"A certificate has already been issued","description":"Yes if Legal Aid Ontario has already given you a certificate.","type":"boolean"}},{"name":"inCustody","in":"query","required":false,"description":"Yes if the person charged is in jail or a detention centre.","schema":{"default":false,"title":"In custody now","description":"Yes if the person charged is in jail or a detention centre.","type":"boolean"}},{"name":"youth","in":"query","required":false,"description":"12 to 17 when the offence is said to have happened.","schema":{"default":false,"title":"The person charged is under 18","description":"12 to 17 when the offence is said to have happened.","type":"boolean"}},{"name":"familySize","in":"query","required":false,"description":"How many people in your family, including you, as Legal Aid Ontario counts them.","schema":{"title":"Family size","description":"How many people in your family, including you, as Legal Aid Ontario counts them.","type":"integer","minimum":1,"maximum":30}},{"name":"familyIncome","in":"query","required":false,"description":"Your family’s total yearly income. Used only to compare with Legal Aid Ontario’s published limit.","schema":{"title":"Yearly family income (CAD)","description":"Your family’s total yearly income. Used only to compare with Legal Aid Ontario’s published limit.","type":"number","minimum":0}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"hasCertificate":{"type":"boolean"},"inCustody":{"type":"boolean"},"eligibility":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"Who qualifies"},"next":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What happens next"},"do":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What to do now"},"dont":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What not to do"},"help":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"Working with me"},"incomeCheck":{"anyOf":[{"type":"object","properties":{"familySize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyIncome":{"type":"number"},"limit":{"type":["number","null"]},"underLimit":{"type":["boolean","null"]}},"required":["familySize","familyIncome","limit","underLimit"]},{"type":"null"}],"title":"Income compared with the published limit","description":"Information only. Legal Aid Ontario decides."}},"required":["hasCertificate","inCustody","eligibility","next","do","dont","help","incomeCheck"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"criminal.legal_aid_path","version":1,"title":"Getting a legal aid lawyer for a criminal charge"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"hasCertificate":false,"inCustody":false,"eligibility":[{"id":"legal_aid.coverage","text":"Legal Aid Ontario may pay for your lawyer if you qualify financially and you are charged with a crime that could send you to jail if you are found guilty, or you are 12 to 17 and charged under the Youth Criminal Justice Act.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"on/lasa-2020/s-4","label":"Legal Aid Services Act, 2020, s. 4","url":"https://www.ontario.ca/laws/statute/20l11"},{"sourceId":"on/lasa-2020/s-7","label":"Legal Aid Services Act, 2020, s. 7(1)","url":"https://www.ontario.ca/laws/statute/20l11"}]},{"id":"legal_aid.financial_limits","text":"Legal Aid Ontario's published income limits for a criminal certificate: family income must be lower than CAD 45,440 for a family of 1 to 4 people, and lower than CAD 50,803 for a family of 5. Its published asset limit for criminal certificates is CAD 15,000. If you have income or property, it may ask you to repay some or all of the fees under a contribution agreement. Legal Aid Ontario decides.","cites":[{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"},{"sourceId":"lao/news-2025-01-28-eligibility","label":"Legal Aid Ontario, Legal Aid Ontario raising financial eligibility for duty counsel and criminal certificate services (January 28, 2025)","url":"https://www.legalaid.on.ca/news/legal-aid-ontario-raising-financial-eligibility-for-duty-counsel-and-criminal-certificate-services/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]}],"next":[{"id":"legal_aid.decision_time","text":"Legal Aid Ontario can take up to five business days to decide once it has your information, longer if the case is complicated.","cites":[{"sourceId":"lao/decision-time","label":"Legal Aid Ontario, How long after I send in my documents does it take to get a legal aid decision?","url":"https://www.legalaid.on.ca/faq/how-long-after-i-send-in-my-documents-does-it-take-to-get-a-legal-aid-decision/"}]},{"id":"certificate.what","text":"A legal aid certificate confirms that Legal Aid Ontario will cover the cost of a private lawyer who accepts legal aid work, for a set number of hours. Legal Aid Ontario pays the lawyer directly; you do not pay them.","cites":[{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"},{"sourceId":"lao/working-with-your-lawyer","label":"Legal Aid Ontario, Working with your lawyer","url":"https://www.legalaid.on.ca/working-with-your-lawyer/"}]}],"do":[{"id":"legal_aid.phone","text":"Apply by phone: 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern. TTY: 711.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"id":"legal_aid.through_lawyer","text":"Out of custody, a lawyer who does legal aid work can start the application for you. I can.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"},{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"id":"legal_aid.online","text":"Some people can apply online through Legal Aid Ontario's Client Portal, for example people who own no property and receive Ontario Works or ODSP.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"id":"legal_aid.what_you_need","text":"You will need to know what you are charged with. If the police did not tell you, get your disclosure from the Crown Attorney's office. Have proof of any income ready, such as pay stubs, social assistance stubs or employment insurance statements.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"id":"legal_aid.court_soon","text":"If your court date is within five business days, talk to duty counsel at that courthouse first. If it is further away, call Legal Aid Ontario with your disclosure.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"}]},{"id":"certificate.send_numbers","text":"Once your certificate is issued, send me your Legal Aid Ontario client number and certificate number. I will let Legal Aid Ontario know I am acting for you.","cites":[{"sourceId":"lao/tell-lao-your-lawyer","label":"Legal Aid Ontario, How do I let legal aid know who my lawyer is?","url":"https://www.legalaid.on.ca/faq/how-do-i-let-legal-aid-know-who-my-lawyer-is/"}]},{"id":"certificate.send_papers","text":"Send me as well: your next court date and courthouse, your release papers, and any disclosure you have.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]}],"dont":[{"id":"certificate.choose_carefully","text":"Do not pick a lawyer in a hurry: Legal Aid Ontario rarely lets you change lawyers.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]}],"help":[{"id":"certificate.i_accept","text":"I accept legal aid certificates for criminal defence.","cites":[{"sourceId":"on/lasa-2020/s-5","label":"Legal Aid Services Act, 2020, s. 5(2)","url":"https://www.ontario.ca/laws/statute/20l11"},{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"}]},{"id":"certificate.name_me","text":"If you want me as your lawyer, name me, Jonathan Kleiman, when you apply. Legal Aid Ontario then notifies me through its lawyer portal.","cites":[{"sourceId":"lao/tell-lao-your-lawyer","label":"Legal Aid Ontario, How do I let legal aid know who my lawyer is?","url":"https://www.legalaid.on.ca/faq/how-do-i-let-legal-aid-know-who-my-lawyer-is/"},{"sourceId":"lao/how-lawyer-receives-certificate","label":"Legal Aid Ontario, How does my lawyer receive the certificate?","url":"https://www.legalaid.on.ca/faq/how-does-my-lawyer-receive-the-certificate/"}]}],"incomeCheck":null},"summary":"Apply by phone: 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern. TTY: 711. I accept legal aid certificates for criminal defence. If you want me as your lawyer, name me, Jonathan Kleiman, when you apply. Legal Aid Ontario then notifies me through its lawyer portal.","steps":[{"label":"Who qualifies","detail":"Legal Aid Ontario may pay for your lawyer if you qualify financially and you are charged with a crime that could send you to jail if you are found guilty, or you are 12 to 17 and charged under the Youth Criminal Justice Act.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"on/lasa-2020/s-4","label":"Legal Aid Services Act, 2020, s. 4","url":"https://www.ontario.ca/laws/statute/20l11"},{"sourceId":"on/lasa-2020/s-7","label":"Legal Aid Services Act, 2020, s. 7(1)","url":"https://www.ontario.ca/laws/statute/20l11"}]},{"label":"Who qualifies","detail":"Legal Aid Ontario's published income limits for a criminal certificate: family income must be lower than CAD 45,440 for a family of 1 to 4 people, and lower than CAD 50,803 for a family of 5. Its published asset limit for criminal certificates is CAD 15,000. If you have income or property, it may ask you to repay some or all of the fees under a contribution agreement. Legal Aid Ontario decides.","cites":[{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"},{"sourceId":"lao/news-2025-01-28-eligibility","label":"Legal Aid Ontario, Legal Aid Ontario raising financial eligibility for duty counsel and criminal certificate services (January 28, 2025)","url":"https://www.legalaid.on.ca/news/legal-aid-ontario-raising-financial-eligibility-for-duty-counsel-and-criminal-certificate-services/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"What happens next","detail":"Legal Aid Ontario can take up to five business days to decide once it has your information, longer if the case is complicated.","cites":[{"sourceId":"lao/decision-time","label":"Legal Aid Ontario, How long after I send in my documents does it take to get a legal aid decision?","url":"https://www.legalaid.on.ca/faq/how-long-after-i-send-in-my-documents-does-it-take-to-get-a-legal-aid-decision/"}]},{"label":"What happens next","detail":"A legal aid certificate confirms that Legal Aid Ontario will cover the cost of a private lawyer who accepts legal aid work, for a set number of hours. Legal Aid Ontario pays the lawyer directly; you do not pay them.","cites":[{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"},{"sourceId":"lao/working-with-your-lawyer","label":"Legal Aid Ontario, Working with your lawyer","url":"https://www.legalaid.on.ca/working-with-your-lawyer/"}]},{"label":"What to do now","detail":"Apply by phone: 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern. TTY: 711.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"What to do now","detail":"Out of custody, a lawyer who does legal aid work can start the application for you. I can.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"},{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"label":"What to do now","detail":"Some people can apply online through Legal Aid Ontario's Client Portal, for example people who own no property and receive Ontario Works or ODSP.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"What to do now","detail":"You will need to know what you are charged with. If the police did not tell you, get your disclosure from the Crown Attorney's office. Have proof of any income ready, such as pay stubs, social assistance stubs or employment insurance statements.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"What to do now","detail":"If your court date is within five business days, talk to duty counsel at that courthouse first. If it is further away, call Legal Aid Ontario with your disclosure.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"}]},{"label":"What to do now","detail":"Once your certificate is issued, send me your Legal Aid Ontario client number and certificate number. I will let Legal Aid Ontario know I am acting for you.","cites":[{"sourceId":"lao/tell-lao-your-lawyer","label":"Legal Aid Ontario, How do I let legal aid know who my lawyer is?","url":"https://www.legalaid.on.ca/faq/how-do-i-let-legal-aid-know-who-my-lawyer-is/"}]},{"label":"What to do now","detail":"Send me as well: your next court date and courthouse, your release papers, and any disclosure you have.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"label":"What not to do","detail":"Do not pick a lawyer in a hurry: Legal Aid Ontario rarely lets you change lawyers.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"label":"Getting a lawyer","detail":"I accept legal aid certificates for criminal defence.","cites":[{"sourceId":"on/lasa-2020/s-5","label":"Legal Aid Services Act, 2020, s. 5(2)","url":"https://www.ontario.ca/laws/statute/20l11"},{"sourceId":"lao/will-legal-aid-pay","label":"Legal Aid Ontario, Will legal aid pay for my lawyer?","url":"https://www.legalaid.on.ca/will-legal-aid-pay-for-my-lawyer/"}]},{"label":"Getting a lawyer","detail":"If you want me as your lawyer, name me, Jonathan Kleiman, when you apply. Legal Aid Ontario then notifies me through its lawyer portal.","cites":[{"sourceId":"lao/tell-lao-your-lawyer","label":"Legal Aid Ontario, How do I let legal aid know who my lawyer is?","url":"https://www.legalaid.on.ca/faq/how-do-i-let-legal-aid-know-who-my-lawyer-is/"},{"sourceId":"lao/how-lawyer-receives-certificate","label":"Legal Aid Ontario, How does my lawyer receive the certificate?","url":"https://www.legalaid.on.ca/faq/how-does-my-lawyer-receive-the-certificate/"}]}],"boundary":{"kind":"needs_lawyer","reason":"Legal Aid Ontario decides eligibility, and a lawyer takes the case under the certificate.","actions":[{"id":"handoff","label":"Have me take the case on a legal aid certificate","sku":"criminal.legal_aid"},{"id":"book_call","label":"Book a short call with me","sku":"legal.call"},{"id":"open_url","label":"Legal Aid Ontario: how to apply","href":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"criminal/legal-aid/apply","title":"Legal aid for a criminal charge: who qualifies and how to apply","status":"unverified"},{"id":"criminal/legal-aid/certificate","title":"The legal aid certificate, and what to send me","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"criminal.legal_aid_path","version":1,"kind":"guide","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/criminal.what_happens_next/runs":{"post":{"operationId":"run_criminal_what_happens_next","tags":["criminal"],"summary":"Someone was arrested or charged: what happens next","description":"Use this when someone in Ontario has been arrested, charged, released with conditions, or has a criminal court date, and the person wants to know what happens next and their rights at this stage. Criminal charges in Ontario courts. Do not use it to discuss or assess what happened (do not collect the facts), for charges outside Ontario, or for provincial offences such as traffic tickets. Next: criminal_intake_triage for urgency; handoff_create, since the boundary is always needs_lawyer. If anyone is in custody now, give the person the call-now action first.\n\nFor an accused person or their family: what happens next in order, your rights at this stage, what to do and not do, and how to get a lawyer, every line cited.\n\nCall this when someone has been arrested, charged, released with conditions, or has a criminal court date in Ontario. Ask the person one thing first: where things are now (the stage). Then, if they have it, the next court date from their papers, and whether the person charged is under 18. Do not ask about what happened: the answer never depends on it, and the person should not discuss the facts with anyone but a lawyer. If anyone is in custody now, give the person the 'Call me now' action straight away. This is information, not legal advice. The boundary is always needs_lawyer.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `criminal/arrest/before-a-justice` (unverified), `criminal/bail/hearing` (unverified), `criminal/release/conditions-and-court-dates` (unverified), `criminal/disclosure` (unverified), `criminal/youth` (unverified), `criminal/rights/counsel` (unverified), `criminal/legal-aid/apply` (unverified), `criminal/intake/urgency` (unverified). Availability: unverified.\nMCP tool: `criminal_what_happens_next`. Markdown: https://mithril.law/criminal/what-happens-next.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"stage":{"anyOf":[{"type":"string","const":"arrested_held","title":"Arrested and still held by the police"},{"type":"string","const":"bail_hearing_scheduled","title":"In custody, waiting for a bail hearing"},{"type":"string","const":"released_with_conditions","title":"Released with conditions (an undertaking or a release order)"},{"type":"string","const":"summons_or_appearance_notice","title":"Given a summons or an appearance notice"},{"type":"string","const":"first_appearance_scheduled","title":"First court date is set"},{"type":"string","const":"after_first_appearance","title":"Already had a first court appearance"}],"title":"Where things are now","description":"Pick the closest. If you are helping someone else, answer for them."},"nextCourtDate":{"title":"Next court date","description":"From the release papers, summons or appearance notice, if there is one. If you are waiting for a bail hearing, the date of the hearing.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"youth":{"default":false,"title":"The person charged is under 18","description":"Yes if they were 12 to 17 when the offence is said to have happened.","type":"boolean"},"today":{"title":"Today’s date","description":"Leave blank to use today’s date in Ontario.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["stage"],"title":"What happens next"}}},"examples":{"example1":{"summary":"A family member was arrested last night and is still held","value":{"input":{"stage":"arrested_held","youth":false}}},"example2":{"summary":"Released on an undertaking, first court date in a week","value":{"input":{"stage":"released_with_conditions","nextCourtDate":"2026-09-30","youth":false,"today":"2026-09-23"}}},"example3":{"summary":"A 16-year-old received a summons","value":{"input":{"stage":"summons_or_appearance_notice","youth":true}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"stage":{"type":"string"},"stageLabel":{"type":"string"},"youth":{"type":"boolean"},"inCustody":{"type":"boolean"},"urgency":{"anyOf":[{"type":"string","const":"immediate","title":"Immediate: call now"},{"type":"string","const":"soon","title":"Soon: this week"},{"type":"string","const":"standard","title":"Standard: book a consultation"}]},"urgencyReasons":{"type":"array","items":{"type":"string"}},"courtDate":{"anyOf":[{"type":"object","properties":{"date":{"type":"string"},"daysAway":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"line":{"type":"string"}},"required":["date","daysAway","line"]},{"type":"null"}]},"next":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What happens next"},"rights":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"Your rights"},"do":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What to do now"},"dont":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What not to do"},"help":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"Getting a lawyer"}},"required":["stage","stageLabel","youth","inCustody","urgency","urgencyReasons","courtDate","next","rights","do","dont","help"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"criminal.what_happens_next","version":1,"title":"Someone was arrested or charged: what happens next"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"stage":"arrested_held","stageLabel":"Arrested and still held by the police","youth":false,"inCustody":true,"urgency":"immediate","urgencyReasons":["Someone is in custody now."],"courtDate":null,"next":[{"id":"arrest.before_justice","text":"The police must either release you or take you before a justice of the peace. If a justice is available, that must happen without unreasonable delay and within 24 hours of the arrest. If no justice is available within 24 hours, it must happen as soon as possible.","cites":[{"sourceId":"ca/criminal-code/s-503","label":"Criminal Code, s. 503(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-503.html"}]},{"id":"arrest.police_release","text":"For most charges, the police can still release you before then, with an appearance notice or an undertaking, once they are satisfied that holding you is no longer necessary.","cites":[{"sourceId":"ca/criminal-code/s-503","label":"Criminal Code, s. 503(1.1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-503.html"}]},{"id":"arrest.weekend_bail_court","text":"The Ontario Court of Justice runs bail courts on weekends and statutory holidays, so a hearing can still happen within 24 hours of a weekend or holiday arrest.","cites":[{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"id":"bail.hearing","text":"At the bail hearing, a justice of the peace or a judge decides whether you are released until the case is over, and on what terms. Duty counsel or your own lawyer speaks for you.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"id":"bail.adjournment","text":"The hearing can be adjourned, but not for more than three clear days unless you agree.","cites":[{"sourceId":"ca/criminal-code/s-516","label":"Criminal Code, s. 516","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-516.html"}]},{"id":"bail.review","text":"If you are held, or released on terms you cannot live with, you can apply to a judge to review the order.","cites":[{"sourceId":"ca/criminal-code/s-520","label":"Criminal Code, s. 520(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-520.html"}]}],"rights":[{"id":"counsel.right","text":"When you are arrested or detained, you have the right to be told promptly why, to speak to a lawyer without delay, and to be told that you have that right.","cites":[{"sourceId":"ca/charter/s-10","label":"Canadian Charter of Rights and Freedoms, s. 10(a), (b)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-10"}]},{"id":"bail.reasonable_bail","text":"You have the right not to be denied reasonable bail without just cause.","cites":[{"sourceId":"ca/charter/s-11","label":"Canadian Charter of Rights and Freedoms, s. 11(e)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-11"}]},{"id":"bail.release_default","text":"For most charges, the starting point is release without conditions. The Crown has to show why you should be held, or why a stricter form of release is needed.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"id":"bail.reverse_onus","text":"For some charges and situations listed in the Criminal Code, this is reversed: you have to show why you should not be held, by clearly showing that your release plan deals with the risks.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(6)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"id":"bail.ladder","text":"Release comes first, at the earliest reasonable opportunity and on the least onerous conditions that fit your circumstances. In most cases the justice starts at the least onerous form of release and can move to a stricter one only if the Crown shows the less onerous one is not enough. This is called the ladder principle.","cites":[{"sourceId":"ca/criminal-code/s-493.1","label":"Criminal Code, s. 493.1","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-493.1.html"},{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(2.01)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"},{"sourceId":"scc/2017-scc-27","label":"R. v. Antic, 2017 SCC 27, para. 67","url":"https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/16649/index.do"}]},{"id":"bail.grounds","text":"Holding someone until trial is justified only to make sure they come to court, to protect the public, or to maintain confidence in the administration of justice.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(10)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"id":"conditions.must_be_reasonable","text":"Bail conditions must be clearly stated, few in number, necessary, reasonable, the least onerous in the circumstances, and linked to the risks the Criminal Code lists.","cites":[{"sourceId":"scc/2020-scc-14","label":"R. v. Zora, 2020 SCC 14, para. 6","url":"https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/18391/index.do"}]}],"do":[{"id":"counsel.ask_officer","text":"Tell the officer you want to speak to a lawyer. The officer will call a lawyer you can speak to by phone.","cites":[{"sourceId":"lao/speak-to-a-lawyer","label":"Legal Aid Ontario, Where can I speak to a lawyer about my rights?","url":"https://www.legalaid.on.ca/faq/where-can-i-speak-to-a-lawyer-about-my-rights/"}]},{"id":"bail.release_plan","text":"Before the hearing, tell your lawyer or duty counsel where you would live and who could support or supervise you. That is your release plan. Do not talk about the charges at the hearing.","cites":[{"sourceId":"lao/bail-hearings","label":"Legal Aid Ontario, Bail hearings","url":"https://www.legalaid.on.ca/faq/bail-hearings/"}]},{"id":"court.attend","text":"Go to every court date, at the time and place on your papers, and arrive at least 30 minutes early.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]}],"dont":[{"id":"counsel.stay_silent","text":"Do not talk about what happened with anyone except your lawyer: not the police, not anyone else involved, not friends or family, and not by text, phone or online. You have the right to remain silent.","cites":[{"sourceId":"ca/charter/s-10","label":"Canadian Charter of Rights and Freedoms, s. 10(b)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-10"},{"sourceId":"lao/criminal-charge-process","label":"Legal Aid Ontario, Criminal charge process","url":"https://www.legalaid.on.ca/faq/criminal-charge-process/"}]},{"id":"conditions.keep_exactly","text":"If you are released with conditions, keep every one exactly as written until a court changes it. Breaking a condition without a lawful excuse is a separate criminal offence, and you can be arrested again.","cites":[{"sourceId":"ca/criminal-code/s-145","label":"Criminal Code, s. 145(4), (5)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-145.html"},{"sourceId":"lao/bail-hearings","label":"Legal Aid Ontario, Bail hearings","url":"https://www.legalaid.on.ca/faq/bail-hearings/"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"id":"court.dont_miss","text":"Do not miss court. Missing a court date without a lawful excuse is a separate criminal offence, and a warrant can be issued for your arrest.","cites":[{"sourceId":"ca/criminal-code/s-145","label":"Criminal Code, s. 145(2)-(4)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-145.html"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]}],"help":[{"id":"counsel.duty_counsel","text":"Duty counsel are lawyers from Legal Aid Ontario at the courthouse. If you qualify, they can help at no cost: advice about your rights, your bail hearing, an adjournment, a guilty plea, and referrals. Duty counsel are your lawyer for that day only.","cites":[{"sourceId":"lao/duty-counsel","label":"Legal Aid Ontario, What are duty counsel?","url":"https://www.legalaid.on.ca/faq/what-are-duty-counsel/"},{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"}]},{"id":"counsel.duty_counsel_custody","text":"If you are in custody, you are considered eligible for duty counsel, and duty counsel are in bail court every day.","cites":[{"sourceId":"lao/duty-counsel-eligibility","label":"Legal Aid Ontario, What is the financial eligibility threshold for duty counsel services?","url":"https://www.legalaid.on.ca/faq/what-is-the-financial-eligibility-threshold-for-duty-counsel-services/"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"id":"legal_aid.summary","text":"Legal Aid Ontario may pay for a lawyer if you qualify financially and you are charged with a crime that could send you to jail, or you are 12 to 17 and charged under the Youth Criminal Justice Act. Apply by phone at 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"id":"legal_aid.summary_custody","text":"If you are in a jail or detention centre, ask the legal aid worker there to help you apply.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]}]},"summary":"Arrested and still held by the police. The police must either release you or take you before a justice of the peace. If a justice is available, that must happen without unreasonable delay and within 24 hours of the arrest. If no justice is available within 24 hours, it must happen as soon as possible. This is urgent: call me now.","steps":[{"label":"What happens next","detail":"The police must either release you or take you before a justice of the peace. If a justice is available, that must happen without unreasonable delay and within 24 hours of the arrest. If no justice is available within 24 hours, it must happen as soon as possible.","cites":[{"sourceId":"ca/criminal-code/s-503","label":"Criminal Code, s. 503(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-503.html"}]},{"label":"What happens next","detail":"For most charges, the police can still release you before then, with an appearance notice or an undertaking, once they are satisfied that holding you is no longer necessary.","cites":[{"sourceId":"ca/criminal-code/s-503","label":"Criminal Code, s. 503(1.1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-503.html"}]},{"label":"What happens next","detail":"The Ontario Court of Justice runs bail courts on weekends and statutory holidays, so a hearing can still happen within 24 hours of a weekend or holiday arrest.","cites":[{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"What happens next","detail":"At the bail hearing, a justice of the peace or a judge decides whether you are released until the case is over, and on what terms. Duty counsel or your own lawyer speaks for you.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"What happens next","detail":"The hearing can be adjourned, but not for more than three clear days unless you agree.","cites":[{"sourceId":"ca/criminal-code/s-516","label":"Criminal Code, s. 516","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-516.html"}]},{"label":"What happens next","detail":"If you are held, or released on terms you cannot live with, you can apply to a judge to review the order.","cites":[{"sourceId":"ca/criminal-code/s-520","label":"Criminal Code, s. 520(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-520.html"}]},{"label":"Your rights","detail":"When you are arrested or detained, you have the right to be told promptly why, to speak to a lawyer without delay, and to be told that you have that right.","cites":[{"sourceId":"ca/charter/s-10","label":"Canadian Charter of Rights and Freedoms, s. 10(a), (b)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-10"}]},{"label":"Your rights","detail":"You have the right not to be denied reasonable bail without just cause.","cites":[{"sourceId":"ca/charter/s-11","label":"Canadian Charter of Rights and Freedoms, s. 11(e)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-11"}]},{"label":"Your rights","detail":"For most charges, the starting point is release without conditions. The Crown has to show why you should be held, or why a stricter form of release is needed.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"label":"Your rights","detail":"For some charges and situations listed in the Criminal Code, this is reversed: you have to show why you should not be held, by clearly showing that your release plan deals with the risks.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(6)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"label":"Your rights","detail":"Release comes first, at the earliest reasonable opportunity and on the least onerous conditions that fit your circumstances. In most cases the justice starts at the least onerous form of release and can move to a stricter one only if the Crown shows the less onerous one is not enough. This is called the ladder principle.","cites":[{"sourceId":"ca/criminal-code/s-493.1","label":"Criminal Code, s. 493.1","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-493.1.html"},{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(2.01)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"},{"sourceId":"scc/2017-scc-27","label":"R. v. Antic, 2017 SCC 27, para. 67","url":"https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/16649/index.do"}]},{"label":"Your rights","detail":"Holding someone until trial is justified only to make sure they come to court, to protect the public, or to maintain confidence in the administration of justice.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(10)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"label":"Your rights","detail":"Bail conditions must be clearly stated, few in number, necessary, reasonable, the least onerous in the circumstances, and linked to the risks the Criminal Code lists.","cites":[{"sourceId":"scc/2020-scc-14","label":"R. v. Zora, 2020 SCC 14, para. 6","url":"https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/18391/index.do"}]},{"label":"What to do now","detail":"Tell the officer you want to speak to a lawyer. The officer will call a lawyer you can speak to by phone.","cites":[{"sourceId":"lao/speak-to-a-lawyer","label":"Legal Aid Ontario, Where can I speak to a lawyer about my rights?","url":"https://www.legalaid.on.ca/faq/where-can-i-speak-to-a-lawyer-about-my-rights/"}]},{"label":"What to do now","detail":"Before the hearing, tell your lawyer or duty counsel where you would live and who could support or supervise you. That is your release plan. Do not talk about the charges at the hearing.","cites":[{"sourceId":"lao/bail-hearings","label":"Legal Aid Ontario, Bail hearings","url":"https://www.legalaid.on.ca/faq/bail-hearings/"}]},{"label":"What to do now","detail":"Go to every court date, at the time and place on your papers, and arrive at least 30 minutes early.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"label":"What not to do","detail":"Do not talk about what happened with anyone except your lawyer: not the police, not anyone else involved, not friends or family, and not by text, phone or online. You have the right to remain silent.","cites":[{"sourceId":"ca/charter/s-10","label":"Canadian Charter of Rights and Freedoms, s. 10(b)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-10"},{"sourceId":"lao/criminal-charge-process","label":"Legal Aid Ontario, Criminal charge process","url":"https://www.legalaid.on.ca/faq/criminal-charge-process/"}]},{"label":"What not to do","detail":"If you are released with conditions, keep every one exactly as written until a court changes it. Breaking a condition without a lawful excuse is a separate criminal offence, and you can be arrested again.","cites":[{"sourceId":"ca/criminal-code/s-145","label":"Criminal Code, s. 145(4), (5)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-145.html"},{"sourceId":"lao/bail-hearings","label":"Legal Aid Ontario, Bail hearings","url":"https://www.legalaid.on.ca/faq/bail-hearings/"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"What not to do","detail":"Do not miss court. Missing a court date without a lawful excuse is a separate criminal offence, and a warrant can be issued for your arrest.","cites":[{"sourceId":"ca/criminal-code/s-145","label":"Criminal Code, s. 145(2)-(4)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-145.html"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"Getting a lawyer","detail":"Duty counsel are lawyers from Legal Aid Ontario at the courthouse. If you qualify, they can help at no cost: advice about your rights, your bail hearing, an adjournment, a guilty plea, and referrals. Duty counsel are your lawyer for that day only.","cites":[{"sourceId":"lao/duty-counsel","label":"Legal Aid Ontario, What are duty counsel?","url":"https://www.legalaid.on.ca/faq/what-are-duty-counsel/"},{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"}]},{"label":"Getting a lawyer","detail":"If you are in custody, you are considered eligible for duty counsel, and duty counsel are in bail court every day.","cites":[{"sourceId":"lao/duty-counsel-eligibility","label":"Legal Aid Ontario, What is the financial eligibility threshold for duty counsel services?","url":"https://www.legalaid.on.ca/faq/what-is-the-financial-eligibility-threshold-for-duty-counsel-services/"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"Getting a lawyer","detail":"Legal Aid Ontario may pay for a lawyer if you qualify financially and you are charged with a crime that could send you to jail, or you are 12 to 17 and charged under the Youth Criminal Justice Act. Apply by phone at 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"Getting a lawyer","detail":"If you are in a jail or detention centre, ask the legal aid worker there to help you apply.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]}],"boundary":{"kind":"needs_lawyer","reason":"A criminal charge needs a lawyer. I take legal aid certificates for criminal defence, and private retainers.","actions":[{"id":"book_call","label":"Call me now","sku":"legal.call"},{"id":"book_consultation","label":"Book a consultation","sku":"legal.consultation"},{"id":"handoff","label":"Have me take the case on a legal aid certificate","sku":"criminal.legal_aid"},{"id":"handoff","label":"Have me take the case on a private retainer","sku":"criminal.private"},{"id":"run_operation","label":"How to get legal aid","operation":"criminal.legal_aid_path"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"criminal/arrest/before-a-justice","title":"After an arrest: taken before a justice within 24 hours","status":"unverified"},{"id":"criminal/bail/hearing","title":"Bail hearing: release first, the ladder principle, and review","status":"unverified"},{"id":"criminal/release/conditions-and-court-dates","title":"Release conditions and court dates: keep them exactly","status":"unverified"},{"id":"criminal/disclosure","title":"Disclosure: the Crown's duty to share its case (information only)","status":"unverified"},{"id":"criminal/youth","title":"Young people (12 to 17): notice to parents and bail","status":"unverified"},{"id":"criminal/rights/counsel","title":"The right to a lawyer, the right to silence, and duty counsel","status":"unverified"},{"id":"criminal/legal-aid/apply","title":"Legal aid for a criminal charge: who qualifies and how to apply","status":"unverified"},{"id":"criminal/intake/urgency","title":"How urgent is it: custody and court dates","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"criminal.what_happens_next","version":1,"kind":"guide","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/criminal.what_happens_next/run":{"get":{"operationId":"get_criminal_what_happens_next","tags":["criminal"],"summary":"Someone was arrested or charged: what happens next (from a URL)","description":"Use this when someone in Ontario has been arrested, charged, released with conditions, or has a criminal court date, and the person wants to know what happens next and their rights at this stage. Criminal charges in Ontario courts. Do not use it to discuss or assess what happened (do not collect the facts), for charges outside Ontario, or for provincial offences such as traffic tickets. Next: criminal_intake_triage for urgency; handoff_create, since the boundary is always needs_lawyer. If anyone is in custody now, give the person the call-now action first.\n\nFor an accused person or their family: what happens next in order, your rights at this stage, what to do and not do, and how to get a lawyer, every line cited.\n\nCall this when someone has been arrested, charged, released with conditions, or has a criminal court date in Ontario. Ask the person one thing first: where things are now (the stage). Then, if they have it, the next court date from their papers, and whether the person charged is under 18. Do not ask about what happened: the answer never depends on it, and the person should not discuss the facts with anyone but a lawyer. If anyone is in custody now, give the person the 'Call me now' action straight away. This is information, not legal advice. The boundary is always needs_lawyer.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `criminal/arrest/before-a-justice` (unverified), `criminal/bail/hearing` (unverified), `criminal/release/conditions-and-court-dates` (unverified), `criminal/disclosure` (unverified), `criminal/youth` (unverified), `criminal/rights/counsel` (unverified), `criminal/legal-aid/apply` (unverified), `criminal/intake/urgency` (unverified). Availability: unverified.\nMCP tool: `criminal_what_happens_next`. Markdown: https://mithril.law/criminal/what-happens-next.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/criminal.what_happens_next/run?stage=arrested_held&youth=false","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"stage","in":"query","required":true,"description":"Pick the closest. If you are helping someone else, answer for them.","schema":{"anyOf":[{"type":"string","const":"arrested_held","title":"Arrested and still held by the police"},{"type":"string","const":"bail_hearing_scheduled","title":"In custody, waiting for a bail hearing"},{"type":"string","const":"released_with_conditions","title":"Released with conditions (an undertaking or a release order)"},{"type":"string","const":"summons_or_appearance_notice","title":"Given a summons or an appearance notice"},{"type":"string","const":"first_appearance_scheduled","title":"First court date is set"},{"type":"string","const":"after_first_appearance","title":"Already had a first court appearance"}],"title":"Where things are now","description":"Pick the closest. If you are helping someone else, answer for them."}},{"name":"nextCourtDate","in":"query","required":false,"description":"From the release papers, summons or appearance notice, if there is one. If you are waiting for a bail hearing, the date of the hearing.","schema":{"title":"Next court date","description":"From the release papers, summons or appearance notice, if there is one. If you are waiting for a bail hearing, the date of the hearing.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"youth","in":"query","required":false,"description":"Yes if they were 12 to 17 when the offence is said to have happened.","schema":{"default":false,"title":"The person charged is under 18","description":"Yes if they were 12 to 17 when the offence is said to have happened.","type":"boolean"}},{"name":"today","in":"query","required":false,"description":"Leave blank to use today’s date in Ontario.","schema":{"title":"Today’s date","description":"Leave blank to use today’s date in Ontario.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"stage":{"type":"string"},"stageLabel":{"type":"string"},"youth":{"type":"boolean"},"inCustody":{"type":"boolean"},"urgency":{"anyOf":[{"type":"string","const":"immediate","title":"Immediate: call now"},{"type":"string","const":"soon","title":"Soon: this week"},{"type":"string","const":"standard","title":"Standard: book a consultation"}]},"urgencyReasons":{"type":"array","items":{"type":"string"}},"courtDate":{"anyOf":[{"type":"object","properties":{"date":{"type":"string"},"daysAway":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"line":{"type":"string"}},"required":["date","daysAway","line"]},{"type":"null"}]},"next":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What happens next"},"rights":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"Your rights"},"do":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What to do now"},"dont":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"What not to do"},"help":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","text","cites"],"title":"Item"},"title":"Getting a lawyer"}},"required":["stage","stageLabel","youth","inCustody","urgency","urgencyReasons","courtDate","next","rights","do","dont","help"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"criminal.what_happens_next","version":1,"title":"Someone was arrested or charged: what happens next"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"stage":"arrested_held","stageLabel":"Arrested and still held by the police","youth":false,"inCustody":true,"urgency":"immediate","urgencyReasons":["Someone is in custody now."],"courtDate":null,"next":[{"id":"arrest.before_justice","text":"The police must either release you or take you before a justice of the peace. If a justice is available, that must happen without unreasonable delay and within 24 hours of the arrest. If no justice is available within 24 hours, it must happen as soon as possible.","cites":[{"sourceId":"ca/criminal-code/s-503","label":"Criminal Code, s. 503(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-503.html"}]},{"id":"arrest.police_release","text":"For most charges, the police can still release you before then, with an appearance notice or an undertaking, once they are satisfied that holding you is no longer necessary.","cites":[{"sourceId":"ca/criminal-code/s-503","label":"Criminal Code, s. 503(1.1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-503.html"}]},{"id":"arrest.weekend_bail_court","text":"The Ontario Court of Justice runs bail courts on weekends and statutory holidays, so a hearing can still happen within 24 hours of a weekend or holiday arrest.","cites":[{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"id":"bail.hearing","text":"At the bail hearing, a justice of the peace or a judge decides whether you are released until the case is over, and on what terms. Duty counsel or your own lawyer speaks for you.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"id":"bail.adjournment","text":"The hearing can be adjourned, but not for more than three clear days unless you agree.","cites":[{"sourceId":"ca/criminal-code/s-516","label":"Criminal Code, s. 516","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-516.html"}]},{"id":"bail.review","text":"If you are held, or released on terms you cannot live with, you can apply to a judge to review the order.","cites":[{"sourceId":"ca/criminal-code/s-520","label":"Criminal Code, s. 520(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-520.html"}]}],"rights":[{"id":"counsel.right","text":"When you are arrested or detained, you have the right to be told promptly why, to speak to a lawyer without delay, and to be told that you have that right.","cites":[{"sourceId":"ca/charter/s-10","label":"Canadian Charter of Rights and Freedoms, s. 10(a), (b)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-10"}]},{"id":"bail.reasonable_bail","text":"You have the right not to be denied reasonable bail without just cause.","cites":[{"sourceId":"ca/charter/s-11","label":"Canadian Charter of Rights and Freedoms, s. 11(e)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-11"}]},{"id":"bail.release_default","text":"For most charges, the starting point is release without conditions. The Crown has to show why you should be held, or why a stricter form of release is needed.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"id":"bail.reverse_onus","text":"For some charges and situations listed in the Criminal Code, this is reversed: you have to show why you should not be held, by clearly showing that your release plan deals with the risks.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(6)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"id":"bail.ladder","text":"Release comes first, at the earliest reasonable opportunity and on the least onerous conditions that fit your circumstances. In most cases the justice starts at the least onerous form of release and can move to a stricter one only if the Crown shows the less onerous one is not enough. This is called the ladder principle.","cites":[{"sourceId":"ca/criminal-code/s-493.1","label":"Criminal Code, s. 493.1","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-493.1.html"},{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(2.01)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"},{"sourceId":"scc/2017-scc-27","label":"R. v. Antic, 2017 SCC 27, para. 67","url":"https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/16649/index.do"}]},{"id":"bail.grounds","text":"Holding someone until trial is justified only to make sure they come to court, to protect the public, or to maintain confidence in the administration of justice.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(10)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"id":"conditions.must_be_reasonable","text":"Bail conditions must be clearly stated, few in number, necessary, reasonable, the least onerous in the circumstances, and linked to the risks the Criminal Code lists.","cites":[{"sourceId":"scc/2020-scc-14","label":"R. v. Zora, 2020 SCC 14, para. 6","url":"https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/18391/index.do"}]}],"do":[{"id":"counsel.ask_officer","text":"Tell the officer you want to speak to a lawyer. The officer will call a lawyer you can speak to by phone.","cites":[{"sourceId":"lao/speak-to-a-lawyer","label":"Legal Aid Ontario, Where can I speak to a lawyer about my rights?","url":"https://www.legalaid.on.ca/faq/where-can-i-speak-to-a-lawyer-about-my-rights/"}]},{"id":"bail.release_plan","text":"Before the hearing, tell your lawyer or duty counsel where you would live and who could support or supervise you. That is your release plan. Do not talk about the charges at the hearing.","cites":[{"sourceId":"lao/bail-hearings","label":"Legal Aid Ontario, Bail hearings","url":"https://www.legalaid.on.ca/faq/bail-hearings/"}]},{"id":"court.attend","text":"Go to every court date, at the time and place on your papers, and arrive at least 30 minutes early.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]}],"dont":[{"id":"counsel.stay_silent","text":"Do not talk about what happened with anyone except your lawyer: not the police, not anyone else involved, not friends or family, and not by text, phone or online. You have the right to remain silent.","cites":[{"sourceId":"ca/charter/s-10","label":"Canadian Charter of Rights and Freedoms, s. 10(b)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-10"},{"sourceId":"lao/criminal-charge-process","label":"Legal Aid Ontario, Criminal charge process","url":"https://www.legalaid.on.ca/faq/criminal-charge-process/"}]},{"id":"conditions.keep_exactly","text":"If you are released with conditions, keep every one exactly as written until a court changes it. Breaking a condition without a lawful excuse is a separate criminal offence, and you can be arrested again.","cites":[{"sourceId":"ca/criminal-code/s-145","label":"Criminal Code, s. 145(4), (5)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-145.html"},{"sourceId":"lao/bail-hearings","label":"Legal Aid Ontario, Bail hearings","url":"https://www.legalaid.on.ca/faq/bail-hearings/"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"id":"court.dont_miss","text":"Do not miss court. Missing a court date without a lawful excuse is a separate criminal offence, and a warrant can be issued for your arrest.","cites":[{"sourceId":"ca/criminal-code/s-145","label":"Criminal Code, s. 145(2)-(4)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-145.html"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]}],"help":[{"id":"counsel.duty_counsel","text":"Duty counsel are lawyers from Legal Aid Ontario at the courthouse. If you qualify, they can help at no cost: advice about your rights, your bail hearing, an adjournment, a guilty plea, and referrals. Duty counsel are your lawyer for that day only.","cites":[{"sourceId":"lao/duty-counsel","label":"Legal Aid Ontario, What are duty counsel?","url":"https://www.legalaid.on.ca/faq/what-are-duty-counsel/"},{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"}]},{"id":"counsel.duty_counsel_custody","text":"If you are in custody, you are considered eligible for duty counsel, and duty counsel are in bail court every day.","cites":[{"sourceId":"lao/duty-counsel-eligibility","label":"Legal Aid Ontario, What is the financial eligibility threshold for duty counsel services?","url":"https://www.legalaid.on.ca/faq/what-is-the-financial-eligibility-threshold-for-duty-counsel-services/"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"id":"legal_aid.summary","text":"Legal Aid Ontario may pay for a lawyer if you qualify financially and you are charged with a crime that could send you to jail, or you are 12 to 17 and charged under the Youth Criminal Justice Act. Apply by phone at 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"id":"legal_aid.summary_custody","text":"If you are in a jail or detention centre, ask the legal aid worker there to help you apply.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]}]},"summary":"Arrested and still held by the police. The police must either release you or take you before a justice of the peace. If a justice is available, that must happen without unreasonable delay and within 24 hours of the arrest. If no justice is available within 24 hours, it must happen as soon as possible. This is urgent: call me now.","steps":[{"label":"What happens next","detail":"The police must either release you or take you before a justice of the peace. If a justice is available, that must happen without unreasonable delay and within 24 hours of the arrest. If no justice is available within 24 hours, it must happen as soon as possible.","cites":[{"sourceId":"ca/criminal-code/s-503","label":"Criminal Code, s. 503(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-503.html"}]},{"label":"What happens next","detail":"For most charges, the police can still release you before then, with an appearance notice or an undertaking, once they are satisfied that holding you is no longer necessary.","cites":[{"sourceId":"ca/criminal-code/s-503","label":"Criminal Code, s. 503(1.1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-503.html"}]},{"label":"What happens next","detail":"The Ontario Court of Justice runs bail courts on weekends and statutory holidays, so a hearing can still happen within 24 hours of a weekend or holiday arrest.","cites":[{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"What happens next","detail":"At the bail hearing, a justice of the peace or a judge decides whether you are released until the case is over, and on what terms. Duty counsel or your own lawyer speaks for you.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"What happens next","detail":"The hearing can be adjourned, but not for more than three clear days unless you agree.","cites":[{"sourceId":"ca/criminal-code/s-516","label":"Criminal Code, s. 516","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-516.html"}]},{"label":"What happens next","detail":"If you are held, or released on terms you cannot live with, you can apply to a judge to review the order.","cites":[{"sourceId":"ca/criminal-code/s-520","label":"Criminal Code, s. 520(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-520.html"}]},{"label":"Your rights","detail":"When you are arrested or detained, you have the right to be told promptly why, to speak to a lawyer without delay, and to be told that you have that right.","cites":[{"sourceId":"ca/charter/s-10","label":"Canadian Charter of Rights and Freedoms, s. 10(a), (b)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-10"}]},{"label":"Your rights","detail":"You have the right not to be denied reasonable bail without just cause.","cites":[{"sourceId":"ca/charter/s-11","label":"Canadian Charter of Rights and Freedoms, s. 11(e)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-11"}]},{"label":"Your rights","detail":"For most charges, the starting point is release without conditions. The Crown has to show why you should be held, or why a stricter form of release is needed.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(1)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"label":"Your rights","detail":"For some charges and situations listed in the Criminal Code, this is reversed: you have to show why you should not be held, by clearly showing that your release plan deals with the risks.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(6)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"label":"Your rights","detail":"Release comes first, at the earliest reasonable opportunity and on the least onerous conditions that fit your circumstances. In most cases the justice starts at the least onerous form of release and can move to a stricter one only if the Crown shows the less onerous one is not enough. This is called the ladder principle.","cites":[{"sourceId":"ca/criminal-code/s-493.1","label":"Criminal Code, s. 493.1","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-493.1.html"},{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(2.01)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"},{"sourceId":"scc/2017-scc-27","label":"R. v. Antic, 2017 SCC 27, para. 67","url":"https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/16649/index.do"}]},{"label":"Your rights","detail":"Holding someone until trial is justified only to make sure they come to court, to protect the public, or to maintain confidence in the administration of justice.","cites":[{"sourceId":"ca/criminal-code/s-515","label":"Criminal Code, s. 515(10)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-515.html"}]},{"label":"Your rights","detail":"Bail conditions must be clearly stated, few in number, necessary, reasonable, the least onerous in the circumstances, and linked to the risks the Criminal Code lists.","cites":[{"sourceId":"scc/2020-scc-14","label":"R. v. Zora, 2020 SCC 14, para. 6","url":"https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/18391/index.do"}]},{"label":"What to do now","detail":"Tell the officer you want to speak to a lawyer. The officer will call a lawyer you can speak to by phone.","cites":[{"sourceId":"lao/speak-to-a-lawyer","label":"Legal Aid Ontario, Where can I speak to a lawyer about my rights?","url":"https://www.legalaid.on.ca/faq/where-can-i-speak-to-a-lawyer-about-my-rights/"}]},{"label":"What to do now","detail":"Before the hearing, tell your lawyer or duty counsel where you would live and who could support or supervise you. That is your release plan. Do not talk about the charges at the hearing.","cites":[{"sourceId":"lao/bail-hearings","label":"Legal Aid Ontario, Bail hearings","url":"https://www.legalaid.on.ca/faq/bail-hearings/"}]},{"label":"What to do now","detail":"Go to every court date, at the time and place on your papers, and arrive at least 30 minutes early.","cites":[{"sourceId":"lao/before-first-appearance","label":"Legal Aid Ontario, What to do before your first appearance at criminal court","url":"https://www.legalaid.on.ca/faq/what-to-do-before-your-first-appearance-at-criminal-court/"}]},{"label":"What not to do","detail":"Do not talk about what happened with anyone except your lawyer: not the police, not anyone else involved, not friends or family, and not by text, phone or online. You have the right to remain silent.","cites":[{"sourceId":"ca/charter/s-10","label":"Canadian Charter of Rights and Freedoms, s. 10(b)","url":"https://laws-lois.justice.gc.ca/eng/const/page-12.html#s-10"},{"sourceId":"lao/criminal-charge-process","label":"Legal Aid Ontario, Criminal charge process","url":"https://www.legalaid.on.ca/faq/criminal-charge-process/"}]},{"label":"What not to do","detail":"If you are released with conditions, keep every one exactly as written until a court changes it. Breaking a condition without a lawful excuse is a separate criminal offence, and you can be arrested again.","cites":[{"sourceId":"ca/criminal-code/s-145","label":"Criminal Code, s. 145(4), (5)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-145.html"},{"sourceId":"lao/bail-hearings","label":"Legal Aid Ontario, Bail hearings","url":"https://www.legalaid.on.ca/faq/bail-hearings/"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"What not to do","detail":"Do not miss court. Missing a court date without a lawful excuse is a separate criminal offence, and a warrant can be issued for your arrest.","cites":[{"sourceId":"ca/criminal-code/s-145","label":"Criminal Code, s. 145(2)-(4)","url":"https://laws-lois.justice.gc.ca/eng/acts/C-46/section-145.html"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"Getting a lawyer","detail":"Duty counsel are lawyers from Legal Aid Ontario at the courthouse. If you qualify, they can help at no cost: advice about your rights, your bail hearing, an adjournment, a guilty plea, and referrals. Duty counsel are your lawyer for that day only.","cites":[{"sourceId":"lao/duty-counsel","label":"Legal Aid Ontario, What are duty counsel?","url":"https://www.legalaid.on.ca/faq/what-are-duty-counsel/"},{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"}]},{"label":"Getting a lawyer","detail":"If you are in custody, you are considered eligible for duty counsel, and duty counsel are in bail court every day.","cites":[{"sourceId":"lao/duty-counsel-eligibility","label":"Legal Aid Ontario, What is the financial eligibility threshold for duty counsel services?","url":"https://www.legalaid.on.ca/faq/what-is-the-financial-eligibility-threshold-for-duty-counsel-services/"},{"sourceId":"ocj/criminal-step-by-step","label":"Ontario Court of Justice, A criminal case: step-by-step","url":"https://www.ontariocourts.ca/ocj/criminal-court/going-to-court/stepbystep/"}]},{"label":"Getting a lawyer","detail":"Legal Aid Ontario may pay for a lawyer if you qualify financially and you are charged with a crime that could send you to jail, or you are 12 to 17 and charged under the Youth Criminal Justice Act. Apply by phone at 1-800-668-8258 (toll-free) or 416-979-1446 (Greater Toronto Area), Monday to Friday, 8 a.m. to 5 p.m. Eastern.","cites":[{"sourceId":"lao/criminal-legal-issues","label":"Legal Aid Ontario, Criminal legal issues","url":"https://www.legalaid.on.ca/services/criminal-legal-issues/"},{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]},{"label":"Getting a lawyer","detail":"If you are in a jail or detention centre, ask the legal aid worker there to help you apply.","cites":[{"sourceId":"lao/how-to-apply","label":"Legal Aid Ontario, How do I apply for legal aid?","url":"https://www.legalaid.on.ca/services/how-do-i-apply-for-legal-aid/"}]}],"boundary":{"kind":"needs_lawyer","reason":"A criminal charge needs a lawyer. I take legal aid certificates for criminal defence, and private retainers.","actions":[{"id":"book_call","label":"Call me now","sku":"legal.call"},{"id":"book_consultation","label":"Book a consultation","sku":"legal.consultation"},{"id":"handoff","label":"Have me take the case on a legal aid certificate","sku":"criminal.legal_aid"},{"id":"handoff","label":"Have me take the case on a private retainer","sku":"criminal.private"},{"id":"run_operation","label":"How to get legal aid","operation":"criminal.legal_aid_path"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"criminal/arrest/before-a-justice","title":"After an arrest: taken before a justice within 24 hours","status":"unverified"},{"id":"criminal/bail/hearing","title":"Bail hearing: release first, the ladder principle, and review","status":"unverified"},{"id":"criminal/release/conditions-and-court-dates","title":"Release conditions and court dates: keep them exactly","status":"unverified"},{"id":"criminal/disclosure","title":"Disclosure: the Crown's duty to share its case (information only)","status":"unverified"},{"id":"criminal/youth","title":"Young people (12 to 17): notice to parents and bail","status":"unverified"},{"id":"criminal/rights/counsel","title":"The right to a lawyer, the right to silence, and duty counsel","status":"unverified"},{"id":"criminal/legal-aid/apply","title":"Legal aid for a criminal charge: who qualifies and how to apply","status":"unverified"},{"id":"criminal/intake/urgency","title":"How urgent is it: custody and court dates","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"criminal.what_happens_next","version":1,"kind":"guide","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/employment.demand_letter/runs":{"post":{"operationId":"run_employment_demand_letter","tags":["employment"],"summary":"Demand letter","description":"Use this when an Ontario employee whose job has ended wants a demand letter to the former employer, after employment_severance_check. Ontario only: the Employment Standards Act, 2000 and the common-law claim. Do not use it before employment_severance_check has run on the same facts, when that check said needs_lawyer, or to send the letter (the person signs and sends it). Next: give the person the checkout link (the files are released once they pay); employment_limitation_dates for the deadlines.\n\nA demand letter from an Ontario employee to their former employer, with the ESA sections and the common-law claim, as DOCX and PDF. The person signs and sends it.\n\nCall after employment.severance_check, with the same facts plus the names and addresses. The letter asks for the amount the person chooses; by default, the middle of the common-law estimate or the ESA minimum if that is higher. The files are locked until the letter is paid for (price in the catalog); the result carries a free preview and document ids. The person signs and sends the letter themselves. If the facts need a lawyer (an exemption, or a job that ended some other way), no letter is produced.\n\nPrice: CAD 149 plus HST (sku `employment.demand_letter`, Jonathan Kleiman (software and consulting)). Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: `employment/demand-letter/amount-demanded` (unverified), `employment/demand-letter/content` (unverified), `employment/esa/termination-pay` (unverified), `employment/esa/vacation-pay-on-termination-pay` (unverified), `employment/esa/severance-pay` (unverified), `employment/esa/severance-eligibility` (unverified), `employment/esa/benefit-continuation` (unverified), `employment/esa/no-waiver` (unverified), `employment/common-law/reasonable-notice-estimate` (unverified). Availability: unverified.\nMCP tool: `employment_demand_letter`. Markdown: https://mithril.law/employment/demand-letter.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"employeeName":{"type":"string","minLength":1,"maxLength":200,"title":"Your full name","description":"As you want it signed."},"employeeAddress":{"type":"string","minLength":1,"maxLength":400,"title":"Your mailing address","description":"Street, city, province and postal code. Use a new line or a comma between parts."},"employerName":{"type":"string","minLength":1,"maxLength":200,"title":"Employer’s name","description":"The company’s legal name, as on your pay stubs or contract."},"employerAddress":{"type":"string","minLength":1,"maxLength":400,"title":"Employer’s address","description":"Where to send the letter: street, city, province and postal code."},"employerAttention":{"type":"string","minLength":1,"maxLength":200,"title":"Addressed to","description":"The person to address it to, such as the head of human resources. Leave out if you don’t know."},"jobTitle":{"type":"string","minLength":1,"maxLength":200,"title":"Your job title","description":"Your title when the job ended."},"endedHow":{"type":"string","enum":["let_go_without_cause","constructive_dismissal","laid_off","fired_for_cause","other"],"title":"How did your job end?","description":"let_go_without_cause: the employer ended your job and did not say you did anything wrong. constructive_dismissal: the employer made a big change to your job (pay, duties, hours, place) or treated you so badly that you quit because of it. laid_off: the employer laid you off. fired_for_cause: the employer says you were fired for something you did. other: anything else, such as resigning or retiring."},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Last day of your job","description":"The last day you were employed. If you were laid off, the first day of the layoff."},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"First day of your job","description":"The first day you worked there. Leave out if you don’t know it; then give your years and months of service."},"yearsOfService":{"type":"integer","minimum":0,"maximum":70,"title":"Years of service","description":"Only if you don’t know your start date: how many full years you worked there."},"monthsOfService":{"type":"integer","minimum":0,"maximum":11,"title":"Extra months of service","description":"Only if you don’t know your start date: full months on top of the years."},"age":{"type":"integer","minimum":14,"maximum":100,"title":"Your age","description":"Your age on the last day of your job."},"role":{"type":"string","enum":["staff","supervisor","manager","executive"],"title":"Your role","description":"staff: you did not supervise anyone. supervisor: you supervised a team or a shift. manager: you managed people or a department. executive: you were a senior leader, such as a vice-president or officer."},"pay":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"salary","title":"Salary"},"annualSalary":{"type":"number","minimum":0,"maximum":100000000,"title":"Yearly salary","description":"Your salary for a year, before tax, in Canadian dollars."},"commissions":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":100000000,"title":"Commissions","description":"Commissions you earned regularly, before tax, in Canadian dollars."},"period":{"type":"string","enum":["last_12_weeks","year"],"title":"Over what period","description":"last_12_weeks: the total commissions you earned in the 12 weeks before your job ended (the most exact figure). year: what you earn in commissions in a typical year (an estimate)."}},"required":["amount","period"],"title":"Regular commissions","description":"Leave out if you were not paid commissions."}},"required":["kind","annualSalary"],"title":"Salary","description":"You were paid a set amount a year."},{"type":"object","properties":{"kind":{"type":"string","const":"hourly","title":"Hourly"},"hourlyRate":{"type":"number","minimum":0,"maximum":100000000,"title":"Hourly rate","description":"Your regular rate per hour, in Canadian dollars."},"weeklyHours":{"type":"number","exclusiveMinimum":0,"maximum":168,"title":"Regular hours a week","description":"The hours you usually worked each week, not counting overtime."},"commissions":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":100000000,"title":"Commissions","description":"Commissions you earned regularly, before tax, in Canadian dollars."},"period":{"type":"string","enum":["last_12_weeks","year"],"title":"Over what period","description":"last_12_weeks: the total commissions you earned in the 12 weeks before your job ended (the most exact figure). year: what you earn in commissions in a typical year (an estimate)."}},"required":["amount","period"],"title":"Regular commissions","description":"Leave out if you were not paid commissions."}},"required":["kind","hourlyRate","weeklyHours"],"title":"Hourly","description":"You were paid by the hour for about the same hours each week."},{"type":"object","properties":{"kind":{"type":"string","const":"varies","title":"Pay that changes week to week"},"averageWeeklyWages":{"type":"number","minimum":0,"maximum":100000000,"title":"Average weekly pay","description":"Add up your regular pay (not overtime or vacation pay) for the weeks you worked in the 12 weeks before your job ended, and divide by the number of those weeks."}},"required":["kind","averageWeeklyWages"],"title":"Pay that changes week to week","description":"Your hours or pay changed from week to week, or you were paid by the piece or on commission only."}],"title":"Your pay","description":"How you were paid before your job ended."},"payroll":{"type":"string","enum":["yes","no","unsure"],"title":"Is the employer’s total payroll CAD 2.5 million or more a year?","description":"yes, no, or unsure. Count the wages of all its employees, in Ontario and elsewhere. For example, 50 people earning CAD 50,000 each is a payroll of CAD 2.5 million. Severance pay depends on this."},"hasBenefits":{"type":"boolean","title":"Did you have benefits through work?","description":"Health, dental, life or disability insurance, or a pension or RRSP plan the employer paid into."},"terminationClause":{"type":"string","enum":["yes","no","unsure"],"title":"Does your employment contract say what you get when your job ends?","description":"yes if you signed a contract or offer letter with a clause about ending the job (often called termination), no if not, unsure if you don’t know."},"exemptions":{"default":[],"title":"Do any of these apply to you?","description":"Pick every one that might apply. Leave empty if none do. Any of these means a lawyer should look at your situation first.","type":"array","items":{"type":"string","enum":["federal_employer","work_outside_ontario","fixed_term","temporary_layoff","wilful_misconduct","frustration","refused_alternative_work","no_return_from_layoff","strike_or_lockout","construction","retirement_age","unreduced_pension","shipbuilding","unsure"],"title":"Exemption","description":"federal_employer: Your employer is federally regulated, such as a bank, airline, railway, telecom company or interprovincial trucking company. work_outside_ontario: Your work was not done in Ontario. fixed_term: You were hired for a set term or a specific task, and the job ended when it was over. temporary_layoff: You are on a temporary layoff. wilful_misconduct: The employer says you deliberately did something seriously wrong, or deliberately neglected your duties. frustration: Something unexpected (not an illness or injury) made it impossible to continue the job. refused_alternative_work: You turned down a reasonable other job the employer offered you, or one available through seniority. no_return_from_layoff: You were on a temporary layoff and did not come back within a reasonable time after being recalled. strike_or_lockout: Your job ended during or because of a strike or lockout, or a closure caused by one. construction: You were a construction employee, or did on-site maintenance of buildings, roads, sewers, pipelines or similar works. retirement_age: Your job ended when you reached the employer’s usual retirement age. unreduced_pension: You retired and are getting a full (unreduced) pension from the employer’s plan. shipbuilding: You worked in commercial shipbuilding or ship repair under a supplementary unemployment benefit plan you or your union agreed would apply. unsure: You are not sure whether one of these applies."}},"offer":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":100000000,"title":"Amount offered","description":"The total the employer offered, in Canadian dollars, before tax."},"weeks":{"type":"number","minimum":0,"maximum":520,"title":"Weeks of pay offered","description":"If the offer was in weeks of pay rather than dollars."},"releaseRequired":{"default":false,"title":"Do they want you to sign a release?","description":"A release is a document where you agree not to sue or claim anything more.","type":"boolean"}},"title":"The employer’s offer","description":"Leave out if the employer has not offered anything yet."},"workingNoticeWeeks":{"default":0,"title":"Weeks of written notice you worked","description":"If the employer told you in writing ahead of time and you kept working until the last day, how many weeks that was. Otherwise 0.","type":"number","minimum":0,"maximum":104},"toldDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Day you were told","description":"The day you were told your job was ending, if it was before your last day."},"massTermination":{"default":"no","type":"string","enum":["yes","no","unsure"],"title":"Did 50 or more people at your workplace lose their jobs within the same 4 weeks?","description":"yes, no, or unsure. Leave as no if you don’t think so."},"businessClosure":{"default":"no","type":"string","enum":["yes","no","unsure"],"title":"Did the employer close all or part of the business where you worked, with 50 or more people losing their jobs within 6 months?","description":"yes, no, or unsure. This matters only if the payroll is under CAD 2.5 million."},"amountDemanded":{"title":"Amount to ask for","description":"Leave out to use the default: the middle of the common-law estimate from the severance check, or the ESA minimum if that is higher.","type":"number","exclusiveMinimum":0,"maximum":100000000},"responseDays":{"default":14,"title":"Days to reply","description":"How many days the employer has to reply. You choose; 14 is common.","type":"integer","minimum":7,"maximum":60},"letterDate":{"title":"Date of the letter","description":"Leave out to use today’s date.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["employeeName","employeeAddress","employerName","employerAddress","endedHow","endDate","age","role","pay","payroll","hasBenefits","terminationClause"],"title":"Demand letter","description":"Your severance check facts, plus names and addresses for the letter."}}},"examples":{"example1":{"summary":"The homepage example, as a letter","value":{"input":{"endedHow":"let_go_without_cause","endDate":"2026-09-01","yearsOfService":10,"monthsOfService":11,"age":45,"role":"staff","pay":{"kind":"salary","annualSalary":104000},"payroll":"yes","hasBenefits":true,"terminationClause":"no","exemptions":[],"workingNoticeWeeks":0,"massTermination":"no","businessClosure":"no","employeeName":"Alex Martin","employeeAddress":"12 Elm Street, Toronto, ON M4E 1A1","employerName":"Example Manufacturing Inc.","employerAddress":"500 Industrial Road, Mississauga, ON L5T 2B2","employerAttention":"Head of Human Resources","responseDays":14}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"produced":{"type":"boolean"},"amountDemanded":{"type":["number","null"]},"defaultAmount":{"type":["number","null"]},"esaMinimum":{"type":["number","null"]},"responseDeadline":{"type":["string","null"]},"preview":{"anyOf":[{"type":"object","properties":{"firstParagraph":{"type":"string"},"outline":{"type":"array","items":{"type":"string"}}},"required":["firstParagraph","outline"]},{"type":"null"}]},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string","enum":["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/markdown"]},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","title","mediaType"]}}},"required":["produced","amountDemanded","defaultAmount","esaMinimum","responseDeadline","preview","documents"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"employment.demand_letter","version":1,"title":"Demand letter"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"produced":false,"amountDemanded":"","defaultAmount":"","esaMinimum":"","responseDeadline":"","preview":"","documents":[{"id":"text","title":"text","mediaType":"application/pdf"}]},"summary":"Demand letter: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"employment/demand-letter/amount-demanded","title":"Demand letter: the amount asked for","status":"unverified"},{"id":"employment/demand-letter/content","title":"Demand letter: what it says","status":"unverified"},{"id":"employment/esa/termination-pay","title":"Termination pay","status":"unverified"},{"id":"employment/esa/vacation-pay-on-termination-pay","title":"Vacation pay on termination pay","status":"unverified"},{"id":"employment/esa/severance-pay","title":"How much severance pay","status":"unverified"},{"id":"employment/esa/severance-eligibility","title":"Who gets severance pay","status":"unverified"},{"id":"employment/esa/benefit-continuation","title":"Benefits during the notice period","status":"unverified"},{"id":"employment/esa/no-waiver","title":"The ESA minimum cannot be waived","status":"unverified"},{"id":"employment/common-law/reasonable-notice-estimate","title":"Common-law range (estimate)","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"employment.demand_letter","version":1,"kind":"prepare","audience":["person","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":false},"price":{"sku":"employment.demand_letter","title":"Demand letter package","label":"CAD 149 plus HST","amount":14900,"currency":"CAD","kind":"one_time","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"A demand letter to your former employer, prepared from your facts, with the sections it relies on."},"personalData":true}}},"/operations/employment.limitation_dates/runs":{"post":{"operationId":"run_employment_limitation_dates","tags":["employment"],"summary":"Deadlines after a job ends","description":"Use this when a person whose job in Ontario ended asks how long they have to sue for wrongful dismissal or to file an Employment Standards complaint. Ontario only: the Limitations Act, 2002 and the Employment Standards Act, 2000. Do not use it for claims that are not about a job ending (general_limitation_period covers those), or to work out an exception such as later discovery. Next: employment_severance_check for the amounts; handoff_create when a deadline is close or an exception may apply.\n\nThe last day to sue for wrongful dismissal and the last day to file an ESA complaint in Ontario, with the choice between them.\n\nCall when a person asks how long they have after losing a job in Ontario. Ask for the last day of the job and, if earlier, the day they were told. The dates are the basic periods. Exceptions (later discovery, incapacity, mediation, agreements) are listed, not calculated; if one may apply, send the person to a lawyer.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `employment/limitations/civil-claim` (unverified), `employment/limitations/esa-complaint` (unverified). Availability: unverified.\nMCP tool: `employment_limitation_dates`. Markdown: https://mithril.law/employment/limitation-dates.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Last day of your job","description":"The last day you were employed. If you were laid off, the first day of the layoff."},"toldDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Day you were told","description":"The day you were told your job was ending, if it was before your last day."},"endedHow":{"type":"string","enum":["let_go_without_cause","constructive_dismissal","laid_off","fired_for_cause","other"],"title":"How did your job end?","description":"let_go_without_cause: the employer ended your job and did not say you did anything wrong. constructive_dismissal: the employer made a big change to your job (pay, duties, hours, place) or treated you so badly that you quit because of it. laid_off: the employer laid you off. fired_for_cause: the employer says you were fired for something you did. other: anything else, such as resigning or retiring."}},"required":["endDate"],"title":"Deadlines after a job ends","description":"The last day to sue and the last day to file an ESA complaint."}}},"examples":{"example1":{"summary":"Told on August 15, last day September 1, 2026","value":{"input":{"endDate":"2026-09-01","toldDate":"2026-08-15"}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"civil":{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"number"},"status":{"type":"string","enum":["passed","under_90_days","open"]}},"required":["from","lastDay","daysLeft","status"]},"esaComplaint":{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"number"},"status":{"type":"string","enum":["passed","under_90_days","open"]}},"required":["from","lastDay","daysLeft","status"]},"exceptions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"]}}},"required":["civil","esaComplaint","exceptions"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"employment.limitation_dates","version":1,"title":"Deadlines after a job ends"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"civil":{"from":"2026-08-15","lastDay":"2028-08-15","daysLeft":692,"status":"open"},"esaComplaint":{"from":"2026-09-01","lastDay":"2028-09-01","daysLeft":709,"status":"open"},"exceptions":[{"id":"later_discovery","text":"You only learned later that you had a claim. The two years run from discovery, which is presumed to be the day of the act unless shown otherwise."},{"id":"incapacity","text":"You were unable to start a claim because of a physical, mental or psychological condition and had no litigation guardian."},{"id":"mediation","text":"You and the employer agreed to have an independent third party help resolve the claim."},{"id":"agreement","text":"You and the employer agreed in writing to suspend or extend the limitation period."}]},"summary":"The last day to start a lawsuit is August 15, 2028, and the last day to file an ESA complaint is September 1, 2028. You can do one or the other, not both.","steps":[{"label":"Deadline to sue","value":"August 15, 2028","detail":"A lawsuit must start by the second anniversary of the day the claim was discovered, presumed to be August 15, 2026, the day you were told (the earlier and safer date). That is 692 days from today.","cites":[{"sourceId":"on/limitations-act-2002/s-4","label":"Limitations Act, 2002, s. 4","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-5","label":"Limitations Act, 2002, s. 5(1), (2)","url":"https://www.ontario.ca/laws/statute/02l24"}]},{"label":"Deadline for an ESA complaint","value":"September 1, 2028","detail":"A complaint about a contravention more than two years old is treated as not filed. Counted from your last day, September 1, 2026. That is 709 days from today.","cites":[{"sourceId":"on/esa-2000/s-96","label":"Employment Standards Act, 2000, s. 96(3)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Complaint or lawsuit","value":"Choose one","detail":"Filing an ESA complaint for termination or severance pay stops you from suing for wrongful dismissal over the same job, unless you withdraw the complaint within two weeks. Suing for wrongful dismissal stops you from filing that complaint.","cites":[{"sourceId":"on/esa-2000/s-97","label":"Employment Standards Act, 2000, s. 97(2), (4)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-98","label":"Employment Standards Act, 2000, s. 98(2)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Things that can change the deadline to sue","value":"Not calculated","detail":"You only learned later that you had a claim. The two years run from discovery, which is presumed to be the day of the act unless shown otherwise. You were unable to start a claim because of a physical, mental or psychological condition and had no litigation guardian. You and the employer agreed to have an independent third party help resolve the claim. You and the employer agreed in writing to suspend or extend the limitation period. If any of these applies, a lawyer should work out the date.","cites":[{"sourceId":"on/limitations-act-2002/s-5","label":"Limitations Act, 2002, s. 5","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-7","label":"Limitations Act, 2002, s. 7","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-11","label":"Limitations Act, 2002, s. 11","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-22","label":"Limitations Act, 2002, s. 22(3)","url":"https://www.ontario.ca/laws/statute/02l24"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"employment/limitations/civil-claim","title":"Deadline to sue","status":"unverified"},{"id":"employment/limitations/esa-complaint","title":"Deadline for an ESA complaint, and the choice between a complaint and a lawsuit","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"employment.limitation_dates","version":1,"kind":"calculate","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/employment.limitation_dates/run":{"get":{"operationId":"get_employment_limitation_dates","tags":["employment"],"summary":"Deadlines after a job ends (from a URL)","description":"Use this when a person whose job in Ontario ended asks how long they have to sue for wrongful dismissal or to file an Employment Standards complaint. Ontario only: the Limitations Act, 2002 and the Employment Standards Act, 2000. Do not use it for claims that are not about a job ending (general_limitation_period covers those), or to work out an exception such as later discovery. Next: employment_severance_check for the amounts; handoff_create when a deadline is close or an exception may apply.\n\nThe last day to sue for wrongful dismissal and the last day to file an ESA complaint in Ontario, with the choice between them.\n\nCall when a person asks how long they have after losing a job in Ontario. Ask for the last day of the job and, if earlier, the day they were told. The dates are the basic periods. Exceptions (later discovery, incapacity, mediation, agreements) are listed, not calculated; if one may apply, send the person to a lawyer.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `employment/limitations/civil-claim` (unverified), `employment/limitations/esa-complaint` (unverified). Availability: unverified.\nMCP tool: `employment_limitation_dates`. Markdown: https://mithril.law/employment/limitation-dates.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/employment.limitation_dates/run?endDate=2026-09-01&toldDate=2026-08-15","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"endDate","in":"query","required":true,"description":"The last day you were employed. If you were laid off, the first day of the layoff.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Last day of your job","description":"The last day you were employed. If you were laid off, the first day of the layoff."}},{"name":"toldDate","in":"query","required":false,"description":"The day you were told your job was ending, if it was before your last day.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Day you were told","description":"The day you were told your job was ending, if it was before your last day."}},{"name":"endedHow","in":"query","required":false,"description":"let_go_without_cause: the employer ended your job and did not say you did anything wrong. constructive_dismissal: the employer made a big change to your job (pay, duties, hours, place) or treated you so badly that you quit because of it. laid_off: the employer laid you off. fired_for_cause: the employer says you were fired for something you did. other: anything else, such as resigning or retiring.","schema":{"type":"string","enum":["let_go_without_cause","constructive_dismissal","laid_off","fired_for_cause","other"],"title":"How did your job end?","description":"let_go_without_cause: the employer ended your job and did not say you did anything wrong. constructive_dismissal: the employer made a big change to your job (pay, duties, hours, place) or treated you so badly that you quit because of it. laid_off: the employer laid you off. fired_for_cause: the employer says you were fired for something you did. other: anything else, such as resigning or retiring."}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"civil":{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"number"},"status":{"type":"string","enum":["passed","under_90_days","open"]}},"required":["from","lastDay","daysLeft","status"]},"esaComplaint":{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"number"},"status":{"type":"string","enum":["passed","under_90_days","open"]}},"required":["from","lastDay","daysLeft","status"]},"exceptions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"]}}},"required":["civil","esaComplaint","exceptions"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"employment.limitation_dates","version":1,"title":"Deadlines after a job ends"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"civil":{"from":"2026-08-15","lastDay":"2028-08-15","daysLeft":692,"status":"open"},"esaComplaint":{"from":"2026-09-01","lastDay":"2028-09-01","daysLeft":709,"status":"open"},"exceptions":[{"id":"later_discovery","text":"You only learned later that you had a claim. The two years run from discovery, which is presumed to be the day of the act unless shown otherwise."},{"id":"incapacity","text":"You were unable to start a claim because of a physical, mental or psychological condition and had no litigation guardian."},{"id":"mediation","text":"You and the employer agreed to have an independent third party help resolve the claim."},{"id":"agreement","text":"You and the employer agreed in writing to suspend or extend the limitation period."}]},"summary":"The last day to start a lawsuit is August 15, 2028, and the last day to file an ESA complaint is September 1, 2028. You can do one or the other, not both.","steps":[{"label":"Deadline to sue","value":"August 15, 2028","detail":"A lawsuit must start by the second anniversary of the day the claim was discovered, presumed to be August 15, 2026, the day you were told (the earlier and safer date). That is 692 days from today.","cites":[{"sourceId":"on/limitations-act-2002/s-4","label":"Limitations Act, 2002, s. 4","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-5","label":"Limitations Act, 2002, s. 5(1), (2)","url":"https://www.ontario.ca/laws/statute/02l24"}]},{"label":"Deadline for an ESA complaint","value":"September 1, 2028","detail":"A complaint about a contravention more than two years old is treated as not filed. Counted from your last day, September 1, 2026. That is 709 days from today.","cites":[{"sourceId":"on/esa-2000/s-96","label":"Employment Standards Act, 2000, s. 96(3)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Complaint or lawsuit","value":"Choose one","detail":"Filing an ESA complaint for termination or severance pay stops you from suing for wrongful dismissal over the same job, unless you withdraw the complaint within two weeks. Suing for wrongful dismissal stops you from filing that complaint.","cites":[{"sourceId":"on/esa-2000/s-97","label":"Employment Standards Act, 2000, s. 97(2), (4)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-98","label":"Employment Standards Act, 2000, s. 98(2)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Things that can change the deadline to sue","value":"Not calculated","detail":"You only learned later that you had a claim. The two years run from discovery, which is presumed to be the day of the act unless shown otherwise. You were unable to start a claim because of a physical, mental or psychological condition and had no litigation guardian. You and the employer agreed to have an independent third party help resolve the claim. You and the employer agreed in writing to suspend or extend the limitation period. If any of these applies, a lawyer should work out the date.","cites":[{"sourceId":"on/limitations-act-2002/s-5","label":"Limitations Act, 2002, s. 5","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-7","label":"Limitations Act, 2002, s. 7","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-11","label":"Limitations Act, 2002, s. 11","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-22","label":"Limitations Act, 2002, s. 22(3)","url":"https://www.ontario.ca/laws/statute/02l24"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"employment/limitations/civil-claim","title":"Deadline to sue","status":"unverified"},{"id":"employment/limitations/esa-complaint","title":"Deadline for an ESA complaint, and the choice between a complaint and a lawsuit","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"employment.limitation_dates","version":1,"kind":"calculate","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/employment.severance_check/runs":{"post":{"operationId":"run_employment_severance_check","tags":["employment"],"summary":"Severance check","description":"Use this when an Ontario employee has lost their job, or expects to, and wants to know the minimum they are owed and how an offer compares. Ontario only: the Employment Standards Act, 2000 and the common-law range Ontario courts use. Do not use it for work outside Ontario or in a federally regulated industry, or to write the demand itself. Next: employment_demand_letter to prepare a demand; employment_termination_clause_check when the contract says what is owed; handoff_create when the boundary is needs_lawyer.\n\nWhat an Ontario employee is owed when a job ends: the ESA minimum, an estimate of the common-law range, the employer’s offer against both, and the deadlines.\n\nCall when a person in Ontario has lost their job or is about to. Ask, in this order: how the job ended; the last day; the first day (or years and months of service); their age; their role; their pay; whether the employer's total payroll is CAD 2.5 million or more (unsure is a fine answer); whether they had benefits; whether their contract says what they get when the job ends; whether any listed exemption may apply; and any offer. The ESA figures are exact for the facts given. The common-law range is an estimate of the range courts have used, never a prediction; say so when you repeat it. When the boundary is needs_lawyer, offer the listed actions instead of advising. When it is automated, the next step is the demand letter (employment.demand_letter).\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `employment/esa/coverage-and-exemptions` (unverified), `employment/esa/length-of-service` (unverified), `employment/esa/regular-weekly-wage` (unverified), `employment/esa/termination-pay` (unverified), `employment/esa/benefit-continuation` (unverified), `employment/esa/severance-eligibility` (unverified), `employment/esa/severance-pay` (unverified), `employment/esa/vacation-pay-on-termination-pay` (unverified), `employment/esa/mass-termination` (unverified), `employment/esa/no-waiver` (unverified), `employment/common-law/reasonable-notice-estimate` (unverified), `employment/common-law/offer-comparison` (unverified), `employment/severance-check/lawyer-boundary` (unverified), `employment/limitations/civil-claim` (unverified), `employment/limitations/esa-complaint` (unverified). Availability: unverified.\nMCP tool: `employment_severance_check`. Markdown: https://mithril.law/employment/severance-check.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"endedHow":{"type":"string","enum":["let_go_without_cause","constructive_dismissal","laid_off","fired_for_cause","other"],"title":"How did your job end?","description":"let_go_without_cause: the employer ended your job and did not say you did anything wrong. constructive_dismissal: the employer made a big change to your job (pay, duties, hours, place) or treated you so badly that you quit because of it. laid_off: the employer laid you off. fired_for_cause: the employer says you were fired for something you did. other: anything else, such as resigning or retiring."},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Last day of your job","description":"The last day you were employed. If you were laid off, the first day of the layoff."},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"First day of your job","description":"The first day you worked there. Leave out if you don’t know it; then give your years and months of service."},"yearsOfService":{"type":"integer","minimum":0,"maximum":70,"title":"Years of service","description":"Only if you don’t know your start date: how many full years you worked there."},"monthsOfService":{"type":"integer","minimum":0,"maximum":11,"title":"Extra months of service","description":"Only if you don’t know your start date: full months on top of the years."},"age":{"type":"integer","minimum":14,"maximum":100,"title":"Your age","description":"Your age on the last day of your job."},"role":{"type":"string","enum":["staff","supervisor","manager","executive"],"title":"Your role","description":"staff: you did not supervise anyone. supervisor: you supervised a team or a shift. manager: you managed people or a department. executive: you were a senior leader, such as a vice-president or officer."},"pay":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"salary","title":"Salary"},"annualSalary":{"type":"number","minimum":0,"maximum":100000000,"title":"Yearly salary","description":"Your salary for a year, before tax, in Canadian dollars."},"commissions":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":100000000,"title":"Commissions","description":"Commissions you earned regularly, before tax, in Canadian dollars."},"period":{"type":"string","enum":["last_12_weeks","year"],"title":"Over what period","description":"last_12_weeks: the total commissions you earned in the 12 weeks before your job ended (the most exact figure). year: what you earn in commissions in a typical year (an estimate)."}},"required":["amount","period"],"title":"Regular commissions","description":"Leave out if you were not paid commissions."}},"required":["kind","annualSalary"],"title":"Salary","description":"You were paid a set amount a year."},{"type":"object","properties":{"kind":{"type":"string","const":"hourly","title":"Hourly"},"hourlyRate":{"type":"number","minimum":0,"maximum":100000000,"title":"Hourly rate","description":"Your regular rate per hour, in Canadian dollars."},"weeklyHours":{"type":"number","exclusiveMinimum":0,"maximum":168,"title":"Regular hours a week","description":"The hours you usually worked each week, not counting overtime."},"commissions":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":100000000,"title":"Commissions","description":"Commissions you earned regularly, before tax, in Canadian dollars."},"period":{"type":"string","enum":["last_12_weeks","year"],"title":"Over what period","description":"last_12_weeks: the total commissions you earned in the 12 weeks before your job ended (the most exact figure). year: what you earn in commissions in a typical year (an estimate)."}},"required":["amount","period"],"title":"Regular commissions","description":"Leave out if you were not paid commissions."}},"required":["kind","hourlyRate","weeklyHours"],"title":"Hourly","description":"You were paid by the hour for about the same hours each week."},{"type":"object","properties":{"kind":{"type":"string","const":"varies","title":"Pay that changes week to week"},"averageWeeklyWages":{"type":"number","minimum":0,"maximum":100000000,"title":"Average weekly pay","description":"Add up your regular pay (not overtime or vacation pay) for the weeks you worked in the 12 weeks before your job ended, and divide by the number of those weeks."}},"required":["kind","averageWeeklyWages"],"title":"Pay that changes week to week","description":"Your hours or pay changed from week to week, or you were paid by the piece or on commission only."}],"title":"Your pay","description":"How you were paid before your job ended."},"payroll":{"type":"string","enum":["yes","no","unsure"],"title":"Is the employer’s total payroll CAD 2.5 million or more a year?","description":"yes, no, or unsure. Count the wages of all its employees, in Ontario and elsewhere. For example, 50 people earning CAD 50,000 each is a payroll of CAD 2.5 million. Severance pay depends on this."},"hasBenefits":{"type":"boolean","title":"Did you have benefits through work?","description":"Health, dental, life or disability insurance, or a pension or RRSP plan the employer paid into."},"terminationClause":{"type":"string","enum":["yes","no","unsure"],"title":"Does your employment contract say what you get when your job ends?","description":"yes if you signed a contract or offer letter with a clause about ending the job (often called termination), no if not, unsure if you don’t know."},"exemptions":{"default":[],"title":"Do any of these apply to you?","description":"Pick every one that might apply. Leave empty if none do. Any of these means a lawyer should look at your situation first.","type":"array","items":{"type":"string","enum":["federal_employer","work_outside_ontario","fixed_term","temporary_layoff","wilful_misconduct","frustration","refused_alternative_work","no_return_from_layoff","strike_or_lockout","construction","retirement_age","unreduced_pension","shipbuilding","unsure"],"title":"Exemption","description":"federal_employer: Your employer is federally regulated, such as a bank, airline, railway, telecom company or interprovincial trucking company. work_outside_ontario: Your work was not done in Ontario. fixed_term: You were hired for a set term or a specific task, and the job ended when it was over. temporary_layoff: You are on a temporary layoff. wilful_misconduct: The employer says you deliberately did something seriously wrong, or deliberately neglected your duties. frustration: Something unexpected (not an illness or injury) made it impossible to continue the job. refused_alternative_work: You turned down a reasonable other job the employer offered you, or one available through seniority. no_return_from_layoff: You were on a temporary layoff and did not come back within a reasonable time after being recalled. strike_or_lockout: Your job ended during or because of a strike or lockout, or a closure caused by one. construction: You were a construction employee, or did on-site maintenance of buildings, roads, sewers, pipelines or similar works. retirement_age: Your job ended when you reached the employer’s usual retirement age. unreduced_pension: You retired and are getting a full (unreduced) pension from the employer’s plan. shipbuilding: You worked in commercial shipbuilding or ship repair under a supplementary unemployment benefit plan you or your union agreed would apply. unsure: You are not sure whether one of these applies."}},"offer":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":100000000,"title":"Amount offered","description":"The total the employer offered, in Canadian dollars, before tax."},"weeks":{"type":"number","minimum":0,"maximum":520,"title":"Weeks of pay offered","description":"If the offer was in weeks of pay rather than dollars."},"releaseRequired":{"default":false,"title":"Do they want you to sign a release?","description":"A release is a document where you agree not to sue or claim anything more.","type":"boolean"}},"title":"The employer’s offer","description":"Leave out if the employer has not offered anything yet."},"workingNoticeWeeks":{"default":0,"title":"Weeks of written notice you worked","description":"If the employer told you in writing ahead of time and you kept working until the last day, how many weeks that was. Otherwise 0.","type":"number","minimum":0,"maximum":104},"toldDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Day you were told","description":"The day you were told your job was ending, if it was before your last day."},"massTermination":{"default":"no","type":"string","enum":["yes","no","unsure"],"title":"Did 50 or more people at your workplace lose their jobs within the same 4 weeks?","description":"yes, no, or unsure. Leave as no if you don’t think so."},"businessClosure":{"default":"no","type":"string","enum":["yes","no","unsure"],"title":"Did the employer close all or part of the business where you worked, with 50 or more people losing their jobs within 6 months?","description":"yes, no, or unsure. This matters only if the payroll is under CAD 2.5 million."}},"required":["endedHow","endDate","age","role","pay","payroll","hasBenefits","terminationClause"],"title":"Severance check","description":"The facts about how your job ended."}}},"examples":{"example1":{"summary":"The homepage example: 10 years and 11 months, CAD 104,000 a year, let go without cause, payroll over CAD 2.5 million","value":{"input":{"endedHow":"let_go_without_cause","endDate":"2026-09-01","yearsOfService":10,"monthsOfService":11,"age":45,"role":"staff","pay":{"kind":"salary","annualSalary":104000},"payroll":"yes","hasBenefits":true,"terminationClause":"no","exemptions":[],"workingNoticeWeeks":0,"massTermination":"no","businessClosure":"no"}}},"example2":{"summary":"Hourly worker with 4 years, offered 2 weeks and a release","value":{"input":{"endedHow":"let_go_without_cause","endDate":"2026-06-15","age":31,"role":"staff","pay":{"kind":"hourly","hourlyRate":24,"weeklyHours":40},"payroll":"unsure","hasBenefits":true,"terminationClause":"no","exemptions":[],"workingNoticeWeeks":0,"massTermination":"no","businessClosure":"no","startDate":"2022-06-01","offer":{"weeks":2,"releaseRequired":true}}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"computed":{"type":"boolean","description":"False when the facts need a lawyer before any figure can be given."},"service":{"anyOf":[{"type":"object","properties":{"years":{"type":"number"},"months":{"type":"number"},"days":{"type":["number","null"]},"from":{"type":"string","enum":["dates","years_and_months"]}},"required":["years","months","days","from"]},{"type":"null"}]},"weeklyWage":{"type":["number","null"]},"weeklyWageIsEstimate":{"type":"boolean"},"terminationPay":{"anyOf":[{"type":"object","properties":{"noticeWeeks":{"type":"number"},"workingNoticeWeeks":{"type":"number"},"payWeeks":{"type":"number"},"amount":{"type":"number"}},"required":["noticeWeeks","workingNoticeWeeks","payWeeks","amount"]},{"type":"null"}]},"vacationPay":{"anyOf":[{"type":"object","properties":{"ratePercent":{"type":"number"},"amount":{"type":"number"}},"required":["ratePercent","amount"]},{"type":"null"}]},"severancePay":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["owed","not_owed","depends"]},"reason":{"type":"string"},"years":{"type":"number"},"months":{"type":"number"},"weeks":{"type":"number"},"weeksLabel":{"type":"string"},"capped":{"type":"boolean"},"amount":{"type":"number"}},"required":["status","reason","years","months","weeks","weeksLabel","capped","amount"]},{"type":"null"}]},"benefits":{"anyOf":[{"type":"object","properties":{"continueWeeks":{"type":"number"},"note":{"type":"string"}},"required":["continueWeeks","note"]},{"type":"null"}]},"esaMinimum":{"anyOf":[{"type":"object","properties":{"total":{"type":"number"},"totalIfSeveranceOwed":{"type":"number"}},"required":["total","totalIfSeveranceOwed"]},{"type":"null"}]},"commonLaw":{"anyOf":[{"type":"object","properties":{"lowMonths":{"type":"number"},"highMonths":{"type":"number"},"midMonths":{"type":"number"},"monthlyPay":{"type":"number"},"lowAmount":{"type":"number"},"midAmount":{"type":"number"},"highAmount":{"type":"number"},"capped":{"type":"boolean"},"note":{"type":"string"}},"required":["lowMonths","highMonths","midMonths","monthlyPay","lowAmount","midAmount","highAmount","capped","note"]},{"type":"null"}]},"offer":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number"},"releaseRequired":{"type":"boolean"},"gapToEsaMinimum":{"type":"number"},"gapToCommonLawLow":{"type":"number"},"position":{"type":"string","enum":["below_esa_minimum","below_common_law_range","within_common_law_range","above_common_law_range","not_compared"]}},"required":["amount","releaseRequired","gapToEsaMinimum","gapToCommonLawLow","position"]},{"type":"null"}]},"limitation":{"type":"object","properties":{"civil":{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"number"},"status":{"type":"string","enum":["passed","under_90_days","open"]}},"required":["from","lastDay","daysLeft","status"]},"esaComplaint":{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"number"},"status":{"type":"string","enum":["passed","under_90_days","open"]}},"required":["from","lastDay","daysLeft","status"]}},"required":["civil","esaComplaint"]},"lawyerReasons":{"type":"array","items":{"type":"string","enum":["exemption","other_ending","fired_for_cause","constructive_dismissal","laid_off","termination_clause","payroll_unsure","closure_unsure","mass_termination","offer_below_range","deadline_close"]}},"nextActions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"]}}},"required":["computed","service","weeklyWage","weeklyWageIsEstimate","terminationPay","vacationPay","severancePay","benefits","esaMinimum","commonLaw","offer","limitation","lawyerReasons","nextActions"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"employment.severance_check","version":1,"title":"Severance check"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"computed":true,"service":{"years":10,"months":11,"days":null,"from":"years_and_months"},"weeklyWage":2000,"weeklyWageIsEstimate":false,"terminationPay":{"noticeWeeks":8,"workingNoticeWeeks":0,"payWeeks":8,"amount":16000},"vacationPay":{"ratePercent":6,"amount":960},"severancePay":{"status":"owed","reason":"Owed because you worked there 5 or more years and the employer's payroll is CAD 2.5 million or more.","years":11,"months":0,"weeks":11,"weeksLabel":"11 weeks","capped":false,"amount":22000},"benefits":{"continueWeeks":8,"note":"The employer must keep paying its share of your benefit plans for the 8 weeks of the statutory notice period, even when it pays you instead of giving notice."},"esaMinimum":{"total":38960,"totalIfSeveranceOwed":38960},"commonLaw":{"lowMonths":9,"highMonths":15,"midMonths":12,"monthlyPay":8666.67,"lowAmount":78000,"midAmount":104000,"highAmount":130000,"capped":false,"note":"An estimate of the range courts have given people with similar service, age and role. It is not a prediction. Your contract can limit it, and money you earn from a new job during the notice period reduces it."},"offer":null,"limitation":{"civil":{"from":"2026-09-01","lastDay":"2028-09-01","daysLeft":709,"status":"open"},"esaComplaint":{"from":"2026-09-01","lastDay":"2028-09-01","daysLeft":709,"status":"open"}},"lawyerReasons":[],"nextActions":[{"id":"buy","label":"Get a demand letter","operation":"employment.demand_letter","sku":"employment.demand_letter"},{"id":"handoff","label":"Have Mithril Law take it on","sku":"employment.representation"}]},"summary":"Your minimum under Ontario's Employment Standards Act is CAD 38,960: 8 weeks of termination pay, 11 weeks of severance pay, and vacation pay on the termination pay. At common law, courts have given people with similar service, age and role roughly 9 to 15 months' pay, about CAD 78,000 to CAD 130,000. That is an estimate, not a prediction. The last day to start a lawsuit is September 1, 2028.","steps":[{"label":"Length of service","value":"10 years, 11 months","detail":"As you entered it, in completed years and months.","cites":[{"sourceId":"on/esa-2000/s-57","label":"Employment Standards Act, 2000, s. 57","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(1)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Regular weekly wage","value":"CAD 2,000","detail":"CAD 104,000 a year divided by 52 weeks.","cites":[{"sourceId":"on/esa-2000/s-1-1","label":"Employment Standards Act, 2000, s. 1(1), \"regular wages\"","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Termination pay","value":"8 weeks · CAD 16,000","detail":"8 weeks of notice for 8 or more years of employment. No notice was worked, so the employer owes 8 weeks of regular wages as a lump sum.","cites":[{"sourceId":"on/esa-2000/s-54","label":"Employment Standards Act, 2000, s. 54","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-57","label":"Employment Standards Act, 2000, s. 57(h)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-61","label":"Employment Standards Act, 2000, s. 61(1)(a)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Vacation pay on termination pay","value":"CAD 960","detail":"6% of CAD 16,000, because you worked there 5 years or more. Termination pay counts as wages, so vacation pay is owed on it. None is owed on severance pay.","cites":[{"sourceId":"on/esa-2000/s-35-2","label":"Employment Standards Act, 2000, s. 35.2(b)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-1-1","label":"Employment Standards Act, 2000, s. 1(1), \"wages\"","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2017-onscsm-9126","label":"Panaligan v. Mayfair Tennis Courts Limited, 2017 CanLII 9126 (ON SCSM), paras. 55-56","url":"https://canlii.ca/t/gxpwg"},{"sourceId":"case/2012-olrb-58233","label":"Rainbow Concrete Industries Limited v. Lentir, 2012 CanLII 58233 (ON LRB), para. 33","url":"https://canlii.ca/t/ft2jd"}]},{"label":"Severance pay","value":"11 weeks · CAD 22,000","detail":"Owed because you worked there 5 or more years and the employer's payroll is CAD 2.5 million or more. Your service, plus the 8 weeks of notice you did not get (s. 65(4)), is 11 years, 0 months (the notice is counted in whole months only, because no start date was given). One week of regular wages for each completed year, plus months divided by 12: 11 weeks.","cites":[{"sourceId":"on/esa-2000/s-64","label":"Employment Standards Act, 2000, s. 64(1)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(1)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(4)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2012-olrb-58233","label":"Rainbow Concrete Industries Limited v. Lentir, 2012 CanLII 58233 (ON LRB), para. 33","url":"https://canlii.ca/t/ft2jd"},{"sourceId":"on/esa-2000/s-64","label":"Employment Standards Act, 2000, s. 64(2)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2021-onscdc-4290","label":"Hawkes v. Max Aicher (North America) Limited, 2021 ONSC 4290 (Div. Ct.), paras. 51-52","url":"https://canlii.ca/t/jgfnn"}]},{"label":"Benefits","value":"Continue for 8 weeks","detail":"The employer must keep paying its share of your benefit plans for the 8 weeks of the statutory notice period, even when it pays you instead of giving notice.","cites":[{"sourceId":"on/esa-2000/s-60","label":"Employment Standards Act, 2000, s. 60(1)(c)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-61","label":"Employment Standards Act, 2000, s. 61(1)(b)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"ESA minimum","value":"CAD 38,960","detail":"CAD 16,000 termination pay + CAD 960 vacation pay + CAD 22,000 severance pay. This minimum is owed whether or not you sign a release, and new earnings don't reduce it. Any vacation pay you had already earned and not taken is owed on top.","cites":[{"sourceId":"on/esa-2000/s-5","label":"Employment Standards Act, 2000, s. 5(1)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(7)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2017-onca-402","label":"Brake v. PJ-M2R Restaurant Inc., 2017 ONCA 402, paras. 111, 118","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0402.htm"}]},{"label":"Common-law range (estimate)","value":"9 to 15 months · CAD 78,000 to CAD 130,000","detail":"10 to under 15 years of service: 9 to 15 months; age 45: no change; staff role: no change. At CAD 8,666.67 a month (weekly wage × 52 ÷ 12, before benefits and bonus). An estimate of the range courts have given people with similar service, age and role. It is not a prediction. Your contract can limit it, and money you earn from a new job during the notice period reduces it. It includes the ESA minimum; it is not added to it.","cites":[{"sourceId":"case/2015-onca-801","label":"Michela v. St. Thomas of Villanova Catholic School, 2015 ONCA 801, para. 13","url":"https://www.ontariocourts.ca/decisions/2015/2015ONCA0801.htm"},{"sourceId":"case/2015-onca-247","label":"Beatty v. Best Theratronics Ltd., 2015 ONCA 247, para. 4","url":"https://www.ontariocourts.ca/decisions/2015/2015ONCA0247.htm"},{"sourceId":"case/2022-onca-531","label":"Humphrey v. Mene Inc., 2022 ONCA 531, para. 46","url":"https://www.ontariocourts.ca/decisions/2022/2022ONCA0531.htm"},{"sourceId":"case/2019-onca-512","label":"Dawe v. The Equitable Life Insurance Company of Canada, 2019 ONCA 512, paras. 31, 42-44","url":"https://www.ontariocourts.ca/decisions/2019/2019ONCA0512.htm"},{"sourceId":"case/2023-onca-696","label":"Lynch v. Avaya Canada Corporation, 2023 ONCA 696, paras. 9-10, 16","url":"https://canlii.ca/t/k0qrd"},{"sourceId":"case/2017-onca-402","label":"Brake v. PJ-M2R Restaurant Inc., 2017 ONCA 402, para. 110","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0402.htm"}]},{"label":"Deadline to sue","value":"September 1, 2028","detail":"Two years from September 1, 2026, the day the claim is presumed to have been discovered. Some things can move this date, such as a later discovery, incapacity, or an agreement to use a mediator; a lawyer can check them.","cites":[{"sourceId":"on/limitations-act-2002/s-4","label":"Limitations Act, 2002, s. 4","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-5","label":"Limitations Act, 2002, s. 5(1), (2)","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-7","label":"Limitations Act, 2002, s. 7","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-11","label":"Limitations Act, 2002, s. 11","url":"https://www.ontario.ca/laws/statute/02l24"}]},{"label":"Deadline for an ESA complaint","value":"September 1, 2028","detail":"A complaint to the Ministry of Labour about unpaid termination or severance pay must be filed within two years. Choose one route: filing a complaint for termination or severance pay stops you from suing for wrongful dismissal over the same job, unless you withdraw it within two weeks; suing stops you from filing the complaint.","cites":[{"sourceId":"on/esa-2000/s-96","label":"Employment Standards Act, 2000, s. 96(3)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-97","label":"Employment Standards Act, 2000, s. 97(2), (4)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-98","label":"Employment Standards Act, 2000, s. 98(2)","url":"https://www.ontario.ca/laws/statute/00e41"}]}],"boundary":{"kind":"automated","actions":[{"id":"buy","label":"Get a demand letter","operation":"employment.demand_letter","sku":"employment.demand_letter"},{"id":"handoff","label":"Have Mithril Law take it on","sku":"employment.representation"}]},"warnings":["Without a start date, the notice added to severance is counted in whole months only. Enter your start date for the exact figure, which can be slightly higher."]},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"employment/esa/coverage-and-exemptions","title":"Who the ESA figures cover, and exemptions","status":"unverified"},{"id":"employment/esa/length-of-service","title":"Length of service","status":"unverified"},{"id":"employment/esa/regular-weekly-wage","title":"Regular wages for a regular work week","status":"unverified"},{"id":"employment/esa/termination-pay","title":"Termination pay","status":"unverified"},{"id":"employment/esa/benefit-continuation","title":"Benefits during the notice period","status":"unverified"},{"id":"employment/esa/severance-eligibility","title":"Who gets severance pay","status":"unverified"},{"id":"employment/esa/severance-pay","title":"How much severance pay","status":"unverified"},{"id":"employment/esa/vacation-pay-on-termination-pay","title":"Vacation pay on termination pay","status":"unverified"},{"id":"employment/esa/mass-termination","title":"Mass terminations","status":"unverified"},{"id":"employment/esa/no-waiver","title":"The ESA minimum cannot be waived","status":"unverified"},{"id":"employment/common-law/reasonable-notice-estimate","title":"Common-law range (estimate)","status":"unverified"},{"id":"employment/common-law/offer-comparison","title":"The employer's offer","status":"unverified"},{"id":"employment/severance-check/lawyer-boundary","title":"When the severance check stops for a lawyer","status":"unverified"},{"id":"employment/limitations/civil-claim","title":"Deadline to sue","status":"unverified"},{"id":"employment/limitations/esa-complaint","title":"Deadline for an ESA complaint, and the choice between a complaint and a lawsuit","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"employment.severance_check","version":1,"kind":"calculate","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/employment.severance_check/run":{"get":{"operationId":"get_employment_severance_check","tags":["employment"],"summary":"Severance check (from a URL)","description":"Use this when an Ontario employee has lost their job, or expects to, and wants to know the minimum they are owed and how an offer compares. Ontario only: the Employment Standards Act, 2000 and the common-law range Ontario courts use. Do not use it for work outside Ontario or in a federally regulated industry, or to write the demand itself. Next: employment_demand_letter to prepare a demand; employment_termination_clause_check when the contract says what is owed; handoff_create when the boundary is needs_lawyer.\n\nWhat an Ontario employee is owed when a job ends: the ESA minimum, an estimate of the common-law range, the employer’s offer against both, and the deadlines.\n\nCall when a person in Ontario has lost their job or is about to. Ask, in this order: how the job ended; the last day; the first day (or years and months of service); their age; their role; their pay; whether the employer's total payroll is CAD 2.5 million or more (unsure is a fine answer); whether they had benefits; whether their contract says what they get when the job ends; whether any listed exemption may apply; and any offer. The ESA figures are exact for the facts given. The common-law range is an estimate of the range courts have used, never a prediction; say so when you repeat it. When the boundary is needs_lawyer, offer the listed actions instead of advising. When it is automated, the next step is the demand letter (employment.demand_letter).\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `employment/esa/coverage-and-exemptions` (unverified), `employment/esa/length-of-service` (unverified), `employment/esa/regular-weekly-wage` (unverified), `employment/esa/termination-pay` (unverified), `employment/esa/benefit-continuation` (unverified), `employment/esa/severance-eligibility` (unverified), `employment/esa/severance-pay` (unverified), `employment/esa/vacation-pay-on-termination-pay` (unverified), `employment/esa/mass-termination` (unverified), `employment/esa/no-waiver` (unverified), `employment/common-law/reasonable-notice-estimate` (unverified), `employment/common-law/offer-comparison` (unverified), `employment/severance-check/lawyer-boundary` (unverified), `employment/limitations/civil-claim` (unverified), `employment/limitations/esa-complaint` (unverified). Availability: unverified.\nMCP tool: `employment_severance_check`. Markdown: https://mithril.law/employment/severance-check.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/employment.severance_check/run?endedHow=let_go_without_cause&endDate=2026-09-01&yearsOfService=10&monthsOfService=11&age=45&role=staff&pay.kind=salary&pay.annualSalary=104000&payroll=yes&hasBenefits=true&terminationClause=no&workingNoticeWeeks=0&massTermination=no&businessClosure=no","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"endedHow","in":"query","required":true,"description":"let_go_without_cause: the employer ended your job and did not say you did anything wrong. constructive_dismissal: the employer made a big change to your job (pay, duties, hours, place) or treated you so badly that you quit because of it. laid_off: the employer laid you off. fired_for_cause: the employer says you were fired for something you did. other: anything else, such as resigning or retiring.","schema":{"type":"string","enum":["let_go_without_cause","constructive_dismissal","laid_off","fired_for_cause","other"],"title":"How did your job end?","description":"let_go_without_cause: the employer ended your job and did not say you did anything wrong. constructive_dismissal: the employer made a big change to your job (pay, duties, hours, place) or treated you so badly that you quit because of it. laid_off: the employer laid you off. fired_for_cause: the employer says you were fired for something you did. other: anything else, such as resigning or retiring."}},{"name":"endDate","in":"query","required":true,"description":"The last day you were employed. If you were laid off, the first day of the layoff.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Last day of your job","description":"The last day you were employed. If you were laid off, the first day of the layoff."}},{"name":"startDate","in":"query","required":false,"description":"The first day you worked there. Leave out if you don’t know it; then give your years and months of service.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"First day of your job","description":"The first day you worked there. Leave out if you don’t know it; then give your years and months of service."}},{"name":"yearsOfService","in":"query","required":false,"description":"Only if you don’t know your start date: how many full years you worked there.","schema":{"type":"integer","minimum":0,"maximum":70,"title":"Years of service","description":"Only if you don’t know your start date: how many full years you worked there."}},{"name":"monthsOfService","in":"query","required":false,"description":"Only if you don’t know your start date: full months on top of the years.","schema":{"type":"integer","minimum":0,"maximum":11,"title":"Extra months of service","description":"Only if you don’t know your start date: full months on top of the years."}},{"name":"age","in":"query","required":true,"description":"Your age on the last day of your job.","schema":{"type":"integer","minimum":14,"maximum":100,"title":"Your age","description":"Your age on the last day of your job."}},{"name":"role","in":"query","required":true,"description":"staff: you did not supervise anyone. supervisor: you supervised a team or a shift. manager: you managed people or a department. executive: you were a senior leader, such as a vice-president or officer.","schema":{"type":"string","enum":["staff","supervisor","manager","executive"],"title":"Your role","description":"staff: you did not supervise anyone. supervisor: you supervised a team or a shift. manager: you managed people or a department. executive: you were a senior leader, such as a vice-president or officer."}},{"name":"pay","in":"query","required":true,"description":"How you were paid before your job ended.","schema":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"salary","title":"Salary"},"annualSalary":{"type":"number","minimum":0,"maximum":100000000,"title":"Yearly salary","description":"Your salary for a year, before tax, in Canadian dollars."},"commissions":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":100000000,"title":"Commissions","description":"Commissions you earned regularly, before tax, in Canadian dollars."},"period":{"type":"string","enum":["last_12_weeks","year"],"title":"Over what period","description":"last_12_weeks: the total commissions you earned in the 12 weeks before your job ended (the most exact figure). year: what you earn in commissions in a typical year (an estimate)."}},"required":["amount","period"],"title":"Regular commissions","description":"Leave out if you were not paid commissions."}},"required":["kind","annualSalary"],"title":"Salary","description":"You were paid a set amount a year."},{"type":"object","properties":{"kind":{"type":"string","const":"hourly","title":"Hourly"},"hourlyRate":{"type":"number","minimum":0,"maximum":100000000,"title":"Hourly rate","description":"Your regular rate per hour, in Canadian dollars."},"weeklyHours":{"type":"number","exclusiveMinimum":0,"maximum":168,"title":"Regular hours a week","description":"The hours you usually worked each week, not counting overtime."},"commissions":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":100000000,"title":"Commissions","description":"Commissions you earned regularly, before tax, in Canadian dollars."},"period":{"type":"string","enum":["last_12_weeks","year"],"title":"Over what period","description":"last_12_weeks: the total commissions you earned in the 12 weeks before your job ended (the most exact figure). year: what you earn in commissions in a typical year (an estimate)."}},"required":["amount","period"],"title":"Regular commissions","description":"Leave out if you were not paid commissions."}},"required":["kind","hourlyRate","weeklyHours"],"title":"Hourly","description":"You were paid by the hour for about the same hours each week."},{"type":"object","properties":{"kind":{"type":"string","const":"varies","title":"Pay that changes week to week"},"averageWeeklyWages":{"type":"number","minimum":0,"maximum":100000000,"title":"Average weekly pay","description":"Add up your regular pay (not overtime or vacation pay) for the weeks you worked in the 12 weeks before your job ended, and divide by the number of those weeks."}},"required":["kind","averageWeeklyWages"],"title":"Pay that changes week to week","description":"Your hours or pay changed from week to week, or you were paid by the piece or on commission only."}],"title":"Your pay","description":"How you were paid before your job ended."}},{"name":"payroll","in":"query","required":true,"description":"yes, no, or unsure. Count the wages of all its employees, in Ontario and elsewhere. For example, 50 people earning CAD 50,000 each is a payroll of CAD 2.5 million. Severance pay depends on this.","schema":{"type":"string","enum":["yes","no","unsure"],"title":"Is the employer’s total payroll CAD 2.5 million or more a year?","description":"yes, no, or unsure. Count the wages of all its employees, in Ontario and elsewhere. For example, 50 people earning CAD 50,000 each is a payroll of CAD 2.5 million. Severance pay depends on this."}},{"name":"hasBenefits","in":"query","required":true,"description":"Health, dental, life or disability insurance, or a pension or RRSP plan the employer paid into.","schema":{"type":"boolean","title":"Did you have benefits through work?","description":"Health, dental, life or disability insurance, or a pension or RRSP plan the employer paid into."}},{"name":"terminationClause","in":"query","required":true,"description":"yes if you signed a contract or offer letter with a clause about ending the job (often called termination), no if not, unsure if you don’t know.","schema":{"type":"string","enum":["yes","no","unsure"],"title":"Does your employment contract say what you get when your job ends?","description":"yes if you signed a contract or offer letter with a clause about ending the job (often called termination), no if not, unsure if you don’t know."}},{"name":"exemptions","in":"query","required":false,"description":"Pick every one that might apply. Leave empty if none do. Any of these means a lawyer should look at your situation first.","schema":{"default":[],"title":"Do any of these apply to you?","description":"Pick every one that might apply. Leave empty if none do. Any of these means a lawyer should look at your situation first.","type":"array","items":{"type":"string","enum":["federal_employer","work_outside_ontario","fixed_term","temporary_layoff","wilful_misconduct","frustration","refused_alternative_work","no_return_from_layoff","strike_or_lockout","construction","retirement_age","unreduced_pension","shipbuilding","unsure"],"title":"Exemption","description":"federal_employer: Your employer is federally regulated, such as a bank, airline, railway, telecom company or interprovincial trucking company. work_outside_ontario: Your work was not done in Ontario. fixed_term: You were hired for a set term or a specific task, and the job ended when it was over. temporary_layoff: You are on a temporary layoff. wilful_misconduct: The employer says you deliberately did something seriously wrong, or deliberately neglected your duties. frustration: Something unexpected (not an illness or injury) made it impossible to continue the job. refused_alternative_work: You turned down a reasonable other job the employer offered you, or one available through seniority. no_return_from_layoff: You were on a temporary layoff and did not come back within a reasonable time after being recalled. strike_or_lockout: Your job ended during or because of a strike or lockout, or a closure caused by one. construction: You were a construction employee, or did on-site maintenance of buildings, roads, sewers, pipelines or similar works. retirement_age: Your job ended when you reached the employer’s usual retirement age. unreduced_pension: You retired and are getting a full (unreduced) pension from the employer’s plan. shipbuilding: You worked in commercial shipbuilding or ship repair under a supplementary unemployment benefit plan you or your union agreed would apply. unsure: You are not sure whether one of these applies."}},"style":"form","explode":true},{"name":"offer.amount","in":"query","required":false,"description":"The total the employer offered, in Canadian dollars, before tax.","schema":{"type":"number","minimum":0,"maximum":100000000,"title":"Amount offered","description":"The total the employer offered, in Canadian dollars, before tax."}},{"name":"offer.weeks","in":"query","required":false,"description":"If the offer was in weeks of pay rather than dollars.","schema":{"type":"number","minimum":0,"maximum":520,"title":"Weeks of pay offered","description":"If the offer was in weeks of pay rather than dollars."}},{"name":"offer.releaseRequired","in":"query","required":false,"description":"A release is a document where you agree not to sue or claim anything more.","schema":{"default":false,"title":"Do they want you to sign a release?","description":"A release is a document where you agree not to sue or claim anything more.","type":"boolean"}},{"name":"workingNoticeWeeks","in":"query","required":false,"description":"If the employer told you in writing ahead of time and you kept working until the last day, how many weeks that was. Otherwise 0.","schema":{"default":0,"title":"Weeks of written notice you worked","description":"If the employer told you in writing ahead of time and you kept working until the last day, how many weeks that was. Otherwise 0.","type":"number","minimum":0,"maximum":104}},{"name":"toldDate","in":"query","required":false,"description":"The day you were told your job was ending, if it was before your last day.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Day you were told","description":"The day you were told your job was ending, if it was before your last day."}},{"name":"massTermination","in":"query","required":false,"description":"yes, no, or unsure. Leave as no if you don’t think so.","schema":{"default":"no","type":"string","enum":["yes","no","unsure"],"title":"Did 50 or more people at your workplace lose their jobs within the same 4 weeks?","description":"yes, no, or unsure. Leave as no if you don’t think so."}},{"name":"businessClosure","in":"query","required":false,"description":"yes, no, or unsure. This matters only if the payroll is under CAD 2.5 million.","schema":{"default":"no","type":"string","enum":["yes","no","unsure"],"title":"Did the employer close all or part of the business where you worked, with 50 or more people losing their jobs within 6 months?","description":"yes, no, or unsure. This matters only if the payroll is under CAD 2.5 million."}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"computed":{"type":"boolean","description":"False when the facts need a lawyer before any figure can be given."},"service":{"anyOf":[{"type":"object","properties":{"years":{"type":"number"},"months":{"type":"number"},"days":{"type":["number","null"]},"from":{"type":"string","enum":["dates","years_and_months"]}},"required":["years","months","days","from"]},{"type":"null"}]},"weeklyWage":{"type":["number","null"]},"weeklyWageIsEstimate":{"type":"boolean"},"terminationPay":{"anyOf":[{"type":"object","properties":{"noticeWeeks":{"type":"number"},"workingNoticeWeeks":{"type":"number"},"payWeeks":{"type":"number"},"amount":{"type":"number"}},"required":["noticeWeeks","workingNoticeWeeks","payWeeks","amount"]},{"type":"null"}]},"vacationPay":{"anyOf":[{"type":"object","properties":{"ratePercent":{"type":"number"},"amount":{"type":"number"}},"required":["ratePercent","amount"]},{"type":"null"}]},"severancePay":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["owed","not_owed","depends"]},"reason":{"type":"string"},"years":{"type":"number"},"months":{"type":"number"},"weeks":{"type":"number"},"weeksLabel":{"type":"string"},"capped":{"type":"boolean"},"amount":{"type":"number"}},"required":["status","reason","years","months","weeks","weeksLabel","capped","amount"]},{"type":"null"}]},"benefits":{"anyOf":[{"type":"object","properties":{"continueWeeks":{"type":"number"},"note":{"type":"string"}},"required":["continueWeeks","note"]},{"type":"null"}]},"esaMinimum":{"anyOf":[{"type":"object","properties":{"total":{"type":"number"},"totalIfSeveranceOwed":{"type":"number"}},"required":["total","totalIfSeveranceOwed"]},{"type":"null"}]},"commonLaw":{"anyOf":[{"type":"object","properties":{"lowMonths":{"type":"number"},"highMonths":{"type":"number"},"midMonths":{"type":"number"},"monthlyPay":{"type":"number"},"lowAmount":{"type":"number"},"midAmount":{"type":"number"},"highAmount":{"type":"number"},"capped":{"type":"boolean"},"note":{"type":"string"}},"required":["lowMonths","highMonths","midMonths","monthlyPay","lowAmount","midAmount","highAmount","capped","note"]},{"type":"null"}]},"offer":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number"},"releaseRequired":{"type":"boolean"},"gapToEsaMinimum":{"type":"number"},"gapToCommonLawLow":{"type":"number"},"position":{"type":"string","enum":["below_esa_minimum","below_common_law_range","within_common_law_range","above_common_law_range","not_compared"]}},"required":["amount","releaseRequired","gapToEsaMinimum","gapToCommonLawLow","position"]},{"type":"null"}]},"limitation":{"type":"object","properties":{"civil":{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"number"},"status":{"type":"string","enum":["passed","under_90_days","open"]}},"required":["from","lastDay","daysLeft","status"]},"esaComplaint":{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"number"},"status":{"type":"string","enum":["passed","under_90_days","open"]}},"required":["from","lastDay","daysLeft","status"]}},"required":["civil","esaComplaint"]},"lawyerReasons":{"type":"array","items":{"type":"string","enum":["exemption","other_ending","fired_for_cause","constructive_dismissal","laid_off","termination_clause","payroll_unsure","closure_unsure","mass_termination","offer_below_range","deadline_close"]}},"nextActions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"]}}},"required":["computed","service","weeklyWage","weeklyWageIsEstimate","terminationPay","vacationPay","severancePay","benefits","esaMinimum","commonLaw","offer","limitation","lawyerReasons","nextActions"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"employment.severance_check","version":1,"title":"Severance check"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"computed":true,"service":{"years":10,"months":11,"days":null,"from":"years_and_months"},"weeklyWage":2000,"weeklyWageIsEstimate":false,"terminationPay":{"noticeWeeks":8,"workingNoticeWeeks":0,"payWeeks":8,"amount":16000},"vacationPay":{"ratePercent":6,"amount":960},"severancePay":{"status":"owed","reason":"Owed because you worked there 5 or more years and the employer's payroll is CAD 2.5 million or more.","years":11,"months":0,"weeks":11,"weeksLabel":"11 weeks","capped":false,"amount":22000},"benefits":{"continueWeeks":8,"note":"The employer must keep paying its share of your benefit plans for the 8 weeks of the statutory notice period, even when it pays you instead of giving notice."},"esaMinimum":{"total":38960,"totalIfSeveranceOwed":38960},"commonLaw":{"lowMonths":9,"highMonths":15,"midMonths":12,"monthlyPay":8666.67,"lowAmount":78000,"midAmount":104000,"highAmount":130000,"capped":false,"note":"An estimate of the range courts have given people with similar service, age and role. It is not a prediction. Your contract can limit it, and money you earn from a new job during the notice period reduces it."},"offer":null,"limitation":{"civil":{"from":"2026-09-01","lastDay":"2028-09-01","daysLeft":709,"status":"open"},"esaComplaint":{"from":"2026-09-01","lastDay":"2028-09-01","daysLeft":709,"status":"open"}},"lawyerReasons":[],"nextActions":[{"id":"buy","label":"Get a demand letter","operation":"employment.demand_letter","sku":"employment.demand_letter"},{"id":"handoff","label":"Have Mithril Law take it on","sku":"employment.representation"}]},"summary":"Your minimum under Ontario's Employment Standards Act is CAD 38,960: 8 weeks of termination pay, 11 weeks of severance pay, and vacation pay on the termination pay. At common law, courts have given people with similar service, age and role roughly 9 to 15 months' pay, about CAD 78,000 to CAD 130,000. That is an estimate, not a prediction. The last day to start a lawsuit is September 1, 2028.","steps":[{"label":"Length of service","value":"10 years, 11 months","detail":"As you entered it, in completed years and months.","cites":[{"sourceId":"on/esa-2000/s-57","label":"Employment Standards Act, 2000, s. 57","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(1)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Regular weekly wage","value":"CAD 2,000","detail":"CAD 104,000 a year divided by 52 weeks.","cites":[{"sourceId":"on/esa-2000/s-1-1","label":"Employment Standards Act, 2000, s. 1(1), \"regular wages\"","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Termination pay","value":"8 weeks · CAD 16,000","detail":"8 weeks of notice for 8 or more years of employment. No notice was worked, so the employer owes 8 weeks of regular wages as a lump sum.","cites":[{"sourceId":"on/esa-2000/s-54","label":"Employment Standards Act, 2000, s. 54","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-57","label":"Employment Standards Act, 2000, s. 57(h)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-61","label":"Employment Standards Act, 2000, s. 61(1)(a)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"Vacation pay on termination pay","value":"CAD 960","detail":"6% of CAD 16,000, because you worked there 5 years or more. Termination pay counts as wages, so vacation pay is owed on it. None is owed on severance pay.","cites":[{"sourceId":"on/esa-2000/s-35-2","label":"Employment Standards Act, 2000, s. 35.2(b)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-1-1","label":"Employment Standards Act, 2000, s. 1(1), \"wages\"","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2017-onscsm-9126","label":"Panaligan v. Mayfair Tennis Courts Limited, 2017 CanLII 9126 (ON SCSM), paras. 55-56","url":"https://canlii.ca/t/gxpwg"},{"sourceId":"case/2012-olrb-58233","label":"Rainbow Concrete Industries Limited v. Lentir, 2012 CanLII 58233 (ON LRB), para. 33","url":"https://canlii.ca/t/ft2jd"}]},{"label":"Severance pay","value":"11 weeks · CAD 22,000","detail":"Owed because you worked there 5 or more years and the employer's payroll is CAD 2.5 million or more. Your service, plus the 8 weeks of notice you did not get (s. 65(4)), is 11 years, 0 months (the notice is counted in whole months only, because no start date was given). One week of regular wages for each completed year, plus months divided by 12: 11 weeks.","cites":[{"sourceId":"on/esa-2000/s-64","label":"Employment Standards Act, 2000, s. 64(1)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(1)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(4)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2012-olrb-58233","label":"Rainbow Concrete Industries Limited v. Lentir, 2012 CanLII 58233 (ON LRB), para. 33","url":"https://canlii.ca/t/ft2jd"},{"sourceId":"on/esa-2000/s-64","label":"Employment Standards Act, 2000, s. 64(2)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2021-onscdc-4290","label":"Hawkes v. Max Aicher (North America) Limited, 2021 ONSC 4290 (Div. Ct.), paras. 51-52","url":"https://canlii.ca/t/jgfnn"}]},{"label":"Benefits","value":"Continue for 8 weeks","detail":"The employer must keep paying its share of your benefit plans for the 8 weeks of the statutory notice period, even when it pays you instead of giving notice.","cites":[{"sourceId":"on/esa-2000/s-60","label":"Employment Standards Act, 2000, s. 60(1)(c)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-61","label":"Employment Standards Act, 2000, s. 61(1)(b)","url":"https://www.ontario.ca/laws/statute/00e41"}]},{"label":"ESA minimum","value":"CAD 38,960","detail":"CAD 16,000 termination pay + CAD 960 vacation pay + CAD 22,000 severance pay. This minimum is owed whether or not you sign a release, and new earnings don't reduce it. Any vacation pay you had already earned and not taken is owed on top.","cites":[{"sourceId":"on/esa-2000/s-5","label":"Employment Standards Act, 2000, s. 5(1)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(7)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2017-onca-402","label":"Brake v. PJ-M2R Restaurant Inc., 2017 ONCA 402, paras. 111, 118","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0402.htm"}]},{"label":"Common-law range (estimate)","value":"9 to 15 months · CAD 78,000 to CAD 130,000","detail":"10 to under 15 years of service: 9 to 15 months; age 45: no change; staff role: no change. At CAD 8,666.67 a month (weekly wage × 52 ÷ 12, before benefits and bonus). An estimate of the range courts have given people with similar service, age and role. It is not a prediction. Your contract can limit it, and money you earn from a new job during the notice period reduces it. It includes the ESA minimum; it is not added to it.","cites":[{"sourceId":"case/2015-onca-801","label":"Michela v. St. Thomas of Villanova Catholic School, 2015 ONCA 801, para. 13","url":"https://www.ontariocourts.ca/decisions/2015/2015ONCA0801.htm"},{"sourceId":"case/2015-onca-247","label":"Beatty v. Best Theratronics Ltd., 2015 ONCA 247, para. 4","url":"https://www.ontariocourts.ca/decisions/2015/2015ONCA0247.htm"},{"sourceId":"case/2022-onca-531","label":"Humphrey v. Mene Inc., 2022 ONCA 531, para. 46","url":"https://www.ontariocourts.ca/decisions/2022/2022ONCA0531.htm"},{"sourceId":"case/2019-onca-512","label":"Dawe v. The Equitable Life Insurance Company of Canada, 2019 ONCA 512, paras. 31, 42-44","url":"https://www.ontariocourts.ca/decisions/2019/2019ONCA0512.htm"},{"sourceId":"case/2023-onca-696","label":"Lynch v. Avaya Canada Corporation, 2023 ONCA 696, paras. 9-10, 16","url":"https://canlii.ca/t/k0qrd"},{"sourceId":"case/2017-onca-402","label":"Brake v. PJ-M2R Restaurant Inc., 2017 ONCA 402, para. 110","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0402.htm"}]},{"label":"Deadline to sue","value":"September 1, 2028","detail":"Two years from September 1, 2026, the day the claim is presumed to have been discovered. Some things can move this date, such as a later discovery, incapacity, or an agreement to use a mediator; a lawyer can check them.","cites":[{"sourceId":"on/limitations-act-2002/s-4","label":"Limitations Act, 2002, s. 4","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-5","label":"Limitations Act, 2002, s. 5(1), (2)","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-7","label":"Limitations Act, 2002, s. 7","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-11","label":"Limitations Act, 2002, s. 11","url":"https://www.ontario.ca/laws/statute/02l24"}]},{"label":"Deadline for an ESA complaint","value":"September 1, 2028","detail":"A complaint to the Ministry of Labour about unpaid termination or severance pay must be filed within two years. Choose one route: filing a complaint for termination or severance pay stops you from suing for wrongful dismissal over the same job, unless you withdraw it within two weeks; suing stops you from filing the complaint.","cites":[{"sourceId":"on/esa-2000/s-96","label":"Employment Standards Act, 2000, s. 96(3)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-97","label":"Employment Standards Act, 2000, s. 97(2), (4)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-98","label":"Employment Standards Act, 2000, s. 98(2)","url":"https://www.ontario.ca/laws/statute/00e41"}]}],"boundary":{"kind":"automated","actions":[{"id":"buy","label":"Get a demand letter","operation":"employment.demand_letter","sku":"employment.demand_letter"},{"id":"handoff","label":"Have Mithril Law take it on","sku":"employment.representation"}]},"warnings":["Without a start date, the notice added to severance is counted in whole months only. Enter your start date for the exact figure, which can be slightly higher."]},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"employment/esa/coverage-and-exemptions","title":"Who the ESA figures cover, and exemptions","status":"unverified"},{"id":"employment/esa/length-of-service","title":"Length of service","status":"unverified"},{"id":"employment/esa/regular-weekly-wage","title":"Regular wages for a regular work week","status":"unverified"},{"id":"employment/esa/termination-pay","title":"Termination pay","status":"unverified"},{"id":"employment/esa/benefit-continuation","title":"Benefits during the notice period","status":"unverified"},{"id":"employment/esa/severance-eligibility","title":"Who gets severance pay","status":"unverified"},{"id":"employment/esa/severance-pay","title":"How much severance pay","status":"unverified"},{"id":"employment/esa/vacation-pay-on-termination-pay","title":"Vacation pay on termination pay","status":"unverified"},{"id":"employment/esa/mass-termination","title":"Mass terminations","status":"unverified"},{"id":"employment/esa/no-waiver","title":"The ESA minimum cannot be waived","status":"unverified"},{"id":"employment/common-law/reasonable-notice-estimate","title":"Common-law range (estimate)","status":"unverified"},{"id":"employment/common-law/offer-comparison","title":"The employer's offer","status":"unverified"},{"id":"employment/severance-check/lawyer-boundary","title":"When the severance check stops for a lawyer","status":"unverified"},{"id":"employment/limitations/civil-claim","title":"Deadline to sue","status":"unverified"},{"id":"employment/limitations/esa-complaint","title":"Deadline for an ESA complaint, and the choice between a complaint and a lawsuit","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"employment.severance_check","version":1,"kind":"calculate","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/employment.termination_clause_check/runs":{"post":{"operationId":"run_employment_termination_clause_check","tags":["employment"],"summary":"Termination clause check","description":"Use this when an Ontario employment contract says what the employee gets when the job ends and the person wants to know what may be wrong with that clause. Ontario only: the defects the Court of Appeal for Ontario has recognized. Do not use it to decide whether the clause holds (the boundary is always needs_lawyer), for a contract governed by another province's law, or for amounts owed (employment_severance_check does that). Next: handoff_create.\n\nChecks the wording of an Ontario employment contract’s termination clause for defects the Court of Appeal has recognized.\n\nCall when a person's employment contract says what they get when the job ends, usually after employment.severance_check returned the reason termination_clause. Ask the person to paste the clause word for word, including any separate cause or probation wording, and ask when they signed it. The result lists signals, each with its citation. It never says the clause holds or fails: the boundary is always needs_lawyer.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `employment/clauses/cause-provision` (unverified), `employment/clauses/benefits-excluded` (unverified), `employment/clauses/base-salary-only` (unverified), `employment/clauses/severance-left-out` (unverified), `employment/clauses/notice-below-esa` (unverified), `employment/clauses/at-any-time-wording` (unverified), `employment/clauses/signed-after-start` (unverified), `employment/clauses/consequence` (unverified). Availability: unverified.\nMCP tool: `employment_termination_clause_check`. Markdown: https://mithril.law/employment/termination-clause-check.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"clauseText":{"type":"string","minLength":20,"maxLength":20000,"title":"Your termination clause","description":"Paste the part of your contract about ending the job, word for word. Include any part about probation."},"causeClauseText":{"title":"Any separate clause about firing for cause","description":"If your contract has a separate part about being fired for cause or misconduct, paste it here word for word.","type":"string","maxLength":20000},"signedWhen":{"type":"string","enum":["before_start","after_start_terms_agreed_before","after_start_new_terms","unsure"],"title":"When did you sign the contract?","description":"before_start: before your first day. after_start_terms_agreed_before: after you started, but it only wrote down terms you had already agreed to. after_start_new_terms: after you started, and it added new terms. unsure: you don’t know."},"gotSomethingNewForSigning":{"default":"unsure","type":"string","enum":["yes","no","unsure"],"title":"Did you get something new for signing it?","description":"Only if you signed after starting work: yes if you got a raise, bonus, promotion or other new benefit in exchange for signing."},"hadCommissionsOrBonus":{"type":"string","enum":["yes","no","unsure"],"title":"Were you paid commissions or a bonus that was not up to the employer?","description":"yes if part of your pay was commissions, or a bonus you earned by a set formula rather than at the employer’s choice."},"payroll":{"default":"unsure","type":"string","enum":["yes","no","unsure"],"title":"Is the employer’s total payroll CAD 2.5 million or more a year?","description":"yes, no, or unsure. Count all its employees’ wages, in Ontario and elsewhere."},"employerContinuedBenefits":{"type":"string","enum":["yes","no","unsure"],"title":"Did the employer keep your benefits going after your job ended?","description":"yes, no, or unsure. Leave out if you had no benefits."},"dateSigned":{"title":"Date you signed","description":"If you know it.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["clauseText","signedWhen","hadCommissionsOrBonus"],"title":"Termination clause check","description":"Paste your termination clause and answer a few questions."}}},"examples":{"example1":{"summary":"A clause like the one in Wood v. Fred Deeley","value":{"input":{"clauseText":"The Company is entitled to terminate your employment at any time without cause by providing you with 2 weeks' notice of termination or pay in lieu thereof for each completed or partial year of employment with the Company. If the Company terminates your employment without cause, the Company shall not be obliged to make any payments to you other than those provided for in this paragraph. The payments and notice provided for in this paragraph are inclusive of your entitlements to notice, pay in lieu of notice and severance pay pursuant to the Employment Standards Act, 2000.","signedWhen":"after_start_terms_agreed_before","gotSomethingNewForSigning":"unsure","hadCommissionsOrBonus":"no","payroll":"yes"}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["cause_provision","benefits_excluded","base_salary_only","severance_left_out","notice_below_esa","at_any_time_wording","signed_after_start"]},"strength":{"type":"string","enum":["strong","possible","note"]},"title":{"type":"string"},"explanation":{"type":"string"},"found":{"type":"string"},"rule":{"type":"string"}},"required":["id","strength","title","explanation","rule"]}},"strong":{"type":"number"},"possible":{"type":"number"},"consequence":{"type":"string"},"notChecked":{"type":"array","items":{"type":"string"}},"signedOn":{"type":["string","null"]}},"required":["signals","strong","possible","consequence","notChecked","signedOn"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"employment.termination_clause_check","version":1,"title":"Termination clause check"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"signals":[{"id":"benefits_excluded","strength":"strong","title":"Benefits during the notice period","explanation":"The clause ends your benefits at termination, or says its payments are all you get, without keeping benefit contributions going through the ESA notice period, and the Court of Appeal holds that a clause like this contracts out of the ESA and fails.","found":"payments and notice provided for in this paragraph","rule":"employment/clauses/benefits-excluded"},{"id":"severance_left_out","strength":"possible","title":"Severance pay","explanation":"The clause either folds notice and severance pay into one amount, which can let the employer pay less than the separate ESA severance pay, or says its payments are all you get without mentioning severance pay, and the Court of Appeal held such a clause unenforceable where severance may be owed.","found":"inclusive of your entitlements to notice, pay in lieu of notice and severance","rule":"employment/clauses/severance-left-out"},{"id":"at_any_time_wording","strength":"note","title":"“At any time” or “sole discretion”","explanation":"Words like “at any time” or “sole discretion” do not by themselves break the ESA when the contract, read as a whole, shows an intent to give the ESA minimums, as the Court of Appeal decided in 2026.","found":"at any time","rule":"employment/clauses/at-any-time-wording"},{"id":"signed_after_start","strength":"note","title":"Signed after you started","explanation":"Signing after you started does not matter if it only wrote down terms agreed before you began, or if you got something new for signing.","rule":"employment/clauses/signed-after-start"}],"strong":1,"possible":1,"consequence":"If any part of the termination provisions falls short of the ESA, all of them fail, a severability clause cannot save them, and the common-law range applies instead. If they all meet the ESA, you are limited to what they give, which is at least the ESA minimum.","notChecked":["Termination wording elsewhere in the contract, such as probation, a cause definition or bonus and benefit plans. All termination provisions are read together.","The rest of the contract, which courts read as a whole.","What was agreed before you started, and whether the terms changed later."],"signedOn":null},"summary":"The check found 1 strong sign and 1 possible sign that the clause falls short of the ESA. If it fails, the common-law range applies instead of the ESA minimum. Whether it holds is a legal judgment, so have a lawyer look at it.","steps":[{"label":"Benefits during the notice period","value":"Strong sign of a defect","detail":"The clause ends your benefits at termination, or says its payments are all you get, without keeping benefit contributions going through the ESA notice period, and the Court of Appeal holds that a clause like this contracts out of the ESA and fails. Found: “payments and notice provided for in this paragraph”.","cites":[{"sourceId":"on/esa-2000/s-60","label":"Employment Standards Act, 2000, s. 60(1)(c)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-61","label":"Employment Standards Act, 2000, s. 61(1)(b)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2017-onca-158","label":"Wood v. Fred Deeley Imports Ltd., 2017 ONCA 158, paras. 53-57","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0158.htm"},{"sourceId":"case/2019-onca-965","label":"Cormier v. 1772887 Ontario Limited (St. Joseph Communications), 2019 ONCA 965, paras. 16-17","url":"https://www.ontariocourts.ca/decisions/2019/2019ONCA0965.htm"}]},{"label":"Severance pay","value":"Possible defect","detail":"The clause either folds notice and severance pay into one amount, which can let the employer pay less than the separate ESA severance pay, or says its payments are all you get without mentioning severance pay, and the Court of Appeal held such a clause unenforceable where severance may be owed. Found: “inclusive of your entitlements to notice, pay in lieu of notice and severance”.","cites":[{"sourceId":"on/esa-2000/s-64","label":"Employment Standards Act, 2000, s. 64(1)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(1), (7)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2017-onca-158","label":"Wood v. Fred Deeley Imports Ltd., 2017 ONCA 158, paras. 62-69","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0158.htm"}]},{"label":"“At any time” or “sole discretion”","value":"Note","detail":"Words like “at any time” or “sole discretion” do not by themselves break the ESA when the contract, read as a whole, shows an intent to give the ESA minimums, as the Court of Appeal decided in 2026. Found: “at any time”.","cites":[{"sourceId":"case/2026-onca-568","label":"Baker v. Van Dolder's Home Team Inc., 2026 ONCA 568, paras. 47, 53, 61-62","url":"https://canlii.ca/t/kmgml"},{"sourceId":"case/2024-onsc-1029","label":"Dufault v. The Corporation of the Township of Ignace, 2024 ONSC 1029, para. 46","url":"https://canlii.ca/t/k46k4"},{"sourceId":"case/2024-onca-915","label":"Dufault v. Ignace (Township), 2024 ONCA 915, para. 25","url":"https://canlii.ca/t/k8g1s"}]},{"label":"Signed after you started","value":"Note","detail":"Signing after you started does not matter if it only wrote down terms agreed before you began, or if you got something new for signing.","cites":[{"sourceId":"case/2017-onca-158","label":"Wood v. Fred Deeley Imports Ltd., 2017 ONCA 158, paras. 12-13","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0158.htm"},{"sourceId":"case/2024-onca-437","label":"Giacomodonato v. PearTree Securities Inc., 2024 ONCA 437, paras. 4-5","url":"https://canlii.ca/t/k509k"}]},{"label":"If the clause fails","value":"Common-law range","detail":"If any part of the termination provisions falls short of the ESA, all of them fail, a severability clause cannot save them, and the common-law range applies instead. If they all meet the ESA, you are limited to what they give, which is at least the ESA minimum.","cites":[{"sourceId":"case/2020-onca-391","label":"Waksdale v. Swegon North America Inc., 2020 ONCA 391, paras. 10, 14","url":"https://www.ontariocourts.ca/decisions/2020/2020ONCA0391.htm"},{"sourceId":"case/2017-onca-158","label":"Wood v. Fred Deeley Imports Ltd., 2017 ONCA 158, para. 16","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0158.htm"},{"sourceId":"case/1992-scc-machtinger","label":"Machtinger v. HOJ Industries Ltd., [1992] 1 SCR 986, p. 1004","url":"https://canlii.ca/t/1fsd2"},{"sourceId":"case/2026-onca-568","label":"Baker v. Van Dolder's Home Team Inc., 2026 ONCA 568, para. 84","url":"https://canlii.ca/t/kmgml"}]}],"boundary":{"kind":"needs_lawyer","reason":"Whether a clause holds is a legal judgment.","actions":[{"id":"book_consultation","label":"Book a consultation","href":"/book"},{"id":"handoff","label":"Have Mithril Law take it on","sku":"employment.representation"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"employment/clauses/cause-provision","title":"Clause check: firing for cause","status":"unverified"},{"id":"employment/clauses/benefits-excluded","title":"Clause check: benefits during the notice period","status":"unverified"},{"id":"employment/clauses/base-salary-only","title":"Clause check: base salary only","status":"unverified"},{"id":"employment/clauses/severance-left-out","title":"Clause check: severance pay","status":"unverified"},{"id":"employment/clauses/notice-below-esa","title":"Clause check: notice shorter than the ESA","status":"unverified"},{"id":"employment/clauses/at-any-time-wording","title":"Clause check: “at any time”, “sole discretion”, “for any reason”","status":"unverified"},{"id":"employment/clauses/signed-after-start","title":"Clause check: signed after starting work","status":"unverified"},{"id":"employment/clauses/consequence","title":"Clause check: what follows","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"employment.termination_clause_check","version":1,"kind":"check","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/employment.termination_clause_check/run":{"get":{"operationId":"get_employment_termination_clause_check","tags":["employment"],"summary":"Termination clause check (from a URL)","description":"Use this when an Ontario employment contract says what the employee gets when the job ends and the person wants to know what may be wrong with that clause. Ontario only: the defects the Court of Appeal for Ontario has recognized. Do not use it to decide whether the clause holds (the boundary is always needs_lawyer), for a contract governed by another province's law, or for amounts owed (employment_severance_check does that). Next: handoff_create.\n\nChecks the wording of an Ontario employment contract’s termination clause for defects the Court of Appeal has recognized.\n\nCall when a person's employment contract says what they get when the job ends, usually after employment.severance_check returned the reason termination_clause. Ask the person to paste the clause word for word, including any separate cause or probation wording, and ask when they signed it. The result lists signals, each with its citation. It never says the clause holds or fails: the boundary is always needs_lawyer.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `employment/clauses/cause-provision` (unverified), `employment/clauses/benefits-excluded` (unverified), `employment/clauses/base-salary-only` (unverified), `employment/clauses/severance-left-out` (unverified), `employment/clauses/notice-below-esa` (unverified), `employment/clauses/at-any-time-wording` (unverified), `employment/clauses/signed-after-start` (unverified), `employment/clauses/consequence` (unverified). Availability: unverified.\nMCP tool: `employment_termination_clause_check`. Markdown: https://mithril.law/employment/termination-clause-check.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/employment.termination_clause_check/run?clauseText=The%20Company%20is%20entitled%20to%20terminate%20your%20employment%20at%20any%20time%20without%20cause%20by%20providing%20you%20with%202%20weeks'%20notice%20of%20termination%20or%20pay%20in%20lieu%20thereof%20for%20each%20completed%20or%20partial%20year%20of%20employment%20with%20the%20Company.%20If%20the%20Company%20terminates%20your%20employment%20without%20cause%2C%20the%20Company%20shall%20not%20be%20obliged%20to%20make%20any%20payments%20to%20you%20other%20than%20those%20provided%20for%20in%20this%20paragraph.%20The%20payments%20and%20notice%20provided%20for%20in%20this%20paragraph%20are%20inclusive%20of%20your%20entitlements%20to%20notice%2C%20pay%20in%20lieu%20of%20notice%20and%20severance%20pay%20pursuant%20to%20the%20Employment%20Standards%20Act%2C%202000.&signedWhen=after_start_terms_agreed_before&gotSomethingNewForSigning=unsure&hadCommissionsOrBonus=no&payroll=yes","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"clauseText","in":"query","required":true,"description":"Paste the part of your contract about ending the job, word for word. Include any part about probation.","schema":{"type":"string","minLength":20,"maxLength":20000,"title":"Your termination clause","description":"Paste the part of your contract about ending the job, word for word. Include any part about probation."}},{"name":"causeClauseText","in":"query","required":false,"description":"If your contract has a separate part about being fired for cause or misconduct, paste it here word for word.","schema":{"title":"Any separate clause about firing for cause","description":"If your contract has a separate part about being fired for cause or misconduct, paste it here word for word.","type":"string","maxLength":20000}},{"name":"signedWhen","in":"query","required":true,"description":"before_start: before your first day. after_start_terms_agreed_before: after you started, but it only wrote down terms you had already agreed to. after_start_new_terms: after you started, and it added new terms. unsure: you don’t know.","schema":{"type":"string","enum":["before_start","after_start_terms_agreed_before","after_start_new_terms","unsure"],"title":"When did you sign the contract?","description":"before_start: before your first day. after_start_terms_agreed_before: after you started, but it only wrote down terms you had already agreed to. after_start_new_terms: after you started, and it added new terms. unsure: you don’t know."}},{"name":"gotSomethingNewForSigning","in":"query","required":false,"description":"Only if you signed after starting work: yes if you got a raise, bonus, promotion or other new benefit in exchange for signing.","schema":{"default":"unsure","type":"string","enum":["yes","no","unsure"],"title":"Did you get something new for signing it?","description":"Only if you signed after starting work: yes if you got a raise, bonus, promotion or other new benefit in exchange for signing."}},{"name":"hadCommissionsOrBonus","in":"query","required":true,"description":"yes if part of your pay was commissions, or a bonus you earned by a set formula rather than at the employer’s choice.","schema":{"type":"string","enum":["yes","no","unsure"],"title":"Were you paid commissions or a bonus that was not up to the employer?","description":"yes if part of your pay was commissions, or a bonus you earned by a set formula rather than at the employer’s choice."}},{"name":"payroll","in":"query","required":false,"description":"yes, no, or unsure. Count all its employees’ wages, in Ontario and elsewhere.","schema":{"default":"unsure","type":"string","enum":["yes","no","unsure"],"title":"Is the employer’s total payroll CAD 2.5 million or more a year?","description":"yes, no, or unsure. Count all its employees’ wages, in Ontario and elsewhere."}},{"name":"employerContinuedBenefits","in":"query","required":false,"description":"yes, no, or unsure. Leave out if you had no benefits.","schema":{"type":"string","enum":["yes","no","unsure"],"title":"Did the employer keep your benefits going after your job ended?","description":"yes, no, or unsure. Leave out if you had no benefits."}},{"name":"dateSigned","in":"query","required":false,"description":"If you know it.","schema":{"title":"Date you signed","description":"If you know it.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["cause_provision","benefits_excluded","base_salary_only","severance_left_out","notice_below_esa","at_any_time_wording","signed_after_start"]},"strength":{"type":"string","enum":["strong","possible","note"]},"title":{"type":"string"},"explanation":{"type":"string"},"found":{"type":"string"},"rule":{"type":"string"}},"required":["id","strength","title","explanation","rule"]}},"strong":{"type":"number"},"possible":{"type":"number"},"consequence":{"type":"string"},"notChecked":{"type":"array","items":{"type":"string"}},"signedOn":{"type":["string","null"]}},"required":["signals","strong","possible","consequence","notChecked","signedOn"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"employment.termination_clause_check","version":1,"title":"Termination clause check"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"signals":[{"id":"benefits_excluded","strength":"strong","title":"Benefits during the notice period","explanation":"The clause ends your benefits at termination, or says its payments are all you get, without keeping benefit contributions going through the ESA notice period, and the Court of Appeal holds that a clause like this contracts out of the ESA and fails.","found":"payments and notice provided for in this paragraph","rule":"employment/clauses/benefits-excluded"},{"id":"severance_left_out","strength":"possible","title":"Severance pay","explanation":"The clause either folds notice and severance pay into one amount, which can let the employer pay less than the separate ESA severance pay, or says its payments are all you get without mentioning severance pay, and the Court of Appeal held such a clause unenforceable where severance may be owed.","found":"inclusive of your entitlements to notice, pay in lieu of notice and severance","rule":"employment/clauses/severance-left-out"},{"id":"at_any_time_wording","strength":"note","title":"“At any time” or “sole discretion”","explanation":"Words like “at any time” or “sole discretion” do not by themselves break the ESA when the contract, read as a whole, shows an intent to give the ESA minimums, as the Court of Appeal decided in 2026.","found":"at any time","rule":"employment/clauses/at-any-time-wording"},{"id":"signed_after_start","strength":"note","title":"Signed after you started","explanation":"Signing after you started does not matter if it only wrote down terms agreed before you began, or if you got something new for signing.","rule":"employment/clauses/signed-after-start"}],"strong":1,"possible":1,"consequence":"If any part of the termination provisions falls short of the ESA, all of them fail, a severability clause cannot save them, and the common-law range applies instead. If they all meet the ESA, you are limited to what they give, which is at least the ESA minimum.","notChecked":["Termination wording elsewhere in the contract, such as probation, a cause definition or bonus and benefit plans. All termination provisions are read together.","The rest of the contract, which courts read as a whole.","What was agreed before you started, and whether the terms changed later."],"signedOn":null},"summary":"The check found 1 strong sign and 1 possible sign that the clause falls short of the ESA. If it fails, the common-law range applies instead of the ESA minimum. Whether it holds is a legal judgment, so have a lawyer look at it.","steps":[{"label":"Benefits during the notice period","value":"Strong sign of a defect","detail":"The clause ends your benefits at termination, or says its payments are all you get, without keeping benefit contributions going through the ESA notice period, and the Court of Appeal holds that a clause like this contracts out of the ESA and fails. Found: “payments and notice provided for in this paragraph”.","cites":[{"sourceId":"on/esa-2000/s-60","label":"Employment Standards Act, 2000, s. 60(1)(c)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-61","label":"Employment Standards Act, 2000, s. 61(1)(b)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2017-onca-158","label":"Wood v. Fred Deeley Imports Ltd., 2017 ONCA 158, paras. 53-57","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0158.htm"},{"sourceId":"case/2019-onca-965","label":"Cormier v. 1772887 Ontario Limited (St. Joseph Communications), 2019 ONCA 965, paras. 16-17","url":"https://www.ontariocourts.ca/decisions/2019/2019ONCA0965.htm"}]},{"label":"Severance pay","value":"Possible defect","detail":"The clause either folds notice and severance pay into one amount, which can let the employer pay less than the separate ESA severance pay, or says its payments are all you get without mentioning severance pay, and the Court of Appeal held such a clause unenforceable where severance may be owed. Found: “inclusive of your entitlements to notice, pay in lieu of notice and severance”.","cites":[{"sourceId":"on/esa-2000/s-64","label":"Employment Standards Act, 2000, s. 64(1)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"on/esa-2000/s-65","label":"Employment Standards Act, 2000, s. 65(1), (7)","url":"https://www.ontario.ca/laws/statute/00e41"},{"sourceId":"case/2017-onca-158","label":"Wood v. Fred Deeley Imports Ltd., 2017 ONCA 158, paras. 62-69","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0158.htm"}]},{"label":"“At any time” or “sole discretion”","value":"Note","detail":"Words like “at any time” or “sole discretion” do not by themselves break the ESA when the contract, read as a whole, shows an intent to give the ESA minimums, as the Court of Appeal decided in 2026. Found: “at any time”.","cites":[{"sourceId":"case/2026-onca-568","label":"Baker v. Van Dolder's Home Team Inc., 2026 ONCA 568, paras. 47, 53, 61-62","url":"https://canlii.ca/t/kmgml"},{"sourceId":"case/2024-onsc-1029","label":"Dufault v. The Corporation of the Township of Ignace, 2024 ONSC 1029, para. 46","url":"https://canlii.ca/t/k46k4"},{"sourceId":"case/2024-onca-915","label":"Dufault v. Ignace (Township), 2024 ONCA 915, para. 25","url":"https://canlii.ca/t/k8g1s"}]},{"label":"Signed after you started","value":"Note","detail":"Signing after you started does not matter if it only wrote down terms agreed before you began, or if you got something new for signing.","cites":[{"sourceId":"case/2017-onca-158","label":"Wood v. Fred Deeley Imports Ltd., 2017 ONCA 158, paras. 12-13","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0158.htm"},{"sourceId":"case/2024-onca-437","label":"Giacomodonato v. PearTree Securities Inc., 2024 ONCA 437, paras. 4-5","url":"https://canlii.ca/t/k509k"}]},{"label":"If the clause fails","value":"Common-law range","detail":"If any part of the termination provisions falls short of the ESA, all of them fail, a severability clause cannot save them, and the common-law range applies instead. If they all meet the ESA, you are limited to what they give, which is at least the ESA minimum.","cites":[{"sourceId":"case/2020-onca-391","label":"Waksdale v. Swegon North America Inc., 2020 ONCA 391, paras. 10, 14","url":"https://www.ontariocourts.ca/decisions/2020/2020ONCA0391.htm"},{"sourceId":"case/2017-onca-158","label":"Wood v. Fred Deeley Imports Ltd., 2017 ONCA 158, para. 16","url":"https://www.ontariocourts.ca/decisions/2017/2017ONCA0158.htm"},{"sourceId":"case/1992-scc-machtinger","label":"Machtinger v. HOJ Industries Ltd., [1992] 1 SCR 986, p. 1004","url":"https://canlii.ca/t/1fsd2"},{"sourceId":"case/2026-onca-568","label":"Baker v. Van Dolder's Home Team Inc., 2026 ONCA 568, para. 84","url":"https://canlii.ca/t/kmgml"}]}],"boundary":{"kind":"needs_lawyer","reason":"Whether a clause holds is a legal judgment.","actions":[{"id":"book_consultation","label":"Book a consultation","href":"/book"},{"id":"handoff","label":"Have Mithril Law take it on","sku":"employment.representation"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"employment/clauses/cause-provision","title":"Clause check: firing for cause","status":"unverified"},{"id":"employment/clauses/benefits-excluded","title":"Clause check: benefits during the notice period","status":"unverified"},{"id":"employment/clauses/base-salary-only","title":"Clause check: base salary only","status":"unverified"},{"id":"employment/clauses/severance-left-out","title":"Clause check: severance pay","status":"unverified"},{"id":"employment/clauses/notice-below-esa","title":"Clause check: notice shorter than the ESA","status":"unverified"},{"id":"employment/clauses/at-any-time-wording","title":"Clause check: “at any time”, “sole discretion”, “for any reason”","status":"unverified"},{"id":"employment/clauses/signed-after-start","title":"Clause check: signed after starting work","status":"unverified"},{"id":"employment/clauses/consequence","title":"Clause check: what follows","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"employment.termination_clause_check","version":1,"kind":"check","audience":["person","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/general.limitation_period/runs":{"post":{"operationId":"run_general_limitation_period","tags":["general"],"summary":"How long you have to sue in Ontario","description":"Use this when someone may take a civil claim to an Ontario court (unpaid money, damage, injury, a dismissal lawsuit) and asks how long they have. Ontario only: the Limitations Act, 2002. Do not use it for criminal charges, or for tribunal applications such as the Landlord and Tenant Board, which have their own time limits. Next: the tool for the claim itself; handoff_create when the deadline is close.\n\nThe Limitations Act, 2002 deadlines for a court claim: two years from discovery and 15 years from the day it happened, with the common exceptions flagged for a lawyer.\n\nCall this for any civil claim someone might take to an Ontario court: unpaid money, damage, injury, a dismissal lawsuit. Ask for the day it happened and, if different, the day they found out. Then ask whether any of the listed situations fit; if one does, the answer hands to a lawyer instead of computing it. It does not cover criminal charges, or tribunal applications such as the Landlord and Tenant Board, which have their own time limits.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `general/limitations/basic-period` (unverified), `general/limitations/ultimate-period` (unverified), `general/limitations/exceptions` (unverified). Availability: unverified.\nMCP tool: `general_limitation_period`. Markdown: https://mithril.law/help/limitation-period.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"happenedOn":{"title":"The day it happened","description":"The day of the act or omission the claim is about: the missed payment, the accident, the work done badly.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"discoveredOn":{"title":"The day you found out","description":"The day you first knew there was a loss, that someone caused it, who, and that going to court was a sensible way to fix it. Leave blank if it is the same day it happened.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"situations":{"default":[],"title":"Anything unusual?","description":"Tick any that fit. Each one can change or remove the time limit, so it is flagged for a lawyer rather than calculated.","type":"array","items":{"anyOf":[{"type":"string","const":"minor","title":"The person with the claim was under 18"},{"type":"string","const":"incapable","title":"The person with the claim could not start a case because of their physical, mental or psychological condition"},{"type":"string","const":"sexual_misconduct_or_assault","title":"The claim is based on a sexual assault, or on other sexual misconduct or an assault in the situations the Act lists (for example, against a child, or by an intimate partner)"},{"type":"string","const":"acknowledged","title":"The other side admitted the debt in writing, or paid part of it"},{"type":"string","const":"mediation","title":"You both agreed to have an independent third party, like a mediator, help resolve it"},{"type":"string","const":"demand_obligation","title":"The money is owed on demand (for example, a demand loan)"},{"type":"string","const":"continuing_or_series","title":"The wrong is still going on, or is a series of acts about the same obligation"},{"type":"string","const":"concealed_or_misled","title":"The other side hid the loss from you, or misled you about whether to sue"},{"type":"string","const":"enforce_court_order","title":"You want to enforce a court order you already have"},{"type":"string","const":"tribunal_or_other_law","title":"It will go to a tribunal (like the Landlord and Tenant Board), not a court, or another law sets its own deadline"},{"type":"string","const":"agreement_to_extend","title":"You and the other side signed an agreement to extend or suspend the time limit"},{"type":"string","const":"environmental","title":"It is an environmental claim (a contaminant released into the natural environment)"}]}},"today":{"title":"Today’s date","description":"Leave blank to use today’s date in Ontario.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"title":"Limitation period"}}},"examples":{"example1":{"summary":"An invoice went unpaid on March 15, 2025","value":{"input":{"happenedOn":"2025-03-15","situations":[]}}},"example2":{"summary":"Damage found a year after the work was done","value":{"input":{"happenedOn":"2024-05-01","discoveredOn":"2025-05-01","situations":[]}}},"example3":{"summary":"The other side admitted the debt in writing","value":{"input":{"happenedOn":"2023-10-01","situations":["acknowledged"]}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"basic":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"},"basis":{"type":"string","enum":["discovery_given","presumed_from_occurrence"]}},"required":["from","lastDay","daysLeft","expired","basis"]},{"type":"null"}]},"basicIfPresumed":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"}},"required":["from","lastDay","daysLeft","expired"]},{"type":"null"}]},"ultimate":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"}},"required":["from","lastDay","daysLeft","expired"]},{"type":"null"}]},"deadline":{"type":["string","null"]},"safestDeadline":{"type":["string","null"]},"daysLeft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["open","close","expired","check_with_lawyer"]},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","label","text","cites"]}}},"required":["basic","basicIfPresumed","ultimate","deadline","safestDeadline","daysLeft","status","flags"],"title":"Limitation dates"},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"general.limitation_period","version":1,"title":"How long you have to sue in Ontario"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"basic":{"from":"2025-03-15","lastDay":"2027-03-15","daysLeft":173,"expired":false,"basis":"presumed_from_occurrence"},"basicIfPresumed":null,"ultimate":{"from":"2025-03-15","lastDay":"2040-03-15","daysLeft":4922,"expired":false},"deadline":"2027-03-15","safestDeadline":"2027-03-15","daysLeft":173,"status":"open","flags":[]},"summary":"If no exception applies, the last day to start a court claim is March 15, 2027.","steps":[{"label":"Two years from discovery","value":"March 15, 2027","detail":"Two years from the day it happened (March 15, 2025), because the law presumes you knew that day unless you can prove otherwise.","cites":[{"sourceId":"on/limitations-act-2002/s-4","label":"Limitations Act, 2002, s. 4","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-5","label":"Limitations Act, 2002, s. 5","url":"https://www.ontario.ca/laws/statute/02l24"}]},{"label":"Fifteen years from the day it happened","value":"March 15, 2040","detail":"No claim can start after this, even if you found out late.","cites":[{"sourceId":"on/limitations-act-2002/s-15","label":"Limitations Act, 2002, s. 15(2)","url":"https://www.ontario.ca/laws/statute/02l24"}]}],"boundary":{"kind":"automated","actions":[{"id":"book_consultation","label":"Or have me look at the claim","sku":"legal.consultation"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"general/limitations/basic-period","title":"Limitations Act: the basic two-year period from discovery","status":"unverified"},{"id":"general/limitations/ultimate-period","title":"Limitations Act: the 15-year ultimate period","status":"unverified"},{"id":"general/limitations/exceptions","title":"Limitations Act: exceptions are flagged, and when a lawyer takes over","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"general.limitation_period","version":1,"kind":"calculate","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/general.limitation_period/run":{"get":{"operationId":"get_general_limitation_period","tags":["general"],"summary":"How long you have to sue in Ontario (from a URL)","description":"Use this when someone may take a civil claim to an Ontario court (unpaid money, damage, injury, a dismissal lawsuit) and asks how long they have. Ontario only: the Limitations Act, 2002. Do not use it for criminal charges, or for tribunal applications such as the Landlord and Tenant Board, which have their own time limits. Next: the tool for the claim itself; handoff_create when the deadline is close.\n\nThe Limitations Act, 2002 deadlines for a court claim: two years from discovery and 15 years from the day it happened, with the common exceptions flagged for a lawyer.\n\nCall this for any civil claim someone might take to an Ontario court: unpaid money, damage, injury, a dismissal lawsuit. Ask for the day it happened and, if different, the day they found out. Then ask whether any of the listed situations fit; if one does, the answer hands to a lawyer instead of computing it. It does not cover criminal charges, or tribunal applications such as the Landlord and Tenant Board, which have their own time limits.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `general/limitations/basic-period` (unverified), `general/limitations/ultimate-period` (unverified), `general/limitations/exceptions` (unverified). Availability: unverified.\nMCP tool: `general_limitation_period`. Markdown: https://mithril.law/help/limitation-period.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/general.limitation_period/run?happenedOn=2025-03-15","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"happenedOn","in":"query","required":false,"description":"The day of the act or omission the claim is about: the missed payment, the accident, the work done badly.","schema":{"title":"The day it happened","description":"The day of the act or omission the claim is about: the missed payment, the accident, the work done badly.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"discoveredOn","in":"query","required":false,"description":"The day you first knew there was a loss, that someone caused it, who, and that going to court was a sensible way to fix it. Leave blank if it is the same day it happened.","schema":{"title":"The day you found out","description":"The day you first knew there was a loss, that someone caused it, who, and that going to court was a sensible way to fix it. Leave blank if it is the same day it happened.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"situations","in":"query","required":false,"description":"Tick any that fit. Each one can change or remove the time limit, so it is flagged for a lawyer rather than calculated.","schema":{"default":[],"title":"Anything unusual?","description":"Tick any that fit. Each one can change or remove the time limit, so it is flagged for a lawyer rather than calculated.","type":"array","items":{"anyOf":[{"type":"string","const":"minor","title":"The person with the claim was under 18"},{"type":"string","const":"incapable","title":"The person with the claim could not start a case because of their physical, mental or psychological condition"},{"type":"string","const":"sexual_misconduct_or_assault","title":"The claim is based on a sexual assault, or on other sexual misconduct or an assault in the situations the Act lists (for example, against a child, or by an intimate partner)"},{"type":"string","const":"acknowledged","title":"The other side admitted the debt in writing, or paid part of it"},{"type":"string","const":"mediation","title":"You both agreed to have an independent third party, like a mediator, help resolve it"},{"type":"string","const":"demand_obligation","title":"The money is owed on demand (for example, a demand loan)"},{"type":"string","const":"continuing_or_series","title":"The wrong is still going on, or is a series of acts about the same obligation"},{"type":"string","const":"concealed_or_misled","title":"The other side hid the loss from you, or misled you about whether to sue"},{"type":"string","const":"enforce_court_order","title":"You want to enforce a court order you already have"},{"type":"string","const":"tribunal_or_other_law","title":"It will go to a tribunal (like the Landlord and Tenant Board), not a court, or another law sets its own deadline"},{"type":"string","const":"agreement_to_extend","title":"You and the other side signed an agreement to extend or suspend the time limit"},{"type":"string","const":"environmental","title":"It is an environmental claim (a contaminant released into the natural environment)"}]}},"style":"form","explode":true},{"name":"today","in":"query","required":false,"description":"Leave blank to use today’s date in Ontario.","schema":{"title":"Today’s date","description":"Leave blank to use today’s date in Ontario.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"basic":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"},"basis":{"type":"string","enum":["discovery_given","presumed_from_occurrence"]}},"required":["from","lastDay","daysLeft","expired","basis"]},{"type":"null"}]},"basicIfPresumed":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"}},"required":["from","lastDay","daysLeft","expired"]},{"type":"null"}]},"ultimate":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"}},"required":["from","lastDay","daysLeft","expired"]},{"type":"null"}]},"deadline":{"type":["string","null"]},"safestDeadline":{"type":["string","null"]},"daysLeft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["open","close","expired","check_with_lawyer"]},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","label","text","cites"]}}},"required":["basic","basicIfPresumed","ultimate","deadline","safestDeadline","daysLeft","status","flags"],"title":"Limitation dates"},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"general.limitation_period","version":1,"title":"How long you have to sue in Ontario"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"basic":{"from":"2025-03-15","lastDay":"2027-03-15","daysLeft":173,"expired":false,"basis":"presumed_from_occurrence"},"basicIfPresumed":null,"ultimate":{"from":"2025-03-15","lastDay":"2040-03-15","daysLeft":4922,"expired":false},"deadline":"2027-03-15","safestDeadline":"2027-03-15","daysLeft":173,"status":"open","flags":[]},"summary":"If no exception applies, the last day to start a court claim is March 15, 2027.","steps":[{"label":"Two years from discovery","value":"March 15, 2027","detail":"Two years from the day it happened (March 15, 2025), because the law presumes you knew that day unless you can prove otherwise.","cites":[{"sourceId":"on/limitations-act-2002/s-4","label":"Limitations Act, 2002, s. 4","url":"https://www.ontario.ca/laws/statute/02l24"},{"sourceId":"on/limitations-act-2002/s-5","label":"Limitations Act, 2002, s. 5","url":"https://www.ontario.ca/laws/statute/02l24"}]},{"label":"Fifteen years from the day it happened","value":"March 15, 2040","detail":"No claim can start after this, even if you found out late.","cites":[{"sourceId":"on/limitations-act-2002/s-15","label":"Limitations Act, 2002, s. 15(2)","url":"https://www.ontario.ca/laws/statute/02l24"}]}],"boundary":{"kind":"automated","actions":[{"id":"book_consultation","label":"Or have me look at the claim","sku":"legal.consultation"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"general/limitations/basic-period","title":"Limitations Act: the basic two-year period from discovery","status":"unverified"},{"id":"general/limitations/ultimate-period","title":"Limitations Act: the 15-year ultimate period","status":"unverified"},{"id":"general/limitations/exceptions","title":"Limitations Act: exceptions are flagged, and when a lawyer takes over","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"general.limitation_period","version":1,"kind":"calculate","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/general.triage/runs":{"post":{"operationId":"run_general_triage","tags":["general"],"summary":"Where to start with a legal problem in Ontario","description":"Use this when you do not know which tool fits an Ontario legal problem. Ontario only. Do not use it when a specific tool clearly fits, or to collect names or the story (it needs neither). Next: run the operations it lists, in order; when the boundary is needs_lawyer, give the person the first action before anything else.\n\nThe front door: from what happened and a few dates, which Mithril operations fit, how urgent it is, and the time limit to sue where one may apply.\n\nStart here when you do not know which operation fits. Ask the person what happened (the category), whether anyone is in custody, and any dates they have: the next court or tribunal date, the day it happened, the day they found out. Do not ask for names or the story: the answer does not need them. Then run the operations listed, in order. If the boundary is needs_lawyer, give the person the first action (a call or a consultation) before anything else. Limitation dates are shown only where the Limitations Act may apply and only when a date is given.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `general/triage/routing` (unverified), `general/limitations/basic-period` (unverified), `general/limitations/ultimate-period` (unverified), `general/limitations/exceptions` (unverified). Availability: unverified.\nMCP tool: `general_triage`. Markdown: https://mithril.law/help/triage.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"category":{"anyOf":[{"type":"string","const":"arrested_or_charged","title":"Someone was arrested or charged with a crime"},{"type":"string","const":"job_ended","title":"My job ended: fired, laid off, or pushed out"},{"type":"string","const":"owed_money","title":"Someone owes me money: an unpaid invoice, a loan, a deposit"},{"type":"string","const":"sued_for_money","title":"I have been sued for money"},{"type":"string","const":"injury_or_damage","title":"I was hurt, or my property was damaged, because of someone else"},{"type":"string","const":"tenant_problem","title":"I rent my home and have a problem with my landlord"},{"type":"string","const":"landlord_problem","title":"I am a landlord with a problem with a tenant"},{"type":"string","const":"starting_business","title":"I am starting or running a company"},{"type":"string","const":"other","title":"Something else"}],"title":"What happened","description":"Pick the closest."},"area":{"default":"unknown","title":"Area of law, if you know it","description":"Leave as “Not sure” if you don’t know.","anyOf":[{"type":"string","const":"criminal","title":"Criminal"},{"type":"string","const":"employment","title":"Employment"},{"type":"string","const":"small-claims","title":"Small claims (money up to the Small Claims Court limit)"},{"type":"string","const":"ltb","title":"Landlord and Tenant Board"},{"type":"string","const":"corporate","title":"Starting or running a company"},{"type":"string","const":"unknown","title":"Not sure"}]},"inCustody":{"default":false,"title":"Someone is in custody right now","description":"Held by the police, or in jail or a detention centre, today.","type":"boolean"},"nextDate":{"title":"Next court or tribunal date","description":"If a hearing or court date is already set.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"happenedOn":{"title":"The day it happened","description":"Used to show the time limit to sue, where one may apply.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"discoveredOn":{"title":"The day you found out","description":"If you found out later than the day it happened.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"situations":{"default":[],"title":"Anything unusual?","description":"Tick any that fit. Each one can change or remove the time limit, so it is flagged for a lawyer rather than calculated.","type":"array","items":{"anyOf":[{"type":"string","const":"minor","title":"The person with the claim was under 18"},{"type":"string","const":"incapable","title":"The person with the claim could not start a case because of their physical, mental or psychological condition"},{"type":"string","const":"sexual_misconduct_or_assault","title":"The claim is based on a sexual assault, or on other sexual misconduct or an assault in the situations the Act lists (for example, against a child, or by an intimate partner)"},{"type":"string","const":"acknowledged","title":"The other side admitted the debt in writing, or paid part of it"},{"type":"string","const":"mediation","title":"You both agreed to have an independent third party, like a mediator, help resolve it"},{"type":"string","const":"demand_obligation","title":"The money is owed on demand (for example, a demand loan)"},{"type":"string","const":"continuing_or_series","title":"The wrong is still going on, or is a series of acts about the same obligation"},{"type":"string","const":"concealed_or_misled","title":"The other side hid the loss from you, or misled you about whether to sue"},{"type":"string","const":"enforce_court_order","title":"You want to enforce a court order you already have"},{"type":"string","const":"tribunal_or_other_law","title":"It will go to a tribunal (like the Landlord and Tenant Board), not a court, or another law sets its own deadline"},{"type":"string","const":"agreement_to_extend","title":"You and the other side signed an agreement to extend or suspend the time limit"},{"type":"string","const":"environmental","title":"It is an environmental claim (a contaminant released into the natural environment)"}]}},"today":{"title":"Today’s date","description":"Leave blank to use today’s date in Ontario.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["category"],"title":"Where to start"}}},"examples":{"example1":{"summary":"My brother was arrested last night","value":{"input":{"category":"arrested_or_charged","area":"unknown","inCustody":true,"situations":[]}}},"example2":{"summary":"A client has not paid an invoice due in January","value":{"input":{"category":"owed_money","area":"unknown","inCustody":false,"happenedOn":"2026-01-31","situations":[]}}},"example3":{"summary":"I was let go last month","value":{"input":{"category":"job_ended","area":"unknown","inCustody":false,"happenedOn":"2026-08-15","situations":[]}}},"example4":{"summary":"I got an eviction notice","value":{"input":{"category":"tenant_problem","area":"unknown","inCustody":false,"situations":[]}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"category":{"type":"string"},"categoryLabel":{"type":"string"},"areas":{"type":"array","items":{"type":"string"}},"urgency":{"anyOf":[{"type":"string","const":"immediate","title":"Immediate"},{"type":"string","const":"soon","title":"Soon"},{"type":"string","const":"standard","title":"Standard"}]},"reasons":{"type":"array","items":{"type":"string"}},"operations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"kind":{"type":"string"},"area":{"type":"string"},"price":{"type":"string"},"why":{"type":"string"}},"required":["id","title","summary","kind","area","price","why"]},"title":"Operations to run next","description":"In order. Each can be run at /api/v1/operations/{id}/runs or as an MCP tool."},"limitation":{"anyOf":[{"type":"object","properties":{"basic":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"},"basis":{"type":"string","enum":["discovery_given","presumed_from_occurrence"]}},"required":["from","lastDay","daysLeft","expired","basis"]},{"type":"null"}]},"basicIfPresumed":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"}},"required":["from","lastDay","daysLeft","expired"]},{"type":"null"}]},"ultimate":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"}},"required":["from","lastDay","daysLeft","expired"]},{"type":"null"}]},"deadline":{"type":["string","null"]},"safestDeadline":{"type":["string","null"]},"daysLeft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["open","close","expired","check_with_lawyer"]},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","label","text","cites"]}}},"required":["basic","basicIfPresumed","ultimate","deadline","safestDeadline","daysLeft","status","flags"],"title":"Limitation dates"},{"type":"null"}]},"limitationNote":{"type":["string","null"]},"notes":{"type":"array","items":{"type":"string"}},"more":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"required":["label","href"]}}},"required":["category","categoryLabel","areas","urgency","reasons","operations","limitation","limitationNote","notes","more"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"general.triage","version":1,"title":"Where to start with a legal problem in Ontario"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"category":"arrested_or_charged","categoryLabel":"Someone was arrested or charged with a crime","areas":["criminal"],"urgency":"immediate","reasons":["Someone is in custody now."],"operations":[{"id":"criminal.intake_triage","title":"How urgent is a criminal matter","summary":"From custody and court dates only: how fast to reach me, and whether to call now or book a consultation. No legal conclusions.","kind":"check","area":"criminal","price":"Free","why":"Fits what happened."},{"id":"criminal.what_happens_next","title":"Someone was arrested or charged: what happens next","summary":"For an accused person or their family: what happens next in order, your rights at this stage, what to do and not do, and how to get a lawyer, every line cited.","kind":"guide","area":"criminal","price":"Free","why":"Fits what happened."},{"id":"criminal.legal_aid_path","title":"Getting a legal aid lawyer for a criminal charge","summary":"How to apply to Legal Aid Ontario for a certificate, what a certificate is, and what to send me once you have one. Legal Aid certificates accepted for criminal defence matters.","kind":"guide","area":"criminal","price":"Free","why":"Fits what happened."}],"limitation":null,"limitationNote":null,"notes":[],"more":[]},"summary":"Someone was arrested or charged with a crime. Urgency: immediate. Someone is in custody now. Start with: How urgent is a criminal matter.","steps":[{"label":"What happened","value":"Someone was arrested or charged with a crime"},{"label":"Urgency","value":"Immediate","detail":"Someone is in custody now."},{"label":"Next 1","value":"How urgent is a criminal matter","detail":"From custody and court dates only: how fast to reach me, and whether to call now or book a consultation. No legal conclusions."},{"label":"Next 2","value":"Someone was arrested or charged: what happens next","detail":"For an accused person or their family: what happens next in order, your rights at this stage, what to do and not do, and how to get a lawyer, every line cited."},{"label":"Next 3","value":"Getting a legal aid lawyer for a criminal charge","detail":"How to apply to Legal Aid Ontario for a certificate, what a certificate is, and what to send me once you have one. Legal Aid certificates accepted for criminal defence matters."}],"boundary":{"kind":"needs_lawyer","reason":"Someone is in custody now.","actions":[{"id":"book_call","label":"Call me now","sku":"legal.call"},{"id":"book_consultation","label":"Book a consultation","sku":"legal.consultation"},{"id":"run_operation","label":"How urgent is a criminal matter","operation":"criminal.intake_triage"},{"id":"run_operation","label":"Someone was arrested or charged: what happens next","operation":"criminal.what_happens_next"},{"id":"run_operation","label":"Getting a legal aid lawyer for a criminal charge","operation":"criminal.legal_aid_path"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"general/triage/routing","title":"The front door: where a problem goes, and how urgent it is","status":"unverified"},{"id":"general/limitations/basic-period","title":"Limitations Act: the basic two-year period from discovery","status":"unverified"},{"id":"general/limitations/ultimate-period","title":"Limitations Act: the 15-year ultimate period","status":"unverified"},{"id":"general/limitations/exceptions","title":"Limitations Act: exceptions are flagged, and when a lawyer takes over","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"general.triage","version":1,"kind":"check","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/general.triage/run":{"get":{"operationId":"get_general_triage","tags":["general"],"summary":"Where to start with a legal problem in Ontario (from a URL)","description":"Use this when you do not know which tool fits an Ontario legal problem. Ontario only. Do not use it when a specific tool clearly fits, or to collect names or the story (it needs neither). Next: run the operations it lists, in order; when the boundary is needs_lawyer, give the person the first action before anything else.\n\nThe front door: from what happened and a few dates, which Mithril operations fit, how urgent it is, and the time limit to sue where one may apply.\n\nStart here when you do not know which operation fits. Ask the person what happened (the category), whether anyone is in custody, and any dates they have: the next court or tribunal date, the day it happened, the day they found out. Do not ask for names or the story: the answer does not need them. Then run the operations listed, in order. If the boundary is needs_lawyer, give the person the first action (a call or a consultation) before anything else. Limitation dates are shown only where the Limitations Act may apply and only when a date is given.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `general/triage/routing` (unverified), `general/limitations/basic-period` (unverified), `general/limitations/ultimate-period` (unverified), `general/limitations/exceptions` (unverified). Availability: unverified.\nMCP tool: `general_triage`. Markdown: https://mithril.law/help/triage.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/general.triage/run?category=arrested_or_charged&area=unknown&inCustody=true","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"category","in":"query","required":true,"description":"Pick the closest.","schema":{"anyOf":[{"type":"string","const":"arrested_or_charged","title":"Someone was arrested or charged with a crime"},{"type":"string","const":"job_ended","title":"My job ended: fired, laid off, or pushed out"},{"type":"string","const":"owed_money","title":"Someone owes me money: an unpaid invoice, a loan, a deposit"},{"type":"string","const":"sued_for_money","title":"I have been sued for money"},{"type":"string","const":"injury_or_damage","title":"I was hurt, or my property was damaged, because of someone else"},{"type":"string","const":"tenant_problem","title":"I rent my home and have a problem with my landlord"},{"type":"string","const":"landlord_problem","title":"I am a landlord with a problem with a tenant"},{"type":"string","const":"starting_business","title":"I am starting or running a company"},{"type":"string","const":"other","title":"Something else"}],"title":"What happened","description":"Pick the closest."}},{"name":"area","in":"query","required":false,"description":"Leave as “Not sure” if you don’t know.","schema":{"default":"unknown","title":"Area of law, if you know it","description":"Leave as “Not sure” if you don’t know.","anyOf":[{"type":"string","const":"criminal","title":"Criminal"},{"type":"string","const":"employment","title":"Employment"},{"type":"string","const":"small-claims","title":"Small claims (money up to the Small Claims Court limit)"},{"type":"string","const":"ltb","title":"Landlord and Tenant Board"},{"type":"string","const":"corporate","title":"Starting or running a company"},{"type":"string","const":"unknown","title":"Not sure"}]}},{"name":"inCustody","in":"query","required":false,"description":"Held by the police, or in jail or a detention centre, today.","schema":{"default":false,"title":"Someone is in custody right now","description":"Held by the police, or in jail or a detention centre, today.","type":"boolean"}},{"name":"nextDate","in":"query","required":false,"description":"If a hearing or court date is already set.","schema":{"title":"Next court or tribunal date","description":"If a hearing or court date is already set.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"happenedOn","in":"query","required":false,"description":"Used to show the time limit to sue, where one may apply.","schema":{"title":"The day it happened","description":"Used to show the time limit to sue, where one may apply.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"discoveredOn","in":"query","required":false,"description":"If you found out later than the day it happened.","schema":{"title":"The day you found out","description":"If you found out later than the day it happened.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"situations","in":"query","required":false,"description":"Tick any that fit. Each one can change or remove the time limit, so it is flagged for a lawyer rather than calculated.","schema":{"default":[],"title":"Anything unusual?","description":"Tick any that fit. Each one can change or remove the time limit, so it is flagged for a lawyer rather than calculated.","type":"array","items":{"anyOf":[{"type":"string","const":"minor","title":"The person with the claim was under 18"},{"type":"string","const":"incapable","title":"The person with the claim could not start a case because of their physical, mental or psychological condition"},{"type":"string","const":"sexual_misconduct_or_assault","title":"The claim is based on a sexual assault, or on other sexual misconduct or an assault in the situations the Act lists (for example, against a child, or by an intimate partner)"},{"type":"string","const":"acknowledged","title":"The other side admitted the debt in writing, or paid part of it"},{"type":"string","const":"mediation","title":"You both agreed to have an independent third party, like a mediator, help resolve it"},{"type":"string","const":"demand_obligation","title":"The money is owed on demand (for example, a demand loan)"},{"type":"string","const":"continuing_or_series","title":"The wrong is still going on, or is a series of acts about the same obligation"},{"type":"string","const":"concealed_or_misled","title":"The other side hid the loss from you, or misled you about whether to sue"},{"type":"string","const":"enforce_court_order","title":"You want to enforce a court order you already have"},{"type":"string","const":"tribunal_or_other_law","title":"It will go to a tribunal (like the Landlord and Tenant Board), not a court, or another law sets its own deadline"},{"type":"string","const":"agreement_to_extend","title":"You and the other side signed an agreement to extend or suspend the time limit"},{"type":"string","const":"environmental","title":"It is an environmental claim (a contaminant released into the natural environment)"}]}},"style":"form","explode":true},{"name":"today","in":"query","required":false,"description":"Leave blank to use today’s date in Ontario.","schema":{"title":"Today’s date","description":"Leave blank to use today’s date in Ontario.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"category":{"type":"string"},"categoryLabel":{"type":"string"},"areas":{"type":"array","items":{"type":"string"}},"urgency":{"anyOf":[{"type":"string","const":"immediate","title":"Immediate"},{"type":"string","const":"soon","title":"Soon"},{"type":"string","const":"standard","title":"Standard"}]},"reasons":{"type":"array","items":{"type":"string"}},"operations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"kind":{"type":"string"},"area":{"type":"string"},"price":{"type":"string"},"why":{"type":"string"}},"required":["id","title","summary","kind","area","price","why"]},"title":"Operations to run next","description":"In order. Each can be run at /api/v1/operations/{id}/runs or as an MCP tool."},"limitation":{"anyOf":[{"type":"object","properties":{"basic":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"},"basis":{"type":"string","enum":["discovery_given","presumed_from_occurrence"]}},"required":["from","lastDay","daysLeft","expired","basis"]},{"type":"null"}]},"basicIfPresumed":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"}},"required":["from","lastDay","daysLeft","expired"]},{"type":"null"}]},"ultimate":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"lastDay":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"boolean"}},"required":["from","lastDay","daysLeft","expired"]},{"type":"null"}]},"deadline":{"type":["string","null"]},"safestDeadline":{"type":["string","null"]},"daysLeft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["open","close","expired","check_with_lawyer"]},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"text":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}},"required":["sourceId","label","url"]}}},"required":["id","label","text","cites"]}}},"required":["basic","basicIfPresumed","ultimate","deadline","safestDeadline","daysLeft","status","flags"],"title":"Limitation dates"},{"type":"null"}]},"limitationNote":{"type":["string","null"]},"notes":{"type":"array","items":{"type":"string"}},"more":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"required":["label","href"]}}},"required":["category","categoryLabel","areas","urgency","reasons","operations","limitation","limitationNote","notes","more"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"general.triage","version":1,"title":"Where to start with a legal problem in Ontario"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"category":"arrested_or_charged","categoryLabel":"Someone was arrested or charged with a crime","areas":["criminal"],"urgency":"immediate","reasons":["Someone is in custody now."],"operations":[{"id":"criminal.intake_triage","title":"How urgent is a criminal matter","summary":"From custody and court dates only: how fast to reach me, and whether to call now or book a consultation. No legal conclusions.","kind":"check","area":"criminal","price":"Free","why":"Fits what happened."},{"id":"criminal.what_happens_next","title":"Someone was arrested or charged: what happens next","summary":"For an accused person or their family: what happens next in order, your rights at this stage, what to do and not do, and how to get a lawyer, every line cited.","kind":"guide","area":"criminal","price":"Free","why":"Fits what happened."},{"id":"criminal.legal_aid_path","title":"Getting a legal aid lawyer for a criminal charge","summary":"How to apply to Legal Aid Ontario for a certificate, what a certificate is, and what to send me once you have one. Legal Aid certificates accepted for criminal defence matters.","kind":"guide","area":"criminal","price":"Free","why":"Fits what happened."}],"limitation":null,"limitationNote":null,"notes":[],"more":[]},"summary":"Someone was arrested or charged with a crime. Urgency: immediate. Someone is in custody now. Start with: How urgent is a criminal matter.","steps":[{"label":"What happened","value":"Someone was arrested or charged with a crime"},{"label":"Urgency","value":"Immediate","detail":"Someone is in custody now."},{"label":"Next 1","value":"How urgent is a criminal matter","detail":"From custody and court dates only: how fast to reach me, and whether to call now or book a consultation. No legal conclusions."},{"label":"Next 2","value":"Someone was arrested or charged: what happens next","detail":"For an accused person or their family: what happens next in order, your rights at this stage, what to do and not do, and how to get a lawyer, every line cited."},{"label":"Next 3","value":"Getting a legal aid lawyer for a criminal charge","detail":"How to apply to Legal Aid Ontario for a certificate, what a certificate is, and what to send me once you have one. Legal Aid certificates accepted for criminal defence matters."}],"boundary":{"kind":"needs_lawyer","reason":"Someone is in custody now.","actions":[{"id":"book_call","label":"Call me now","sku":"legal.call"},{"id":"book_consultation","label":"Book a consultation","sku":"legal.consultation"},{"id":"run_operation","label":"How urgent is a criminal matter","operation":"criminal.intake_triage"},{"id":"run_operation","label":"Someone was arrested or charged: what happens next","operation":"criminal.what_happens_next"},{"id":"run_operation","label":"Getting a legal aid lawyer for a criminal charge","operation":"criminal.legal_aid_path"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"general/triage/routing","title":"The front door: where a problem goes, and how urgent it is","status":"unverified"},{"id":"general/limitations/basic-period","title":"Limitations Act: the basic two-year period from discovery","status":"unverified"},{"id":"general/limitations/ultimate-period","title":"Limitations Act: the 15-year ultimate period","status":"unverified"},{"id":"general/limitations/exceptions","title":"Limitations Act: exceptions are flagged, and when a lawyer takes over","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"general.triage","version":1,"kind":"check","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/ltb.l1_prepare/runs":{"post":{"operationId":"run_ltb_l1_prepare","tags":["ltb"],"summary":"Prepare an L1 to evict for non-payment of rent","description":"Use this when an N4's termination date has passed, rent is still owing, and the Ontario landlord wants to apply to end the tenancy and collect the arrears. Ontario residential tenancies only. Do not use it before the N4's termination date, for reasons other than unpaid rent, or to file (the landlord files from their own Tribunals Ontario account). Next: the landlord files the L1; handoff_create for representation at the hearing.\n\nChecks the landlord may file, adds up rent owing to the filing date, NSF charges and the fee, fills the official L1, and explains how to file it.\n\nFor landlords after an N4's termination date has passed. Ask for the N4's delivery method, delivery date and termination date, every rental period with rent owing up to the filing date, any NSF cheques (bank charge and your administration charge), whether you hold a rent deposit, whether the tenant still lives there, and how you will file. The answer says whether you can file and when; the filled L1 and the N4’s Certificate of Service are unlocked with the landlord plan. The landlord files from their own portal account.\n\nPrice: CAD 1 per unit per month, minimum CAD 49, plus HST (sku `ltb.landlord_plan`, Jonathan Kleiman (software and consulting)). Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: `ltb/service/deemed-given` (unverified), `ltb/n4/termination-date` (unverified), `ltb/l1/eligibility` (unverified), `ltb/l1/claim` (unverified), `ltb/l1/tenant-options` (unverified). Availability: unverified.\nMCP tool: `ltb_l1_prepare`. Markdown: https://mithril.law/ltb/l1-prepare.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"landlords":{"minItems":1,"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"person","title":"A person"},"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"First name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Last name"}},"required":["type","firstName","lastName"],"title":"A person"},{"type":"object","properties":{"type":{"type":"string","const":"company","title":"A company"},"companyName":{"type":"string","minLength":1,"maxLength":160,"title":"Company name","description":"The landlord’s legal name."}},"required":["type","companyName"],"title":"A company"}],"title":"Landlord"},"title":"Landlords","description":"The same landlords named on the N4."},"landlordContact":{"type":"object","properties":{"phone":{"type":"string","minLength":7,"maxLength":30,"title":"Landlord’s phone number"},"email":{"title":"Landlord’s email","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"address":{"type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"province":{"default":"ON","title":"Province or territory","description":"Two-letter code, for example ON.","type":"string","enum":["ON","QC","NS","NB","MB","BC","PE","SK","AB","NL","NT","YT","NU"]},"postalCode":{"type":"string","pattern":"^[ABCEGHJ-NPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"],"title":"Landlord’s mailing address"},"communication":{"default":"email","title":"How the LTB should send documents","description":"email: you agree to receive LTB documents by email. mail: by mail.","type":"string","enum":["mail","email"]}},"required":["phone","address"],"title":"Landlord’s contact details"},"tenants":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"First name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Last name"}},"required":["firstName","lastName"],"title":"Tenant"},"title":"Tenants","description":"The same tenants named on the N4, all still in the unit."},"rentalUnit":{"type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"postalCode":{"type":"string","pattern":"^[KLMNP]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"],"title":"Rental unit address"},"tenantMailingAddress":{"title":"Tenants’ mailing address","description":"Only if different from the rental unit.","type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"province":{"default":"ON","title":"Province or territory","description":"Two-letter code, for example ON.","type":"string","enum":["ON","QC","NS","NB","MB","BC","PE","SK","AB","NL","NT","YT","NU"]},"postalCode":{"type":"string","pattern":"^[ABCEGHJ-NPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"]},"rent":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":1000000,"title":"Rent per period","description":"The lawful rent for one rental period, in dollars, including any fixed amount paid to the landlord for parking or other services."},"period":{"default":"monthly","title":"Rental period","description":"How often rent is due.","type":"string","enum":["monthly","weekly","daily","yearly"]}},"required":["amount"],"title":"Rent"},"n4":{"type":"object","properties":{"service":{"type":"object","properties":{"method":{"type":"string","enum":["hand","adult_in_unit","mailbox","under_door","mail","xpresspost","courier","fax","email"],"title":"How it is delivered","description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service"},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"The day it is delivered","description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026."},"emailConsentInWriting":{"default":false,"title":"Written consent to email service","description":"Only for email: the person agreed in writing to receive documents by email.","type":"boolean"}},"required":["method","date"],"title":"The delivery"},"terminationDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Termination date on the N4"}},"required":["service","terminationDate"],"title":"The N4"},"periods":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Period start","description":"The day rent was due, for example September 1, 2026."},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Period end","description":"The last day of the rental period, for example September 30, 2026."},"rentCharged":{"type":"number","minimum":0,"maximum":1000000,"title":"Rent charged","description":"Rent for this period, in dollars."},"rentPaid":{"default":0,"title":"Rent paid","description":"What the tenant paid toward this period’s rent, in dollars.","type":"number","minimum":0,"maximum":1000000}},"required":["from","to","rentCharged"],"title":"Rental period"},"title":"Rent owing by rental period","description":"Every rental period with rent owing, from the N4’s first period up to the filing date."},"nsfCheques":{"default":[],"title":"NSF cheques","description":"Cheques from the tenant returned NSF and not yet repaid.","maxItems":20,"type":"array","items":{"type":"object","properties":{"chequeAmount":{"type":"number","minimum":0,"maximum":1000000,"title":"Cheque amount","description":"The amount of the cheque that bounced, in dollars. It is not part of the claim."},"chequeDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Date on the cheque"},"chargeDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Date the bank charged you"},"bankCharge":{"type":"number","minimum":0,"maximum":1000,"title":"Bank charge","description":"What your bank charged you for the NSF cheque, in dollars."},"adminCharge":{"default":0,"title":"Your administration charge","description":"Your own charge for handling the NSF cheque, in dollars. The most allowed is CAD 20 per cheque.","type":"number","minimum":0,"maximum":1000}},"required":["chequeAmount","chequeDate","chargeDate","bankCharge"],"title":"NSF cheque"}},"deposit":{"title":"Rent deposit","description":"Only if you hold a rent deposit (last month’s rent).","type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":1000000,"title":"Rent deposit held","description":"In dollars."},"collectedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Date collected"},"interestPaidFrom":{"title":"Last interest paid: from","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"interestPaidTo":{"title":"Last interest paid: to","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["amount","collectedOn"]},"tenantInPossession":{"default":true,"title":"Tenant still living in the unit","description":"The L1 can only be filed while the tenant is in possession.","type":"boolean"},"filingDate":{"title":"Filing date","description":"The day you will file. Leave empty for today.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"filingMethod":{"default":"portal","title":"How you will file","description":"portal: Tribunals Ontario Portal (lower fee). mail_or_courier: to an LTB office. service_ontario: in person at a ServiceOntario Centre that accepts LTB applications.","type":"string","enum":["portal","mail_or_courier","service_ontario"]},"paymentMethod":{"title":"How you will pay (paper filing)","description":"Only for mail, courier or ServiceOntario: credit_card, certified_cheque or money_order.","type":"string","enum":["credit_card","certified_cheque","money_order"]},"language":{"default":"english","title":"Preferred language","description":"english or french: the language you want to use with the LTB.","type":"string","enum":["english","french"]},"signer":{"type":"object","properties":{"role":{"default":"landlord","title":"Who signs","description":"landlord: the landlord signs. representative: a lawyer, paralegal or agent signs for the landlord.","type":"string","enum":["landlord","representative"]},"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"Signer’s first name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Signer’s last name"},"phone":{"type":"string","minLength":7,"maxLength":30,"title":"Signer’s phone number"},"signDate":{"title":"Date of signing","description":"Leave empty to date it by hand when signing.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"representative":{"title":"Representative details","description":"Only when a representative signs.","type":"object","properties":{"lsoNumber":{"title":"Law Society of Ontario number","description":"Only for a lawyer or paralegal.","type":"string","maxLength":20},"companyName":{"title":"Company or firm name","type":"string","maxLength":160},"email":{"title":"Email","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"address":{"title":"Representative’s address","type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"province":{"default":"ON","title":"Province or territory","description":"Two-letter code, for example ON.","type":"string","enum":["ON","QC","NS","NB","MB","BC","PE","SK","AB","NL","NT","YT","NU"]},"postalCode":{"type":"string","pattern":"^[ABCEGHJ-NPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"]}}}},"required":["firstName","lastName","phone"],"title":"Signature block","description":"Who will sign the notice. The signature itself is left blank for them."}},"required":["landlords","landlordContact","tenants","rentalUnit","rent","n4","periods","signer"],"title":"L1 facts"}}},"examples":{"example1":{"summary":"Two months owing, one NSF cheque, filing through the portal","value":{"input":{"landlords":[{"type":"company","companyName":"Example Properties Inc."}],"landlordContact":{"phone":"416-555-0100","email":"office@example.com","address":{"streetNumber":"1","streetName":"Example Plaza","municipality":"Toronto","province":"ON","postalCode":"M5J 2N1"},"communication":"email"},"tenants":[{"firstName":"Alex","lastName":"Tenant"}],"rentalUnit":{"unit":"4","streetNumber":"120","streetName":"Example Street","municipality":"Toronto","postalCode":"M5V 2T6"},"rent":{"amount":1800,"period":"monthly"},"n4":{"service":{"method":"hand","date":"2026-10-05","emailConsentInWriting":false},"terminationDate":"2026-10-12"},"periods":[{"from":"2026-10-01","to":"2026-10-31","rentCharged":1800,"rentPaid":0},{"from":"2026-11-01","to":"2026-11-30","rentCharged":1800,"rentPaid":0}],"nsfCheques":[{"chequeAmount":1800,"chequeDate":"2026-10-01","chargeDate":"2026-10-04","bankCharge":7.5,"adminCharge":20}],"tenantInPossession":true,"filingDate":"2026-11-02","filingMethod":"portal","language":"english","signer":{"role":"landlord","firstName":"Pat","lastName":"Manager","phone":"416-555-0100"}}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"form":{"type":"object","properties":{"code":{"type":"string","const":"L1"},"title":{"type":"string"},"revision":{"type":"string"}},"required":["code","title","revision"]},"eligibility":{"type":"object","properties":{"eligible":{"type":"boolean"},"earliestFilingDate":{"type":"string"},"filingDate":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["eligible","earliestFilingDate","filingDate","reasons"]},"n4":{"type":"object","properties":{"givenOn":{"type":"string"},"earliestTerminationDate":{"type":"string"},"terminationDate":{"type":"string"},"terminationDateValid":{"type":"boolean"}},"required":["givenOn","earliestTerminationDate","terminationDate","terminationDateValid"]},"rent":{"type":"object","properties":{"periods":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"chargedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paidCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["from","to","chargedCents","paidCents","owingCents"]}},"formRows":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"chargedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paidCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["from","to","chargedCents","paidCents","owingCents"]}},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["periods","formRows","totalCents"]},"nsf":{"type":"object","properties":{"cheques":{"type":"array","items":{"type":"object","properties":{"chequeAmountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"chequeDate":{"type":"string"},"chargeDate":{"type":"string"},"bankChargeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"adminChargeCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"adminChargeCapped":{"type":"boolean"},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["chequeAmountCents","chequeDate","chargeDate","bankChargeCents","adminChargeCents","adminChargeCapped","totalCents"]}},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["cheques","totalCents"]},"fee":{"type":"object","properties":{"filingMethod":{"type":"string","enum":["portal","mail_or_courier","service_ontario"]},"cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["filingMethod","cents"]},"totalClaimCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalClaim":{"type":"string"},"tenantOptions":{"type":"object","properties":{"halfOfArrearsCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"halfRuleApplies":{"type":"boolean"}},"required":["halfOfArrearsCents","halfRuleApplies"]},"filing":{"type":"object","properties":{"method":{"type":"string","enum":["portal","mail_or_courier","service_ontario"]},"include":{"type":"array","items":{"type":"string"}},"paymentMethods":{"type":"array","items":{"type":"string"}},"where":{"type":"string"}},"required":["method","include","paymentMethods","where"]},"scheduleOfPartiesNeeded":{"type":"boolean"},"scheduleAttached":{"type":"boolean"},"document":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"locked":{"type":"boolean"},"sku":{"type":"string"}},"required":["id","title","locked","sku"]},{"type":"null"}]},"certificate":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"locked":{"type":"boolean"},"sku":{"type":"string"}},"required":["id","title","locked","sku"]},{"type":"null"}]}},"required":["form","eligibility","n4","rent","nsf","fee","totalClaimCents","totalClaim","tenantOptions","filing","scheduleOfPartiesNeeded","scheduleAttached","document"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.l1_prepare","version":1,"title":"Prepare an L1 to evict for non-payment of rent"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"form":{"code":"L1","title":"text","revision":"text"},"eligibility":{"eligible":false,"earliestFilingDate":"text","filingDate":"text","reasons":["text"]},"n4":{"givenOn":"text","earliestTerminationDate":"text","terminationDate":"text","terminationDateValid":false},"rent":{"periods":[{"from":"text","to":"text","chargedCents":1,"paidCents":1,"owingCents":1}],"formRows":[{"from":"text","to":"text","chargedCents":1,"paidCents":1,"owingCents":1}],"totalCents":1},"nsf":{"cheques":[{"chequeAmountCents":1,"chequeDate":"text","chargeDate":"text","bankChargeCents":1,"adminChargeCents":1,"adminChargeCapped":false,"totalCents":1}],"totalCents":1},"fee":{"filingMethod":"portal","cents":1},"totalClaimCents":1,"totalClaim":"text","tenantOptions":{"halfOfArrearsCents":1,"halfRuleApplies":false},"filing":{"method":"portal","include":["text"],"paymentMethods":["text"],"where":"text"},"scheduleOfPartiesNeeded":false,"scheduleAttached":false,"document":""},"summary":"Prepare an L1 to evict for non-payment of rent: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/service/deemed-given","title":"When a notice counts as given","status":"unverified"},{"id":"ltb/n4/termination-date","title":"N4: earliest termination date","status":"unverified"},{"id":"ltb/l1/eligibility","title":"L1: when the landlord may file","status":"unverified"},{"id":"ltb/l1/claim","title":"L1: what the claim adds up to","status":"unverified"},{"id":"ltb/l1/tenant-options","title":"L1: what the tenant can do","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.l1_prepare","version":1,"kind":"prepare","audience":["person","organization","firm","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":false},"price":{"sku":"ltb.landlord_plan","title":"Landlord plan","label":"CAD 1 per unit per month, minimum CAD 49, plus HST","amount":100,"currency":"CAD","kind":"subscription","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"N4s, L1 and L2 preparation and bulk runs across your portfolio."},"personalData":true}}},"/operations/ltb.n4_bulk/runs":{"post":{"operationId":"run_ltb_n4_bulk","tags":["ltb"],"summary":"An N4 for every unit in arrears","description":"Use this when a property manager or organization needs N4 notices for every unit in arrears across a rent roll. Ontario residential tenancies only, up to 500 units per run. Do not use it for a single unit (ltb_n4_prepare) or for commercial leases. Next: fix the units listed with problems and run them again; ltb_l1_prepare after each termination date if rent is still owing.\n\nOne N4 for each unit in arrears across a rent roll, the batch in one table, and what to fix for any unit that needs it.\n\nFor property managers and organizations. Send the landlords, how and when the notices will be delivered, who signs, and the rent roll: each unit’s reference, tenants, address, rent, and rental periods with rent owing (empty for units with nothing owing). Up to 500 units per run. Units with problems are listed with the reason and no notice is prepared for them; fix and run them again. Every notice, with its Certificate of Service, is unlocked with the landlord plan.\n\nPrice: CAD 1 per unit per month, minimum CAD 49, plus HST (sku `ltb.landlord_plan`, Jonathan Kleiman (software and consulting)). Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: `ltb/service/deemed-given` (unverified), `ltb/n4/termination-date` (unverified), `ltb/n4/contents` (unverified), `ltb/n4/void-if-paid` (unverified). Availability: unverified.\nMCP tool: `ltb_n4_bulk`. Markdown: https://mithril.law/ltb/n4-bulk.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"landlords":{"minItems":1,"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"person","title":"A person"},"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"First name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Last name"}},"required":["type","firstName","lastName"],"title":"A person"},{"type":"object","properties":{"type":{"type":"string","const":"company","title":"A company"},"companyName":{"type":"string","minLength":1,"maxLength":160,"title":"Company name","description":"The landlord’s legal name."}},"required":["type","companyName"],"title":"A company"}],"title":"Landlord"},"title":"Landlords","description":"The landlords of every unit in this run."},"service":{"type":"object","properties":{"method":{"type":"string","enum":["hand","adult_in_unit","mailbox","under_door","mail","xpresspost","courier","fax","email"],"title":"How it is delivered","description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service"},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"The day it is delivered","description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026."},"emailConsentInWriting":{"default":false,"title":"Written consent to email service","description":"Only for email: the person agreed in writing to receive documents by email.","type":"boolean"}},"required":["method","date"],"title":"The delivery"},"terminationDate":{"title":"Termination date","description":"Leave empty to use the earliest valid date.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"signer":{"type":"object","properties":{"role":{"default":"landlord","title":"Who signs","description":"landlord: the landlord signs. representative: a lawyer, paralegal or agent signs for the landlord.","type":"string","enum":["landlord","representative"]},"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"Signer’s first name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Signer’s last name"},"phone":{"type":"string","minLength":7,"maxLength":30,"title":"Signer’s phone number"},"signDate":{"title":"Date of signing","description":"Leave empty to date it by hand when signing.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"representative":{"title":"Representative details","description":"Only when a representative signs.","type":"object","properties":{"lsoNumber":{"title":"Law Society of Ontario number","description":"Only for a lawyer or paralegal.","type":"string","maxLength":20},"companyName":{"title":"Company or firm name","type":"string","maxLength":160},"email":{"title":"Email","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"address":{"title":"Representative’s address","type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"province":{"default":"ON","title":"Province or territory","description":"Two-letter code, for example ON.","type":"string","enum":["ON","QC","NS","NB","MB","BC","PE","SK","AB","NL","NT","YT","NU"]},"postalCode":{"type":"string","pattern":"^[ABCEGHJ-NPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"]}}}},"required":["firstName","lastName","phone"],"title":"Signature block","description":"Who will sign the notice. The signature itself is left blank for them."},"units":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":60,"title":"Your reference","description":"How you identify the unit in your rent roll, for example 4 or a tenant code."},"tenants":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"First name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Last name"}},"required":["firstName","lastName"],"title":"Tenant"},"title":"Tenants"},"rentalUnit":{"type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"postalCode":{"type":"string","pattern":"^[KLMNP]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"],"title":"Rental unit address"},"rent":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":1000000,"title":"Rent per period","description":"The lawful rent for one rental period, in dollars, including any fixed amount paid to the landlord for parking or other services."},"period":{"default":"monthly","title":"Rental period","description":"How often rent is due.","type":"string","enum":["monthly","weekly","daily","yearly"]}},"required":["amount"],"title":"Rent"},"periods":{"default":[],"title":"Rent owing by rental period","description":"Leave empty for a unit with nothing owing.","maxItems":60,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Period start","description":"The day rent was due, for example September 1, 2026."},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Period end","description":"The last day of the rental period, for example September 30, 2026."},"rentCharged":{"type":"number","minimum":0,"maximum":1000000,"title":"Rent charged","description":"Rent for this period, in dollars."},"rentPaid":{"default":0,"title":"Rent paid","description":"What the tenant paid toward this period’s rent, in dollars.","type":"number","minimum":0,"maximum":1000000}},"required":["from","to","rentCharged"],"title":"Rental period"}}},"required":["reference","tenants","rentalUnit","rent"],"title":"Unit"},"title":"Rent roll","description":"One entry per unit, up to 500 per run."}},"required":["landlords","service","signer","units"],"title":"Bulk N4 facts"}}},"examples":{"example1":{"summary":"Three units, one in arrears","value":{"input":{"landlords":[{"type":"company","companyName":"Example Properties Inc."}],"service":{"method":"under_door","date":"2026-10-05","emailConsentInWriting":false},"signer":{"role":"landlord","firstName":"Pat","lastName":"Manager","phone":"416-555-0100"},"units":[{"reference":"101","tenants":[{"firstName":"Alex","lastName":"Tenant"}],"rentalUnit":{"unit":"101","streetNumber":"120","streetName":"Example Street","municipality":"Toronto","postalCode":"M5V 2T6"},"rent":{"amount":1800,"period":"monthly"},"periods":[{"from":"2026-10-01","to":"2026-10-31","rentCharged":1800,"rentPaid":0}]},{"reference":"102","tenants":[{"firstName":"Robin","lastName":"Tenant"}],"rentalUnit":{"unit":"102","streetNumber":"120","streetName":"Example Street","municipality":"Toronto","postalCode":"M5V 2T6"},"rent":{"amount":1750,"period":"monthly"},"periods":[]},{"reference":"103","tenants":[{"firstName":"Jordan","lastName":"Tenant"}],"rentalUnit":{"unit":"103","streetNumber":"120","streetName":"Example Street","municipality":"Toronto","postalCode":"M5V 2T6"},"rent":{"amount":1900,"period":"monthly"},"periods":[{"from":"2026-10-01","to":"2026-10-31","rentCharged":1900,"rentPaid":1900}]}]}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"totals":{"type":"object","properties":{"units":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prepared":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"noArrears":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalOwingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalOwing":{"type":"string"}},"required":["units","prepared","noArrears","invalid","totalOwingCents","totalOwing"]},"service":{"type":"object","properties":{"method":{"type":"string"},"deliveredOn":{"type":"string"},"givenOn":{"type":["string","null"]}},"required":["method","deliveredOn","givenOn"]},"terminationDate":{"type":["string","null"]},"firstDayToFileL1":{"type":["string","null"]},"units":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"rentalUnit":{"type":"string"},"tenants":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["prepared","no_arrears","invalid"]},"totalOwingCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"terminationDate":{"type":["string","null"]},"documentId":{"type":["string","null"]},"certificateId":{"type":["string","null"]},"problems":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"row":{"type":"number"}},"required":["code","message"]}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["reference","rentalUnit","tenants","status","totalOwingCents","terminationDate","documentId","problems","warnings"]}}},"required":["totals","service","terminationDate","firstDayToFileL1","units"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.n4_bulk","version":1,"title":"An N4 for every unit in arrears"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"totals":{"units":1,"prepared":1,"noArrears":1,"invalid":1,"totalOwingCents":1,"totalOwing":"text"},"service":{"method":"text","deliveredOn":"text","givenOn":""},"terminationDate":"","firstDayToFileL1":"","units":[{"reference":"text","rentalUnit":"text","tenants":["text"],"status":"prepared","totalOwingCents":"","terminationDate":"","documentId":"","problems":[{"code":"text","message":"text"}],"warnings":["text"]}]},"summary":"An N4 for every unit in arrears: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/service/deemed-given","title":"When a notice counts as given","status":"unverified"},{"id":"ltb/n4/termination-date","title":"N4: earliest termination date","status":"unverified"},{"id":"ltb/n4/contents","title":"N4: what it may claim and how the rent owing is added up","status":"unverified"},{"id":"ltb/n4/void-if-paid","title":"N4: what the tenant must pay to void it","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.n4_bulk","version":1,"kind":"prepare","audience":["organization","firm","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":false},"price":{"sku":"ltb.landlord_plan","title":"Landlord plan","label":"CAD 1 per unit per month, minimum CAD 49, plus HST","amount":100,"currency":"CAD","kind":"subscription","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"N4s, L1 and L2 preparation and bulk runs across your portfolio."},"personalData":true}}},"/operations/ltb.n4_prepare/runs":{"post":{"operationId":"run_ltb_n4_prepare","tags":["ltb"],"summary":"Prepare an N4 for non-payment of rent","description":"Use this when an Ontario landlord or property manager needs an N4 notice for rent a tenant has not paid. Ontario residential tenancies only. Do not use it for several units at once (ltb_n4_bulk), for a commercial lease, or to claim anything but rent on the notice. Next: the landlord signs and serves the N4; ltb_l1_prepare after the termination date if rent is still owing.\n\nChecks what the N4 may claim, adds up the rent owing, sets the termination date, and fills the official N4 for the landlord to sign and serve.\n\nFor landlords and property managers. Ask for every landlord and tenant name, the full rental unit address, the rent and how often it is due, each rental period with rent owing (dates, rent charged, rent paid), how and when the N4 will be delivered, and who signs. Include only rent; list anything else the tenant owes under otherAmounts and the answer says where it can be claimed. The computed content is free; the filled N4 and its Certificate of Service (filled from the delivery answers, signed by whoever gives the N4, filed with the L1) are unlocked with the landlord plan. After the termination date, if unpaid, call ltb.l1_prepare.\n\nPrice: CAD 1 per unit per month, minimum CAD 49, plus HST (sku `ltb.landlord_plan`, Jonathan Kleiman (software and consulting)). Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: `ltb/service/deemed-given` (unverified), `ltb/n4/termination-date` (unverified), `ltb/n4/contents` (unverified), `ltb/n4/void-if-paid` (unverified). Availability: unverified.\nMCP tool: `ltb_n4_prepare`. Markdown: https://mithril.law/ltb/n4-prepare.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"landlords":{"minItems":1,"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"person","title":"A person"},"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"First name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Last name"}},"required":["type","firstName","lastName"],"title":"A person"},{"type":"object","properties":{"type":{"type":"string","const":"company","title":"A company"},"companyName":{"type":"string","minLength":1,"maxLength":160,"title":"Company name","description":"The landlord’s legal name."}},"required":["type","companyName"],"title":"A company"}],"title":"Landlord"},"title":"Landlords","description":"Every landlord, as named in the tenancy agreement."},"tenants":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"First name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Last name"}},"required":["firstName","lastName"],"title":"Tenant"},"title":"Tenants","description":"Every tenant in the unit, and any subtenant or assignee. Other occupants, such as children or guests, are not named."},"rentalUnit":{"type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"postalCode":{"type":"string","pattern":"^[KLMNP]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"],"title":"Rental unit address","description":"The full address, including the unit number and postal code."},"rent":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":1000000,"title":"Rent per period","description":"The lawful rent for one rental period, in dollars, including any fixed amount paid to the landlord for parking or other services."},"period":{"default":"monthly","title":"Rental period","description":"How often rent is due.","type":"string","enum":["monthly","weekly","daily","yearly"]}},"required":["amount"],"title":"Rent"},"periods":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Period start","description":"The day rent was due, for example September 1, 2026."},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Period end","description":"The last day of the rental period, for example September 30, 2026."},"rentCharged":{"type":"number","minimum":0,"maximum":1000000,"title":"Rent charged","description":"Rent for this period, in dollars."},"rentPaid":{"default":0,"title":"Rent paid","description":"What the tenant paid toward this period’s rent, in dollars.","type":"number","minimum":0,"maximum":1000000}},"required":["from","to","rentCharged"],"title":"Rental period"},"title":"Rent owing by rental period","description":"Each rental period with rent owing, oldest first: the dates, the rent charged and what was paid."},"service":{"type":"object","properties":{"method":{"type":"string","enum":["hand","adult_in_unit","mailbox","under_door","mail","xpresspost","courier","fax","email"],"title":"How it is delivered","description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service"},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"The day it is delivered","description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026."},"emailConsentInWriting":{"default":false,"title":"Written consent to email service","description":"Only for email: the person agreed in writing to receive documents by email.","type":"boolean"}},"required":["method","date"],"title":"The delivery"},"terminationDate":{"title":"Termination date","description":"Leave empty to use the earliest valid date. A later date is allowed; an earlier one is refused.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"signer":{"type":"object","properties":{"role":{"default":"landlord","title":"Who signs","description":"landlord: the landlord signs. representative: a lawyer, paralegal or agent signs for the landlord.","type":"string","enum":["landlord","representative"]},"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"Signer’s first name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Signer’s last name"},"phone":{"type":"string","minLength":7,"maxLength":30,"title":"Signer’s phone number"},"signDate":{"title":"Date of signing","description":"Leave empty to date it by hand when signing.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"representative":{"title":"Representative details","description":"Only when a representative signs.","type":"object","properties":{"lsoNumber":{"title":"Law Society of Ontario number","description":"Only for a lawyer or paralegal.","type":"string","maxLength":20},"companyName":{"title":"Company or firm name","type":"string","maxLength":160},"email":{"title":"Email","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"address":{"title":"Representative’s address","type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"province":{"default":"ON","title":"Province or territory","description":"Two-letter code, for example ON.","type":"string","enum":["ON","QC","NS","NB","MB","BC","PE","SK","AB","NL","NT","YT","NU"]},"postalCode":{"type":"string","pattern":"^[ABCEGHJ-NPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"]}}}},"required":["firstName","lastName","phone"],"title":"Signature block","description":"Who will sign the notice. The signature itself is left blank for them."},"otherAmounts":{"default":[],"title":"Other amounts owed","description":"Anything else the tenant owes, to check whether it can go on the N4. These are never added to the notice.","maxItems":20,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["parking_or_services","flat_utility_rate","seasonal_air_conditioner","utility_share_or_bill","nsf_bank_charge","nsf_admin_charge","rent_deposit","late_fee","damage","other_charge"],"title":"What it is for","description":"parking_or_services: A fixed amount paid to the landlord for parking, storage or another service; flat_utility_rate: A flat monthly rate paid to the landlord for a utility; seasonal_air_conditioner: A seasonal air-conditioner charge; utility_share_or_bill: A share of a utility bill, or a utility bill the tenant should have paid; nsf_bank_charge: A bank charge for an NSF cheque; nsf_admin_charge: The landlord’s administration charge for an NSF cheque; rent_deposit: An unpaid rent deposit (last month’s rent); late_fee: A late payment fee; damage: The cost of damage; other_charge: Any other charge"},"amount":{"type":"number","minimum":0,"maximum":1000000,"title":"Amount","description":"In dollars."},"description":{"title":"Note","type":"string","maxLength":200}},"required":["kind","amount"],"title":"Other amount the tenant owes"}}},"required":["landlords","tenants","rentalUnit","rent","periods","service","signer"],"title":"N4 facts"}}},"examples":{"example1":{"summary":"One month unpaid, handed over","value":{"input":{"landlords":[{"type":"company","companyName":"Example Properties Inc."}],"tenants":[{"firstName":"Alex","lastName":"Tenant"}],"rentalUnit":{"unit":"4","streetNumber":"120","streetName":"Example Street","municipality":"Toronto","postalCode":"M5V 2T6"},"rent":{"amount":1800,"period":"monthly"},"periods":[{"from":"2026-10-01","to":"2026-10-31","rentCharged":1800,"rentPaid":0}],"service":{"method":"hand","date":"2026-10-05","emailConsentInWriting":false},"signer":{"role":"landlord","firstName":"Pat","lastName":"Manager","phone":"416-555-0100"},"otherAmounts":[]}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"form":{"type":"object","properties":{"code":{"type":"string","const":"N4"},"title":{"type":"string"},"revision":{"type":"string"}},"required":["code","title","revision"]},"landlords":{"type":"array","items":{"type":"string"}},"tenants":{"type":"array","items":{"type":"string"}},"rentalUnit":{"type":"string"},"periods":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"chargedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paidCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["from","to","chargedCents","paidCents","owingCents"]}},"formRows":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"chargedCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paidCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["from","to","chargedCents","paidCents","owingCents"]}},"scheduleAttached":{"type":"boolean"},"totalOwingCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalOwing":{"type":"string"},"service":{"type":"object","properties":{"method":{"type":"string"},"deliveredOn":{"type":"string"},"givenOn":{"type":"string"}},"required":["method","deliveredOn","givenOn"]},"earliestTerminationDate":{"type":"string"},"terminationDate":{"type":"string"},"firstDayToFileL1":{"type":"string"},"voidSchedule":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"string"}},"required":["from","to","amountCents","amount"]}},"otherAmounts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isRent":{"type":"boolean"},"advice":{"type":"string"}},"required":["kind","amountCents","isRent","advice"]}},"document":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"locked":{"type":"boolean"},"sku":{"type":"string"}},"required":["id","title","locked","sku"]},{"type":"null"}]},"certificate":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"locked":{"type":"boolean"},"sku":{"type":"string"}},"required":["id","title","locked","sku"]},{"type":"null"}]}},"required":["form","landlords","tenants","rentalUnit","periods","formRows","scheduleAttached","totalOwingCents","totalOwing","service","earliestTerminationDate","terminationDate","firstDayToFileL1","voidSchedule","otherAmounts","document"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.n4_prepare","version":1,"title":"Prepare an N4 for non-payment of rent"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"form":{"code":"N4","title":"text","revision":"text"},"landlords":["text"],"tenants":["text"],"rentalUnit":"text","periods":[{"from":"text","to":"text","chargedCents":1,"paidCents":1,"owingCents":1}],"formRows":[{"from":"text","to":"text","chargedCents":1,"paidCents":1,"owingCents":1}],"scheduleAttached":false,"totalOwingCents":1,"totalOwing":"text","service":{"method":"text","deliveredOn":"text","givenOn":"text"},"earliestTerminationDate":"text","terminationDate":"text","firstDayToFileL1":"text","voidSchedule":[{"from":"text","to":"text","amountCents":1,"amount":"text"}],"otherAmounts":[{"kind":"text","amountCents":1,"isRent":false,"advice":"text"}],"document":""},"summary":"Prepare an N4 for non-payment of rent: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/service/deemed-given","title":"When a notice counts as given","status":"unverified"},{"id":"ltb/n4/termination-date","title":"N4: earliest termination date","status":"unverified"},{"id":"ltb/n4/contents","title":"N4: what it may claim and how the rent owing is added up","status":"unverified"},{"id":"ltb/n4/void-if-paid","title":"N4: what the tenant must pay to void it","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.n4_prepare","version":1,"kind":"prepare","audience":["person","organization","firm","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":false},"price":{"sku":"ltb.landlord_plan","title":"Landlord plan","label":"CAD 1 per unit per month, minimum CAD 49, plus HST","amount":100,"currency":"CAD","kind":"subscription","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"N4s, L1 and L2 preparation and bulk runs across your portfolio."},"personalData":true}}},"/operations/ltb.outcomes/runs":{"post":{"operationId":"run_ltb_outcomes","tags":["ltb"],"summary":"LTB orders by application","description":"Use this when someone asks how often the Landlord and Tenant Board issues orders on an application, by type of order, month or filing year. The Landlord and Tenant Board's open data for Ontario. Do not use it to predict the result of one case, or for hearing dates, regions or wait times (the open data has none). Next: ltb_tenant_path or ltb_termination_date for the person's own matter.\n\nHow many orders the Board issued for an application, by kind of order, month and filing year, from the LTB’s open data.\n\nUse when someone asks how often the LTB issues orders on an application or how applications are combined. The open data has no outcome, no filing or hearing dates and no region: say so rather than guessing. Always show the attribution line with the figures.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `ltb/outcomes/open-data` (unverified). Availability: unverified.\nMCP tool: `ltb_outcomes`. Markdown: https://mithril.law/ltb/outcomes.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"application":{"type":"string","title":"Application","description":"The LTB application code, for example L1 (non-payment of rent) or T6 (maintenance).","anyOf":[{"const":"L1","title":"L1: Evict for non-payment of rent"},{"const":"L2","title":"L2: End a tenancy and evict, or collect money"},{"const":"L3","title":"L3: End a tenancy: the tenant gave notice or agreed"},{"const":"L4","title":"L4: End a tenancy: the tenant broke a settlement or order"},{"const":"L5","title":"L5: An above-guideline rent increase"},{"const":"L6","title":"L6: Review of a provincial work order"},{"const":"L7","title":"L7: Transfer a care home tenant"},{"const":"L8","title":"L8: The tenant changed the locks"},{"const":"L9","title":"L9: Collect rent the tenant owes"},{"const":"L10","title":"L10: Collect money a former tenant owes"},{"const":"T1","title":"T1: A rebate of money the landlord owes"},{"const":"T2","title":"T2: Tenant rights"},{"const":"T3","title":"T3: A rent reduction"},{"const":"T4","title":"T4: An above-guideline increase agreement not kept"},{"const":"T5","title":"T5: A notice given in bad faith"},{"const":"T6","title":"T6: Maintenance"},{"const":"T7","title":"T7: Suite meters"},{"const":"A1","title":"A1: Whether the Act applies"},{"const":"A2","title":"A2: A sublet or an assignment"},{"const":"A4","title":"A4: Vary a rent reduction"}]},"alone":{"default":false,"title":"Only files with this application alone","description":"Yes counts only files with this application and no other. No also counts files that combine it with others, such as L1 with L2.","type":"boolean"},"fromMonth":{"title":"From month","description":"Year and month, for example 2026-01. Leave both empty for every month held.","type":"string","pattern":"^\\d{4}-\\d{2}$"},"toMonth":{"title":"To month","description":"Year and month, for example 2026-06. Included.","type":"string","pattern":"^\\d{4}-\\d{2}$"}},"required":["application"],"title":"LTB orders"}}},"examples":{"example1":{"summary":"L1 orders, January to June 2026","value":{"input":{"application":"L1","alone":false,"fromMonth":"2026-01","toMonth":"2026-06"}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"application":{"type":"string"},"alone":{"type":"boolean"},"files":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"object","properties":{"documents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byDocumentType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["order","ex_parte_order","review_order","amended_order","other"]},"label":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"number"}},"required":["type","label","count","share"]}},"byMonth":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["month","count"]}},"byFilingYear":{"type":"array","items":{"type":"object","properties":{"year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["year","count"]}},"filedWith":{"type":"array","items":{"type":"object","properties":{"applications":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"number"}},"required":["applications","count","share"]}}},"required":["documents","byDocumentType","byMonth","byFilingYear","filedWith"]},"shareOfAllOrders":{"type":"number"},"coverage":{"type":"object","properties":{"firstOrderDate":{"type":["string","null"]},"lastOrderDate":{"type":["string","null"]},"refreshedAt":{"type":["string","null"]},"resourceLastModified":{"type":["string","null"]}},"required":["firstOrderDate","lastOrderDate","refreshedAt","resourceLastModified"]},"notInDataset":{"type":"array","items":{"type":"string"}},"attribution":{"type":"string"},"licenceUrl":{"type":"string"},"source":{"type":"string"}},"required":["application","alone","files","summary","shareOfAllOrders","coverage","notInDataset","attribution","licenceUrl","source"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.outcomes","version":1,"title":"LTB orders by application"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"application":"L1","alone":false,"files":23996,"summary":{"documents":25388,"byDocumentType":[{"type":"order","label":"Order","count":21037,"share":82.9},{"type":"ex_parte_order","label":"Order made without a hearing (ex parte)","count":2934,"share":11.6},{"type":"review_order","label":"Review order","count":1073,"share":4.2},{"type":"amended_order","label":"Amended order","count":344,"share":1.4}],"byMonth":[{"month":"2026-01","count":4582},{"month":"2026-02","count":4076},{"month":"2026-03","count":4139},{"month":"2026-04","count":4204},{"month":"2026-05","count":4029},{"month":"2026-06","count":4358}],"byFilingYear":[{"year":2021,"count":1},{"year":2022,"count":29},{"year":2023,"count":63},{"year":2024,"count":191},{"year":2025,"count":12149},{"year":2026,"count":12955}],"filedWith":[{"applications":"L1","count":24262,"share":95.6},{"applications":"L1+L2","count":1114,"share":4.4},{"applications":"L1+L3","count":11,"share":0},{"applications":"L1+L2+L3","count":1,"share":0}]},"shareOfAllOrders":51.5,"coverage":{"firstOrderDate":"2026-01-02","lastOrderDate":"2026-06-30","refreshedAt":"2026-09-24T15:37:38.018Z","resourceLastModified":"2026-09-01T12:00:43.231962"},"notInDataset":["Outcome (granted, dismissed, eviction ordered or not)","Filing and hearing dates, so no time from filing to order","Region or LTB office"],"attribution":"Contains information licensed under the Open Government Licence – Ontario.","licenceUrl":"https://www.ontario.ca/page/open-government-licence-ontario","source":"https://data.ontario.ca/dataset/ltb-order-catalogue"},"headline":{"label":"L1 order documents","value":"25,388"},"summary":"The Board issued 25,388 L1 order documents on 23,996 files, dated January 2, 2026 to June 30, 2026. The data has no outcomes, filing dates or regions. Contains information licensed under the Open Government Licence – Ontario.","steps":[{"label":"Order documents","value":"25,388","detail":"51.5% of all orders in the same months.","cites":[{"sourceId":"on/data/ltb-order-catalogue","label":"LTB Order Catalogue, Ontario Data Catalogue (Landlord and Tenant Board)","url":"https://data.ontario.ca/dataset/ltb-order-catalogue"}]},{"label":"Order","value":"21,037 (82.9%)"},{"label":"Order made without a hearing (ex parte)","value":"2,934 (11.6%)"},{"label":"Review order","value":"1,073 (4.2%)"},{"label":"Amended order","value":"344 (1.4%)"},{"label":"Not in the data","detail":"Outcome (granted, dismissed, eviction ordered or not); Filing and hearing dates, so no time from filing to order; Region or LTB office."},{"label":"Licence","detail":"Contains information licensed under the Open Government Licence – Ontario.","cites":[{"sourceId":"on/ogl-1-0","label":"Open Government Licence – Ontario, version 1.0","url":"https://www.ontario.ca/page/open-government-licence-ontario"}]}],"boundary":{"kind":"automated","actions":[{"id":"run_operation","label":"Prepare the L1","operation":"ltb.l1_prepare"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/outcomes/open-data","title":"LTB orders: what the open data can and cannot tell","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.outcomes","version":1,"kind":"calculate","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/ltb.outcomes/run":{"get":{"operationId":"get_ltb_outcomes","tags":["ltb"],"summary":"LTB orders by application (from a URL)","description":"Use this when someone asks how often the Landlord and Tenant Board issues orders on an application, by type of order, month or filing year. The Landlord and Tenant Board's open data for Ontario. Do not use it to predict the result of one case, or for hearing dates, regions or wait times (the open data has none). Next: ltb_tenant_path or ltb_termination_date for the person's own matter.\n\nHow many orders the Board issued for an application, by kind of order, month and filing year, from the LTB’s open data.\n\nUse when someone asks how often the LTB issues orders on an application or how applications are combined. The open data has no outcome, no filing or hearing dates and no region: say so rather than guessing. Always show the attribution line with the figures.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `ltb/outcomes/open-data` (unverified). Availability: unverified.\nMCP tool: `ltb_outcomes`. Markdown: https://mithril.law/ltb/outcomes.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/ltb.outcomes/run?application=L1&alone=false&fromMonth=2026-01&toMonth=2026-06","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"application","in":"query","required":true,"description":"The LTB application code, for example L1 (non-payment of rent) or T6 (maintenance).","schema":{"type":"string","title":"Application","description":"The LTB application code, for example L1 (non-payment of rent) or T6 (maintenance).","anyOf":[{"const":"L1","title":"L1: Evict for non-payment of rent"},{"const":"L2","title":"L2: End a tenancy and evict, or collect money"},{"const":"L3","title":"L3: End a tenancy: the tenant gave notice or agreed"},{"const":"L4","title":"L4: End a tenancy: the tenant broke a settlement or order"},{"const":"L5","title":"L5: An above-guideline rent increase"},{"const":"L6","title":"L6: Review of a provincial work order"},{"const":"L7","title":"L7: Transfer a care home tenant"},{"const":"L8","title":"L8: The tenant changed the locks"},{"const":"L9","title":"L9: Collect rent the tenant owes"},{"const":"L10","title":"L10: Collect money a former tenant owes"},{"const":"T1","title":"T1: A rebate of money the landlord owes"},{"const":"T2","title":"T2: Tenant rights"},{"const":"T3","title":"T3: A rent reduction"},{"const":"T4","title":"T4: An above-guideline increase agreement not kept"},{"const":"T5","title":"T5: A notice given in bad faith"},{"const":"T6","title":"T6: Maintenance"},{"const":"T7","title":"T7: Suite meters"},{"const":"A1","title":"A1: Whether the Act applies"},{"const":"A2","title":"A2: A sublet or an assignment"},{"const":"A4","title":"A4: Vary a rent reduction"}]}},{"name":"alone","in":"query","required":false,"description":"Yes counts only files with this application and no other. No also counts files that combine it with others, such as L1 with L2.","schema":{"default":false,"title":"Only files with this application alone","description":"Yes counts only files with this application and no other. No also counts files that combine it with others, such as L1 with L2.","type":"boolean"}},{"name":"fromMonth","in":"query","required":false,"description":"Year and month, for example 2026-01. Leave both empty for every month held.","schema":{"title":"From month","description":"Year and month, for example 2026-01. Leave both empty for every month held.","type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"toMonth","in":"query","required":false,"description":"Year and month, for example 2026-06. Included.","schema":{"title":"To month","description":"Year and month, for example 2026-06. Included.","type":"string","pattern":"^\\d{4}-\\d{2}$"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"application":{"type":"string"},"alone":{"type":"boolean"},"files":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"object","properties":{"documents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byDocumentType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["order","ex_parte_order","review_order","amended_order","other"]},"label":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"number"}},"required":["type","label","count","share"]}},"byMonth":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["month","count"]}},"byFilingYear":{"type":"array","items":{"type":"object","properties":{"year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["year","count"]}},"filedWith":{"type":"array","items":{"type":"object","properties":{"applications":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"number"}},"required":["applications","count","share"]}}},"required":["documents","byDocumentType","byMonth","byFilingYear","filedWith"]},"shareOfAllOrders":{"type":"number"},"coverage":{"type":"object","properties":{"firstOrderDate":{"type":["string","null"]},"lastOrderDate":{"type":["string","null"]},"refreshedAt":{"type":["string","null"]},"resourceLastModified":{"type":["string","null"]}},"required":["firstOrderDate","lastOrderDate","refreshedAt","resourceLastModified"]},"notInDataset":{"type":"array","items":{"type":"string"}},"attribution":{"type":"string"},"licenceUrl":{"type":"string"},"source":{"type":"string"}},"required":["application","alone","files","summary","shareOfAllOrders","coverage","notInDataset","attribution","licenceUrl","source"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.outcomes","version":1,"title":"LTB orders by application"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"application":"L1","alone":false,"files":23996,"summary":{"documents":25388,"byDocumentType":[{"type":"order","label":"Order","count":21037,"share":82.9},{"type":"ex_parte_order","label":"Order made without a hearing (ex parte)","count":2934,"share":11.6},{"type":"review_order","label":"Review order","count":1073,"share":4.2},{"type":"amended_order","label":"Amended order","count":344,"share":1.4}],"byMonth":[{"month":"2026-01","count":4582},{"month":"2026-02","count":4076},{"month":"2026-03","count":4139},{"month":"2026-04","count":4204},{"month":"2026-05","count":4029},{"month":"2026-06","count":4358}],"byFilingYear":[{"year":2021,"count":1},{"year":2022,"count":29},{"year":2023,"count":63},{"year":2024,"count":191},{"year":2025,"count":12149},{"year":2026,"count":12955}],"filedWith":[{"applications":"L1","count":24262,"share":95.6},{"applications":"L1+L2","count":1114,"share":4.4},{"applications":"L1+L3","count":11,"share":0},{"applications":"L1+L2+L3","count":1,"share":0}]},"shareOfAllOrders":51.5,"coverage":{"firstOrderDate":"2026-01-02","lastOrderDate":"2026-06-30","refreshedAt":"2026-09-24T15:37:38.018Z","resourceLastModified":"2026-09-01T12:00:43.231962"},"notInDataset":["Outcome (granted, dismissed, eviction ordered or not)","Filing and hearing dates, so no time from filing to order","Region or LTB office"],"attribution":"Contains information licensed under the Open Government Licence – Ontario.","licenceUrl":"https://www.ontario.ca/page/open-government-licence-ontario","source":"https://data.ontario.ca/dataset/ltb-order-catalogue"},"headline":{"label":"L1 order documents","value":"25,388"},"summary":"The Board issued 25,388 L1 order documents on 23,996 files, dated January 2, 2026 to June 30, 2026. The data has no outcomes, filing dates or regions. Contains information licensed under the Open Government Licence – Ontario.","steps":[{"label":"Order documents","value":"25,388","detail":"51.5% of all orders in the same months.","cites":[{"sourceId":"on/data/ltb-order-catalogue","label":"LTB Order Catalogue, Ontario Data Catalogue (Landlord and Tenant Board)","url":"https://data.ontario.ca/dataset/ltb-order-catalogue"}]},{"label":"Order","value":"21,037 (82.9%)"},{"label":"Order made without a hearing (ex parte)","value":"2,934 (11.6%)"},{"label":"Review order","value":"1,073 (4.2%)"},{"label":"Amended order","value":"344 (1.4%)"},{"label":"Not in the data","detail":"Outcome (granted, dismissed, eviction ordered or not); Filing and hearing dates, so no time from filing to order; Region or LTB office."},{"label":"Licence","detail":"Contains information licensed under the Open Government Licence – Ontario.","cites":[{"sourceId":"on/ogl-1-0","label":"Open Government Licence – Ontario, version 1.0","url":"https://www.ontario.ca/page/open-government-licence-ontario"}]}],"boundary":{"kind":"automated","actions":[{"id":"run_operation","label":"Prepare the L1","operation":"ltb.l1_prepare"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/outcomes/open-data","title":"LTB orders: what the open data can and cannot tell","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.outcomes","version":1,"kind":"calculate","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/ltb.rent_increase_check/runs":{"post":{"operationId":"run_ltb_rent_increase_check","tags":["ltb"],"summary":"Is this rent increase lawful?","description":"Use this when a tenant or landlord in Ontario wants to know whether a rent increase is lawful: the guideline, the 12-month rule, the written notice and the exemption for newer units. Ontario residential tenancies only. Do not use it for commercial rent, or for rent that is owing (ltb_n4_prepare). Next: ltb_tenant_path when a tenant wants money back; handoff_create when the boundary is needs_lawyer.\n\nChecks an increase against the guideline, the 12-month rule, the 90 days’ written notice and the exemption for newer units, then says what each side can do.\n\nFor tenants and landlords alike. Ask for the current and new rent, when the increase takes effect, when the tenancy began and when the rent last went up, whether a notice was given on the LTB’s form and how and when it was delivered, whether the unit is in a building first lived in after November 15, 2018, and whether there is an LTB order or signed agreement for more than the guideline.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `ltb/rent-increase/guideline` (unverified), `ltb/rent-increase/twelve-month` (unverified), `ltb/rent-increase/notice` (unverified), `ltb/rent-increase/remedies` (unverified), `ltb/service/deemed-given` (unverified). Availability: unverified.\nMCP tool: `ltb_rent_increase_check`. Markdown: https://mithril.law/ltb/rent-increase-check.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"currentRent":{"type":"number","minimum":0,"maximum":1000000,"title":"Current rent","description":"The rent now, per rental period, in dollars."},"newRent":{"type":"number","minimum":0,"maximum":1000000,"title":"New rent","description":"The rent after the increase, per rental period, in dollars."},"effectiveDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Date the increase takes effect"},"tenancyStartDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Date the tenancy began","description":"The day the unit was first rented to this tenant."},"lastIncreaseDate":{"title":"Date of the last increase","description":"When this tenant’s rent last went up. Leave empty if it never has.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"notice":{"type":"object","properties":{"kind":{"type":"string","enum":["ltb_form","other_writing","none"],"title":"The notice","description":"ltb_form: a notice on the LTB’s form (N1, N2 or N3). other_writing: a letter, email or text not on the LTB’s form. none: no written notice."},"service":{"title":"How and when it was given","description":"Needed to check the 90 days.","type":"object","properties":{"method":{"type":"string","enum":["hand","adult_in_unit","mailbox","under_door","mail","xpresspost","courier","fax","email"],"title":"How it is delivered","description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service"},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"The day it is delivered","description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026."},"emailConsentInWriting":{"default":false,"title":"Written consent to email service","description":"Only for email: the person agreed in writing to receive documents by email.","type":"boolean"}},"required":["method","date"]}},"required":["kind"],"title":"Was there written notice?"},"exemption":{"default":"unknown","title":"Newer unit","description":"new_building: no part of the building (or of the addition the unit is in) was lived in before November 16, 2018. new_unit_in_house: a self-contained unit created in a house after November 15, 2018 that meets s. 6.1(3). none: neither. unknown: not sure.","type":"string","enum":["none","new_building","new_unit_in_house","unknown"]},"tenancyAgreementOnOrBefore20181115":{"default":false,"title":"Tenancy agreement made on or before November 15, 2018","description":"Only matters for a newer unit: that tenancy keeps the guideline.","type":"boolean"},"basis":{"default":"none","title":"Any basis for going above the guideline?","description":"none. ltb_order: an LTB order allowing an above-guideline increase. agreement_s121: a signed agreement for a capital expenditure or new service. added_service_s123: an agreement to add parking or another prescribed service.","type":"string","enum":["none","ltb_order","agreement_s121","added_service_s123"]}},"required":["currentRent","newRent","effectiveDate","tenancyStartDate","notice"],"title":"Rent increase"}}},"examples":{"example1":{"summary":"2027 increase on an N1, handed over in time","value":{"input":{"currentRent":1800,"newRent":1834.2,"effectiveDate":"2027-02-01","tenancyStartDate":"2024-02-01","lastIncreaseDate":"2026-02-01","notice":{"kind":"ltb_form","service":{"method":"hand","date":"2026-10-15","emailConsentInWriting":false}},"exemption":"none","tenancyAgreementOnOrBefore20181115":false,"basis":"none"}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"lawful":{"type":"string","enum":["yes","no","depends"]},"increaseCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"increasePercent":{"type":"number"},"twelveMonth":{"type":"object","properties":{"ok":{"type":["boolean","null"]},"detail":{"type":"string"},"earliestDate":{"type":"string"}},"required":["ok","detail","earliestDate"]},"notice":{"type":"object","properties":{"ok":{"type":["boolean","null"]},"detail":{"type":"string"},"givenOn":{"type":["string","null"]},"latestNoticeDate":{"type":"string"}},"required":["ok","detail","givenOn","latestNoticeDate"]},"guideline":{"type":"object","properties":{"ok":{"type":["boolean","null"]},"detail":{"type":"string"},"applies":{"type":["boolean","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":["number","null"]},"maxRentCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["ok","detail","applies","year","percent","maxRentCents"]},"reasons":{"type":"array","items":{"type":"string"}},"challengeBy":{"type":"string"},"tenantCanDo":{"type":"array","items":{"type":"string"}},"landlordCanDo":{"type":"array","items":{"type":"string"}}},"required":["lawful","increaseCents","increasePercent","twelveMonth","notice","guideline","reasons","challengeBy","tenantCanDo","landlordCanDo"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.rent_increase_check","version":1,"title":"Is this rent increase lawful?"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"lawful":"yes","increaseCents":3420,"increasePercent":1.9,"twelveMonth":{"ok":true,"detail":"At least 12 months must pass since the last increase (February 1, 2026): the earliest date is February 1, 2027.","earliestDate":"2027-02-01"},"notice":{"ok":true,"detail":"Given on October 15, 2026, at least 90 days before February 1, 2027.","givenOn":"2026-10-15","latestNoticeDate":"2026-11-03"},"guideline":{"ok":true,"detail":"The guideline for 2027 is 1.9%: the new rent can be at most CAD 1,834.20. The unit is not a newer unit, so the guideline applies.","applies":true,"year":2027,"percent":1.9,"maxRentCents":183420},"reasons":[],"challengeBy":"2028-02-01","tenantCanDo":["The increase meets the rules on these facts. A tenant who disagrees can still ask the LTB to decide."],"landlordCanDo":["Keep a copy of the notice and a record of how and when it was given."]},"headline":{"label":"On these facts","value":"Lawful"},"summary":"This increase is lawful on these facts. It takes effect on February 1, 2027. The rent goes from CAD 1,800 to CAD 1,834.20, up 1.9%.","steps":[{"label":"12-month rule","value":"Met","detail":"At least 12 months must pass since the last increase (February 1, 2026): the earliest date is February 1, 2027.","cites":[{"sourceId":"on/rta-2006/s-119","label":"Residential Tenancies Act, 2006, s. 119","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/la-2006/s-89","label":"Legislation Act, 2006, s. 89(6)","url":"https://www.ontario.ca/laws/statute/06l21"}]},{"label":"Written notice, 90 days","value":"Met","detail":"Given on October 15, 2026, at least 90 days before February 1, 2027.","cites":[{"sourceId":"on/rta-2006/s-116","label":"Residential Tenancies Act, 2006, s. 116","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/form/n1","label":"Form N1, Notice of Rent Increase (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Notices%20of%20Rent%20Increase%20%26%20Instructions/N1.pdf"},{"sourceId":"ltb/form/n2","label":"Form N2, Notice of Rent Increase (Unit Partially Exempt) (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Notices%20of%20Rent%20Increase%20%26%20Instructions/N2.pdf"},{"sourceId":"ltb/form/n3","label":"Form N3, Notice to Increase the Rent and/or Charges for Care Services and Meals (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Notices%20of%20Rent%20Increase%20%26%20Instructions/N3.pdf"},{"sourceId":"on/rta-2006/s-191","label":"Residential Tenancies Act, 2006, s. 191","url":"https://www.ontario.ca/laws/statute/06r17"}]},{"label":"Guideline","value":"1.9% for 2027","detail":"The guideline for 2027 is 1.9%: the new rent can be at most CAD 1,834.20. The unit is not a newer unit, so the guideline applies.","cites":[{"sourceId":"on/rta-2006/s-120","label":"Residential Tenancies Act, 2006, s. 120(1)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/mmah/residential-rent-increases","label":"Government of Ontario, Residential rent increases (Ministry of Municipal Affairs and Housing)","url":"https://www.ontario.ca/page/residential-rent-increases"},{"sourceId":"on/rta-2006/s-6-1","label":"Residential Tenancies Act, 2006, s. 6.1","url":"https://www.ontario.ca/laws/statute/06r17"}]},{"label":"Remedies","detail":"Money collected illegally can be claimed back within one year; an increase not challenged within a year of being first charged is deemed lawful; a void increase paid for 12 months in a row is deemed valid.","cites":[{"sourceId":"on/rta-2006/s-135","label":"Residential Tenancies Act, 2006, s. 135(1), (4)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/rta-2006/s-136","label":"Residential Tenancies Act, 2006, s. 136(2)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/rta-2006/s-135-1","label":"Residential Tenancies Act, 2006, s. 135.1","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/form/t1","label":"Form T1, Tenant Application for a Rebate (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Tenant%20Applications%20%26%20Instructions/T1.pdf"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/rent-increase/guideline","title":"Rent increase: the guideline and newer units","status":"unverified"},{"id":"ltb/rent-increase/twelve-month","title":"Rent increase: at least 12 months apart","status":"unverified"},{"id":"ltb/rent-increase/notice","title":"Rent increase: 90 days’ written notice on the LTB’s form","status":"unverified"},{"id":"ltb/rent-increase/remedies","title":"Rent increase: what a tenant can do and the one-year limits","status":"unverified"},{"id":"ltb/service/deemed-given","title":"When a notice counts as given","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.rent_increase_check","version":1,"kind":"check","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/ltb.rent_increase_check/run":{"get":{"operationId":"get_ltb_rent_increase_check","tags":["ltb"],"summary":"Is this rent increase lawful? (from a URL)","description":"Use this when a tenant or landlord in Ontario wants to know whether a rent increase is lawful: the guideline, the 12-month rule, the written notice and the exemption for newer units. Ontario residential tenancies only. Do not use it for commercial rent, or for rent that is owing (ltb_n4_prepare). Next: ltb_tenant_path when a tenant wants money back; handoff_create when the boundary is needs_lawyer.\n\nChecks an increase against the guideline, the 12-month rule, the 90 days’ written notice and the exemption for newer units, then says what each side can do.\n\nFor tenants and landlords alike. Ask for the current and new rent, when the increase takes effect, when the tenancy began and when the rent last went up, whether a notice was given on the LTB’s form and how and when it was delivered, whether the unit is in a building first lived in after November 15, 2018, and whether there is an LTB order or signed agreement for more than the guideline.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `ltb/rent-increase/guideline` (unverified), `ltb/rent-increase/twelve-month` (unverified), `ltb/rent-increase/notice` (unverified), `ltb/rent-increase/remedies` (unverified), `ltb/service/deemed-given` (unverified). Availability: unverified.\nMCP tool: `ltb_rent_increase_check`. Markdown: https://mithril.law/ltb/rent-increase-check.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/ltb.rent_increase_check/run?currentRent=1800&newRent=1834.2&effectiveDate=2027-02-01&tenancyStartDate=2024-02-01&lastIncreaseDate=2026-02-01&notice.kind=ltb_form&notice.service.method=hand&notice.service.date=2026-10-15&notice.service.emailConsentInWriting=false&exemption=none&tenancyAgreementOnOrBefore20181115=false&basis=none","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"currentRent","in":"query","required":true,"description":"The rent now, per rental period, in dollars.","schema":{"type":"number","minimum":0,"maximum":1000000,"title":"Current rent","description":"The rent now, per rental period, in dollars."}},{"name":"newRent","in":"query","required":true,"description":"The rent after the increase, per rental period, in dollars.","schema":{"type":"number","minimum":0,"maximum":1000000,"title":"New rent","description":"The rent after the increase, per rental period, in dollars."}},{"name":"effectiveDate","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Date the increase takes effect"}},{"name":"tenancyStartDate","in":"query","required":true,"description":"The day the unit was first rented to this tenant.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Date the tenancy began","description":"The day the unit was first rented to this tenant."}},{"name":"lastIncreaseDate","in":"query","required":false,"description":"When this tenant’s rent last went up. Leave empty if it never has.","schema":{"title":"Date of the last increase","description":"When this tenant’s rent last went up. Leave empty if it never has.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"notice.kind","in":"query","required":true,"description":"ltb_form: a notice on the LTB’s form (N1, N2 or N3). other_writing: a letter, email or text not on the LTB’s form. none: no written notice.","schema":{"type":"string","enum":["ltb_form","other_writing","none"],"title":"The notice","description":"ltb_form: a notice on the LTB’s form (N1, N2 or N3). other_writing: a letter, email or text not on the LTB’s form. none: no written notice."}},{"name":"notice.service.method","in":"query","required":false,"description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service","schema":{"type":"string","enum":["hand","adult_in_unit","mailbox","under_door","mail","xpresspost","courier","fax","email"],"title":"How it is delivered","description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service"}},{"name":"notice.service.date","in":"query","required":false,"description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"The day it is delivered","description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026."}},{"name":"notice.service.emailConsentInWriting","in":"query","required":false,"description":"Only for email: the person agreed in writing to receive documents by email.","schema":{"default":false,"title":"Written consent to email service","description":"Only for email: the person agreed in writing to receive documents by email.","type":"boolean"}},{"name":"exemption","in":"query","required":false,"description":"new_building: no part of the building (or of the addition the unit is in) was lived in before November 16, 2018. new_unit_in_house: a self-contained unit created in a house after November 15, 2018 that meets s. 6.1(3). none: neither. unknown: not sure.","schema":{"default":"unknown","title":"Newer unit","description":"new_building: no part of the building (or of the addition the unit is in) was lived in before November 16, 2018. new_unit_in_house: a self-contained unit created in a house after November 15, 2018 that meets s. 6.1(3). none: neither. unknown: not sure.","type":"string","enum":["none","new_building","new_unit_in_house","unknown"]}},{"name":"tenancyAgreementOnOrBefore20181115","in":"query","required":false,"description":"Only matters for a newer unit: that tenancy keeps the guideline.","schema":{"default":false,"title":"Tenancy agreement made on or before November 15, 2018","description":"Only matters for a newer unit: that tenancy keeps the guideline.","type":"boolean"}},{"name":"basis","in":"query","required":false,"description":"none. ltb_order: an LTB order allowing an above-guideline increase. agreement_s121: a signed agreement for a capital expenditure or new service. added_service_s123: an agreement to add parking or another prescribed service.","schema":{"default":"none","title":"Any basis for going above the guideline?","description":"none. ltb_order: an LTB order allowing an above-guideline increase. agreement_s121: a signed agreement for a capital expenditure or new service. added_service_s123: an agreement to add parking or another prescribed service.","type":"string","enum":["none","ltb_order","agreement_s121","added_service_s123"]}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"lawful":{"type":"string","enum":["yes","no","depends"]},"increaseCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"increasePercent":{"type":"number"},"twelveMonth":{"type":"object","properties":{"ok":{"type":["boolean","null"]},"detail":{"type":"string"},"earliestDate":{"type":"string"}},"required":["ok","detail","earliestDate"]},"notice":{"type":"object","properties":{"ok":{"type":["boolean","null"]},"detail":{"type":"string"},"givenOn":{"type":["string","null"]},"latestNoticeDate":{"type":"string"}},"required":["ok","detail","givenOn","latestNoticeDate"]},"guideline":{"type":"object","properties":{"ok":{"type":["boolean","null"]},"detail":{"type":"string"},"applies":{"type":["boolean","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":["number","null"]},"maxRentCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["ok","detail","applies","year","percent","maxRentCents"]},"reasons":{"type":"array","items":{"type":"string"}},"challengeBy":{"type":"string"},"tenantCanDo":{"type":"array","items":{"type":"string"}},"landlordCanDo":{"type":"array","items":{"type":"string"}}},"required":["lawful","increaseCents","increasePercent","twelveMonth","notice","guideline","reasons","challengeBy","tenantCanDo","landlordCanDo"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.rent_increase_check","version":1,"title":"Is this rent increase lawful?"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"lawful":"yes","increaseCents":3420,"increasePercent":1.9,"twelveMonth":{"ok":true,"detail":"At least 12 months must pass since the last increase (February 1, 2026): the earliest date is February 1, 2027.","earliestDate":"2027-02-01"},"notice":{"ok":true,"detail":"Given on October 15, 2026, at least 90 days before February 1, 2027.","givenOn":"2026-10-15","latestNoticeDate":"2026-11-03"},"guideline":{"ok":true,"detail":"The guideline for 2027 is 1.9%: the new rent can be at most CAD 1,834.20. The unit is not a newer unit, so the guideline applies.","applies":true,"year":2027,"percent":1.9,"maxRentCents":183420},"reasons":[],"challengeBy":"2028-02-01","tenantCanDo":["The increase meets the rules on these facts. A tenant who disagrees can still ask the LTB to decide."],"landlordCanDo":["Keep a copy of the notice and a record of how and when it was given."]},"headline":{"label":"On these facts","value":"Lawful"},"summary":"This increase is lawful on these facts. It takes effect on February 1, 2027. The rent goes from CAD 1,800 to CAD 1,834.20, up 1.9%.","steps":[{"label":"12-month rule","value":"Met","detail":"At least 12 months must pass since the last increase (February 1, 2026): the earliest date is February 1, 2027.","cites":[{"sourceId":"on/rta-2006/s-119","label":"Residential Tenancies Act, 2006, s. 119","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/la-2006/s-89","label":"Legislation Act, 2006, s. 89(6)","url":"https://www.ontario.ca/laws/statute/06l21"}]},{"label":"Written notice, 90 days","value":"Met","detail":"Given on October 15, 2026, at least 90 days before February 1, 2027.","cites":[{"sourceId":"on/rta-2006/s-116","label":"Residential Tenancies Act, 2006, s. 116","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/form/n1","label":"Form N1, Notice of Rent Increase (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Notices%20of%20Rent%20Increase%20%26%20Instructions/N1.pdf"},{"sourceId":"ltb/form/n2","label":"Form N2, Notice of Rent Increase (Unit Partially Exempt) (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Notices%20of%20Rent%20Increase%20%26%20Instructions/N2.pdf"},{"sourceId":"ltb/form/n3","label":"Form N3, Notice to Increase the Rent and/or Charges for Care Services and Meals (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Notices%20of%20Rent%20Increase%20%26%20Instructions/N3.pdf"},{"sourceId":"on/rta-2006/s-191","label":"Residential Tenancies Act, 2006, s. 191","url":"https://www.ontario.ca/laws/statute/06r17"}]},{"label":"Guideline","value":"1.9% for 2027","detail":"The guideline for 2027 is 1.9%: the new rent can be at most CAD 1,834.20. The unit is not a newer unit, so the guideline applies.","cites":[{"sourceId":"on/rta-2006/s-120","label":"Residential Tenancies Act, 2006, s. 120(1)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/mmah/residential-rent-increases","label":"Government of Ontario, Residential rent increases (Ministry of Municipal Affairs and Housing)","url":"https://www.ontario.ca/page/residential-rent-increases"},{"sourceId":"on/rta-2006/s-6-1","label":"Residential Tenancies Act, 2006, s. 6.1","url":"https://www.ontario.ca/laws/statute/06r17"}]},{"label":"Remedies","detail":"Money collected illegally can be claimed back within one year; an increase not challenged within a year of being first charged is deemed lawful; a void increase paid for 12 months in a row is deemed valid.","cites":[{"sourceId":"on/rta-2006/s-135","label":"Residential Tenancies Act, 2006, s. 135(1), (4)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/rta-2006/s-136","label":"Residential Tenancies Act, 2006, s. 136(2)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/rta-2006/s-135-1","label":"Residential Tenancies Act, 2006, s. 135.1","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/form/t1","label":"Form T1, Tenant Application for a Rebate (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Tenant%20Applications%20%26%20Instructions/T1.pdf"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/rent-increase/guideline","title":"Rent increase: the guideline and newer units","status":"unverified"},{"id":"ltb/rent-increase/twelve-month","title":"Rent increase: at least 12 months apart","status":"unverified"},{"id":"ltb/rent-increase/notice","title":"Rent increase: 90 days’ written notice on the LTB’s form","status":"unverified"},{"id":"ltb/rent-increase/remedies","title":"Rent increase: what a tenant can do and the one-year limits","status":"unverified"},{"id":"ltb/service/deemed-given","title":"When a notice counts as given","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.rent_increase_check","version":1,"kind":"check","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/ltb.tenant_path/runs":{"post":{"operationId":"run_ltb_tenant_path","tags":["ltb"],"summary":"Which LTB application fits a tenant’s problem","description":"Use this when an Ontario tenant or former tenant has a problem with a landlord (repairs, money paid, an N12 or N13 move-out) and needs to know which application fits. Ontario residential tenancies only: applications T1, T2, T5 and T6. Do not use it for landlords (ltb_termination_date or ltb_n4_prepare) or for commercial leases. Next: the tenant files from their own Tribunals Ontario account; handoff_create for representation.\n\nWhich application fits a tenant’s problem (T1, T2, T5 or T6), the deadline for each, the fee, what to gather and the facts the form asks for.\n\nFor tenants and former tenants. Ask what happened and when (for money, when it was paid; for a repair, when it was fixed or that it isn’t; for an N12 or N13, when they moved out), whether they still live there, and how much they want the LTB to order. Names and the address are optional and only fill the form data.\n\nPrice: Free (sku `ltb.tenant_path`, Jonathan Kleiman (software and consulting)). No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `ltb/tenant/which-application` (unverified), `ltb/tenant/time-limits` (unverified), `ltb/tenant/money` (unverified). Availability: unverified.\nMCP tool: `ltb_tenant_path`. Markdown: https://mithril.law/ltb/tenant-path.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"issues":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["repairs_maintenance","vital_service_withheld","reasonable_enjoyment","harassment","locks_changed","illegal_entry","illegal_rent_or_charge","deposit_not_returned","compensation_not_paid","bad_faith_notice","first_refusal_denied"],"title":"What happened","description":"repairs_maintenance: The landlord has not repaired or maintained the unit or building; vital_service_withheld: Heat, water, electricity, gas or another vital service was cut off or interfered with; reasonable_enjoyment: The landlord seriously interfered with the use and enjoyment of the unit; harassment: The landlord harassed, threatened, coerced, obstructed or interfered with me; locks_changed: The locks were changed without giving me a key; illegal_entry: The landlord entered the unit illegally; illegal_rent_or_charge: I paid rent above what the law allows, or an illegal charge; deposit_not_returned: My last month’s rent deposit was not used for the last month or returned; compensation_not_paid: I got an N12 or N13 and was not paid the compensation owed; bad_faith_notice: I moved out after an N12 or N13 and the landlord did not do what the notice said; first_refusal_denied: I asked in writing to move back in after renovations and the landlord did not let me"},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"When","description":"The date it happened. For money: the date it was paid or kept. For a repair problem that has been fixed: the date it was fixed; if not fixed, when it started. For a notice or refusal after moving out: the date you moved out."},"ongoing":{"default":false,"title":"Still happening","description":"The problem is not fixed or the conduct continues.","type":"boolean"},"description":{"title":"What happened, in your words","type":"string","maxLength":2000}},"required":["kind","date"],"title":"Issue"},"title":"What is the problem?","description":"Add each one that applies, with its date."},"stillLivingThere":{"type":"boolean","title":"Do you still live there?"},"movedOutOn":{"title":"Date you moved out","description":"If you no longer live there.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"renovationsCompletedOn":{"title":"Date the renovations were finished","description":"Only if you asked to move back in after an N13 for repairs or renovations.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"firstToldLandlordOn":{"title":"Date you first told the landlord","description":"For repair problems: when you first told the landlord about it.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"compensationSought":{"title":"Money you want the LTB to order","description":"The total, in dollars: abatement, costs, rent difference, compensation.","type":"number","minimum":0,"maximum":10000000},"rent":{"title":"Your rent","type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":1000000,"title":"Rent per period","description":"The lawful rent for one rental period, in dollars, including any fixed amount paid to the landlord for parking or other services."},"period":{"default":"monthly","title":"Rental period","description":"How often rent is due.","type":"string","enum":["monthly","weekly","daily","yearly"]}},"required":["amount"]},"tenants":{"default":[],"title":"Tenants applying","description":"Optional: to prepare the form’s data.","maxItems":10,"type":"array","items":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"First name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Last name"}},"required":["firstName","lastName"],"title":"Tenant"}},"landlord":{"title":"Landlord","description":"Optional: to prepare the form’s data.","oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"person","title":"A person"},"firstName":{"type":"string","minLength":1,"maxLength":80,"title":"First name"},"lastName":{"type":"string","minLength":1,"maxLength":80,"title":"Last name"}},"required":["type","firstName","lastName"],"title":"A person"},{"type":"object","properties":{"type":{"type":"string","const":"company","title":"A company"},"companyName":{"type":"string","minLength":1,"maxLength":160,"title":"Company name","description":"The landlord’s legal name."}},"required":["type","companyName"],"title":"A company"}]},"rentalUnit":{"title":"Rental unit address","description":"Optional: to prepare the form’s data.","type":"object","properties":{"unit":{"title":"Unit, apartment or suite","description":"Leave empty if there is none.","type":"string","maxLength":20},"streetNumber":{"type":"string","minLength":1,"maxLength":20,"title":"Street number"},"streetName":{"type":"string","minLength":1,"maxLength":120,"title":"Street name","description":"For example: King Street West."},"municipality":{"type":"string","minLength":1,"maxLength":80,"title":"City or town"},"postalCode":{"type":"string","pattern":"^[KLMNP]\\d[ABCEGHJ-NPRSTV-Z] ?\\d[ABCEGHJ-NPRSTV-Z]\\d$","title":"Postal code"}},"required":["streetNumber","streetName","municipality","postalCode"]},"today":{"title":"Today’s date","description":"Leave empty to use today.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["issues","stillLivingThere"],"title":"Tenant’s situation"}}},"examples":{"example1":{"summary":"No heat since October, told the landlord in writing","value":{"input":{"issues":[{"kind":"repairs_maintenance","date":"2026-10-01","ongoing":true,"description":"The heating has not worked since October 1."}],"stillLivingThere":true,"firstToldLandlordOn":"2026-10-02","compensationSought":900,"rent":{"amount":1800,"period":"monthly"},"tenants":[]}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"applications":{"type":"array","items":{"type":"object","properties":{"form":{"type":"string","enum":["T1","T2","T5","T6"]},"title":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["repairs_maintenance","vital_service_withheld","reasonable_enjoyment","harassment","locks_changed","illegal_entry","illegal_rent_or_charge","deposit_not_returned","compensation_not_paid","bad_faith_notice","first_refusal_denied"]},"label":{"type":"string"},"deadline":{"type":["string","null"]},"deadlineBasis":{"type":"string"},"inTime":{"type":["boolean","null"]}},"required":["kind","label","deadline","deadlineBasis","inTime"]}},"feeCents":{"type":"object","properties":{"portal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"other":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["portal","other"]},"evidence":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"string"}}},"required":["form","title","issues","feeCents","evidence","problems"]}},"fileTogether":{"type":"array","items":{"type":"string"}},"compensationSoughtCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"overLtbLimit":{"type":"boolean"},"significantClaim":{"type":"boolean"},"formData":{"type":"object","properties":{"tenants":{"type":"array","items":{"type":"string"}},"landlord":{"type":["string","null"]},"rentalUnit":{"type":["string","null"]},"stillLivingThere":{"type":"boolean"},"movedOutOn":{"type":["string","null"]},"firstToldLandlordOn":{"type":["string","null"]},"rentCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"rentPeriod":{"type":["string","null"]},"issues":{"type":"array","items":{"type":"object","properties":{"form":{"type":"string"},"kind":{"type":"string"},"date":{"type":"string"},"ongoing":{"type":"boolean"},"description":{"type":["string","null"]}},"required":["form","kind","date","ongoing","description"]}}},"required":["tenants","landlord","rentalUnit","stillLivingThere","movedOutOn","firstToldLandlordOn","rentCents","rentPeriod","issues"]}},"required":["applications","fileTogether","compensationSoughtCents","overLtbLimit","significantClaim","formData"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.tenant_path","version":1,"title":"Which LTB application fits a tenant’s problem"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"applications":[{"form":"T6","title":"Tenant Application about Maintenance","issues":[{"kind":"repairs_maintenance","label":"The landlord has not repaired or maintained the unit or building","deadline":null,"deadlineBasis":"The problem is not fixed. Once it is, apply within one year after the date it was fixed.","inTime":null}],"feeCents":{"portal":4800,"other":5300},"evidence":["The date you first told the landlord about each problem, and copies of what you sent","When each problem started and, if fixed, when and by whom","Receipts for anything you paid for because of the problem","Documents, photos, audio or video recordings, emails, text messages and social media posts (printed) that show what happened","Give a copy of everything you will rely on to the landlord and the LTB at least 7 days before the hearing"],"problems":[]}],"fileTogether":[],"compensationSoughtCents":90000,"overLtbLimit":false,"significantClaim":false,"formData":{"tenants":[],"landlord":null,"rentalUnit":null,"stillLivingThere":true,"movedOutOn":null,"firstToldLandlordOn":"2026-10-02","rentCents":180000,"rentPeriod":"monthly","issues":[{"form":"T6","kind":"repairs_maintenance","date":"2026-10-01","ongoing":true,"description":"The heating has not worked since October 1."}]}},"summary":"T6 (Tenant Application about Maintenance). T6: no deadline running yet.","steps":[{"label":"T6: The landlord has not repaired or maintained the unit or building","value":"No deadline running yet","detail":"The problem is not fixed. Once it is, apply within one year after the date it was fixed.","cites":[{"sourceId":"on/rta-2006/s-29","label":"Residential Tenancies Act, 2006, s. 29(1), para. 1","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/rta-2006/s-20","label":"Residential Tenancies Act, 2006, s. 20(1)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/form/t6","label":"Form T6, Tenant Application about Maintenance (v. 01/04/2022)","url":"https://tribunalsontario.ca/documents/ltb/Tenant%20Applications%20%26%20Instructions/T6.pdf"},{"sourceId":"on/rta-2006/s-29","label":"Residential Tenancies Act, 2006, s. 29(2)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/form/t6-instructions","label":"Instructions for Form T6 (August 2023)","url":"https://tribunalsontario.ca/documents/ltb/Tenant%20Applications%20%26%20Instructions/T6_Instructions.html"}]},{"label":"Filing fee","value":"CAD 48 through the Tribunals Ontario Portal, CAD 53 otherwise","detail":"Per application. A fee waiver is available if you meet the LTB’s financial criteria.","cites":[{"sourceId":"ltb/fees","label":"Tribunals Ontario, Landlord and Tenant Board: Forms, filing and fees","url":"https://tribunalsontario.ca/ltb/forms-filing-and-fees/"}]},{"label":"Amount sought","value":"CAD 900","detail":"Within the CAD 50,000 the LTB can order.","cites":[{"sourceId":"on/rta-2006/s-207","label":"Residential Tenancies Act, 2006, s. 207(1)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/reg-626-00/s-1","label":"O. Reg. 626/00 (Small Claims Court Jurisdiction and Appeal Limit), made under the Courts of Justice Act, s. 1(1)","url":"https://www.ontario.ca/laws/regulation/000626"}]},{"label":"Evidence","detail":"What counts as evidence and when to share it.","cites":[{"sourceId":"ltb/pd/evidence","label":"Landlord and Tenant Board, Practice Direction on Evidence","url":"https://tribunalsontario.ca/documents/ltb/Practice%20Directions/Practice%20Direction%20on%20Evidence.html"},{"sourceId":"on/rta-2006/s-30","label":"Residential Tenancies Act, 2006, s. 30(2)","url":"https://www.ontario.ca/laws/statute/06r17"}]}],"boundary":{"kind":"needs_person","reason":"The tenant files the application from their own Tribunals Ontario Portal account (or by mail or courier) and pays the fee.","actions":[{"id":"file_yourself","label":"File T6 yourself","href":"https://tribunalsontario.ca/ltb/forms-filing-and-fees/"},{"id":"handoff","label":"Have Mithril Law take it on","sku":"ltb.representation_tenant"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/tenant/which-application","title":"Tenant applications: which form fits","status":"unverified"},{"id":"ltb/tenant/time-limits","title":"Tenant applications: time limits","status":"unverified"},{"id":"ltb/tenant/money","title":"Tenant applications: how much the LTB can order, and when a lawyer is offered","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.tenant_path","version":1,"kind":"guide","audience":["person","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":"ltb.tenant_path","title":"Tenant applications","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"Which application fits, and a prepared T-form."},"personalData":true}}},"/operations/ltb.termination_date/runs":{"post":{"operationId":"run_ltb_termination_date","tags":["ltb"],"summary":"Termination date for a notice","description":"Use this when a landlord is writing an N4, N5, N8, N12 or N13, or a tenant has received one, and needs the earliest valid termination date or when the landlord can apply. Ontario residential tenancies under the Residential Tenancies Act, 2006. Do not use it for commercial leases, for tenancies outside Ontario, or to fill in the notice (ltb_n4_prepare fills an N4). Next: ltb_n4_prepare to fill an N4; ltb_tenant_path for a tenant's applications.\n\nThe earliest valid termination date for an N4, N5, N8, N12 or N13, when the notice counts as given, and when the landlord can apply.\n\nUse for landlords writing a notice and for tenants checking one they received. Ask which notice, how and on what date it was (or will be) delivered, and, for N8, N12, N13 or an N4 given before September 21, 2026, how the rental periods run. To check an existing notice, pass the termination date printed on it.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `ltb/service/deemed-given` (unverified), `ltb/n4/termination-date` (unverified), `ltb/n5/termination-date` (unverified), `ltb/end-of-period/termination-date` (unverified), `ltb/n12/compensation` (unverified). Availability: unverified.\nMCP tool: `ltb_termination_date`. Markdown: https://mithril.law/ltb/termination-date.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"notice":{"type":"string","enum":["N4","N5","N8","N12","N13"],"title":"Which notice?","description":"N4: non-payment of rent. N5: damage, interference or too many occupants (first notice). N8: end of term (persistent late payment and other s. 58 grounds). N12: landlord, family or purchaser needs the unit. N13: demolition, conversion or extensive repairs."},"service":{"type":"object","properties":{"method":{"type":"string","enum":["hand","adult_in_unit","mailbox","under_door","mail","xpresspost","courier","fax","email"],"title":"How it is delivered","description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service"},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"The day it is delivered","description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026."},"emailConsentInWriting":{"default":false,"title":"Written consent to email service","description":"Only for email: the person agreed in writing to receive documents by email.","type":"boolean"}},"required":["method","date"],"title":"The delivery"},"tenancy":{"title":"How the rental periods run","description":"Needed for N8, N12 and N13, and for an N4 given before September 21, 2026.","oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"daily","title":"Daily","description":"Rent is paid by the day."}},"required":["kind"],"title":"Daily tenancy"},{"type":"object","properties":{"kind":{"type":"string","const":"weekly","title":"Weekly","description":"Rent is paid by the week."},"rentDueWeekday":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],"title":"Day rent is due","description":"The weekday each weekly rental period starts."}},"required":["kind","rentDueWeekday"],"title":"Weekly tenancy"},{"type":"object","properties":{"kind":{"type":"string","const":"monthly","title":"Monthly","description":"Rent is paid by the month."},"rentDueDay":{"default":1,"title":"Day of the month rent is due","description":"The day each monthly rental period starts, 1 to 28. Usually 1.","type":"integer","minimum":1,"maximum":28}},"required":["kind"],"title":"Monthly tenancy"},{"type":"object","properties":{"kind":{"type":"string","const":"yearly","title":"Yearly","description":"Rent is paid by the year."},"periodStartDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Start of a yearly period","description":"Any date on which a yearly rental period started, for example the tenancy’s start date."}},"required":["kind","periodStartDate"],"title":"Yearly tenancy"},{"type":"object","properties":{"kind":{"type":"string","const":"fixed_term","title":"Fixed term","description":"A lease for a set term, for example one year, that has not yet ended."},"termEndDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Last day of the term","description":"The date the fixed term ends."},"rentPaid":{"default":"monthly","title":"How often rent is paid","description":"daily, weekly, monthly or yearly. Only matters for an N4 given before September 21, 2026.","type":"string","enum":["daily","weekly","monthly","yearly"]}},"required":["kind","termEndDate"],"title":"Fixed-term tenancy"}]},"n12Reason":{"title":"For an N12: who needs the unit?","description":"landlord_or_family: the landlord, a family member or a caregiver will live there (s. 48). purchaser: the buyer needs it (s. 49).","type":"string","enum":["landlord_or_family","purchaser"]},"terminationDateOnNotice":{"title":"Checking a notice you have?","description":"Enter the termination date printed on it, for example December 31, 2026, and the answer checks it. Leave it empty otherwise.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["notice","service"],"title":"Termination date"}}},"examples":{"example1":{"summary":"N4 handed over today","value":{"input":{"notice":"N4","service":{"method":"hand","date":"2026-09-23","emailConsentInWriting":false}}}},"example2":{"summary":"N12 by mail, monthly tenancy","value":{"input":{"notice":"N12","service":{"method":"mail","date":"2026-09-23","emailConsentInWriting":false},"tenancy":{"kind":"monthly","rentDueDay":1},"n12Reason":"landlord_or_family"}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"notice":{"type":"string","enum":["N4","N5","N8","N12","N13"]},"noticeTitle":{"type":"string"},"deliveredOn":{"type":"string"},"givenOn":{"type":"string"},"minimumDays":{"type":"number"},"mustEndOnPeriodEnd":{"type":"boolean"},"earliestTerminationDate":{"type":"string"},"noCompensationTerminationDate":{"type":["string","null"]},"remedyPeriodEnds":{"type":["string","null"]},"applicationForm":{"type":"string","enum":["L1","L2"]},"firstDayToApply":{"type":"string"},"applyNoLaterThan":{"type":["string","null"]},"check":{"anyOf":[{"type":"object","properties":{"terminationDateOnNotice":{"type":"string"},"valid":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["terminationDateOnNotice","valid","reasons"]},{"type":"null"}]}},"required":["notice","noticeTitle","deliveredOn","givenOn","minimumDays","mustEndOnPeriodEnd","earliestTerminationDate","noCompensationTerminationDate","remedyPeriodEnds","applicationForm","firstDayToApply","applyNoLaterThan","check"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.termination_date","version":1,"title":"Termination date for a notice"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"notice":"N4","noticeTitle":"Notice to End your Tenancy Early for Non-payment of Rent","deliveredOn":"2026-09-23","givenOn":"2026-09-23","minimumDays":7,"mustEndOnPeriodEnd":false,"earliestTerminationDate":"2026-09-30","noCompensationTerminationDate":null,"remedyPeriodEnds":null,"applicationForm":"L1","firstDayToApply":"2026-10-01","applyNoLaterThan":null,"check":null},"summary":"Given September 23, 2026, the N4’s earliest termination date is September 30, 2026. If it is still unpaid and the tenant is there, an L1 can be filed from October 1, 2026.","steps":[{"label":"Notice counts as given","value":"September 23, 2026","detail":"Handed to the person: given that day.","cites":[{"sourceId":"on/rta-2006/s-191","label":"Residential Tenancies Act, 2006, s. 191(1)(a)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/rules/r-3","label":"Landlord and Tenant Board Rules of Procedure, Rule 3.9","url":"https://tribunalsontario.ca/documents/ltb/Rules/LTB-Rules_of_Procedure.html"}]},{"label":"Notice period","value":"7 days","detail":"The termination date can be no earlier than the 7th day after the notice is given (notices given on or after September 21, 2026).","cites":[{"sourceId":"on/rta-2006/s-59","label":"Residential Tenancies Act, 2006, s. 59(1)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/fdbfa-2025/sched-12-s-4","label":"Fighting Delays, Building Faster Act, 2025, Sched. 12, s. 4","url":"https://www.ontario.ca/laws/statute/S25014"},{"sourceId":"ltb/update/2026-09-21","label":"Tribunals Ontario, LTB: Operational Update, Legislative Changes at the Landlord and Tenant Board, Effective: September 21, 2026","url":"https://tribunalsontario.ca/2026/09/21/ltb-operational-update-legislative-changes-at-the-landlord-and-tenant-board-effective-september-21-2026/"}]},{"label":"Earliest termination date","value":"September 30, 2026","detail":"Counting excludes the day the notice is given and includes the last day. The date may fall on a weekend or holiday.","cites":[{"sourceId":"ltb/rules/r-1-12","label":"Landlord and Tenant Board Rules of Procedure, Rule 1.13","url":"https://tribunalsontario.ca/documents/ltb/Rules/LTB-Rules_of_Procedure.html"},{"sourceId":"ltb/rules/r-1-12","label":"Landlord and Tenant Board Rules of Procedure, Rule 1.15","url":"https://tribunalsontario.ca/documents/ltb/Rules/LTB-Rules_of_Procedure.html"},{"sourceId":"on/rta-2006/s-193","label":"Residential Tenancies Act, 2006, s. 193","url":"https://www.ontario.ca/laws/statute/06r17"}]},{"label":"Earliest L1 filing","value":"October 1, 2026","detail":"The landlord may not apply before the day after the termination date in the N4, and only if the tenant has not paid and is still in the unit.","cites":[{"sourceId":"on/rta-2006/s-74","label":"Residential Tenancies Act, 2006, s. 74(1)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/rta-2006/s-59","label":"Residential Tenancies Act, 2006, s. 59(3)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/brochure/non-payment","label":"Landlord and Tenant Board, brochure: If a Tenant Does Not Pay Rent","url":"https://tribunalsontario.ca/documents/ltb/Brochures/If%20a%20Tenant%20Does%20Not%20Pay%20Rent.html"}]},{"label":"No filing deadline","detail":"The 30-day limit to apply does not apply to a notice for non-payment of rent.","cites":[{"sourceId":"on/rta-2006/s-69","label":"Residential Tenancies Act, 2006, s. 69(3)","url":"https://www.ontario.ca/laws/statute/06r17"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/service/deemed-given","title":"When a notice counts as given","status":"unverified"},{"id":"ltb/n4/termination-date","title":"N4: earliest termination date","status":"unverified"},{"id":"ltb/n5/termination-date","title":"N5: earliest termination date and remedy period","status":"unverified"},{"id":"ltb/end-of-period/termination-date","title":"N8, N12, N13: earliest termination date at the end of a period","status":"unverified"},{"id":"ltb/n12/compensation","title":"N12: compensation of one month’s rent","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.termination_date","version":1,"kind":"calculate","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/ltb.termination_date/run":{"get":{"operationId":"get_ltb_termination_date","tags":["ltb"],"summary":"Termination date for a notice (from a URL)","description":"Use this when a landlord is writing an N4, N5, N8, N12 or N13, or a tenant has received one, and needs the earliest valid termination date or when the landlord can apply. Ontario residential tenancies under the Residential Tenancies Act, 2006. Do not use it for commercial leases, for tenancies outside Ontario, or to fill in the notice (ltb_n4_prepare fills an N4). Next: ltb_n4_prepare to fill an N4; ltb_tenant_path for a tenant's applications.\n\nThe earliest valid termination date for an N4, N5, N8, N12 or N13, when the notice counts as given, and when the landlord can apply.\n\nUse for landlords writing a notice and for tenants checking one they received. Ask which notice, how and on what date it was (or will be) delivered, and, for N8, N12, N13 or an N4 given before September 21, 2026, how the rental periods run. To check an existing notice, pass the termination date printed on it.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `ltb/service/deemed-given` (unverified), `ltb/n4/termination-date` (unverified), `ltb/n5/termination-date` (unverified), `ltb/end-of-period/termination-date` (unverified), `ltb/n12/compensation` (unverified). Availability: unverified.\nMCP tool: `ltb_termination_date`. Markdown: https://mithril.law/ltb/termination-date.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/ltb.termination_date/run?notice=N4&service.method=hand&service.date=2026-09-23&service.emailConsentInWriting=false","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"notice","in":"query","required":true,"description":"N4: non-payment of rent. N5: damage, interference or too many occupants (first notice). N8: end of term (persistent late payment and other s. 58 grounds). N12: landlord, family or purchaser needs the unit. N13: demolition, conversion or extensive repairs.","schema":{"type":"string","enum":["N4","N5","N8","N12","N13"],"title":"Which notice?","description":"N4: non-payment of rent. N5: damage, interference or too many occupants (first notice). N8: end of term (persistent late payment and other s. 58 grounds). N12: landlord, family or purchaser needs the unit. N13: demolition, conversion or extensive repairs."}},{"name":"service.method","in":"query","required":true,"description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service","schema":{"type":"string","enum":["hand","adult_in_unit","mailbox","under_door","mail","xpresspost","courier","fax","email"],"title":"How it is delivered","description":"hand: Handed to the person; adult_in_unit: Handed to an adult in the rental unit; mailbox: Left in the mailbox (or where mail is usually delivered); under_door: Slid under the door or through the mail slot of the unit; mail: Mailed by Canada Post (regular or registered); xpresspost: Sent by Xpresspost; courier: Given to a courier; fax: Faxed; email: Emailed, with the person’s written consent to email service"}},{"name":"service.date","in":"query","required":true,"description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"The day it is delivered","description":"The day it is handed over, left, mailed, given to the courier, faxed or emailed, for example October 5, 2026."}},{"name":"service.emailConsentInWriting","in":"query","required":false,"description":"Only for email: the person agreed in writing to receive documents by email.","schema":{"default":false,"title":"Written consent to email service","description":"Only for email: the person agreed in writing to receive documents by email.","type":"boolean"}},{"name":"tenancy","in":"query","required":false,"description":"Needed for N8, N12 and N13, and for an N4 given before September 21, 2026.","schema":{"title":"How the rental periods run","description":"Needed for N8, N12 and N13, and for an N4 given before September 21, 2026.","oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"daily","title":"Daily","description":"Rent is paid by the day."}},"required":["kind"],"title":"Daily tenancy"},{"type":"object","properties":{"kind":{"type":"string","const":"weekly","title":"Weekly","description":"Rent is paid by the week."},"rentDueWeekday":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],"title":"Day rent is due","description":"The weekday each weekly rental period starts."}},"required":["kind","rentDueWeekday"],"title":"Weekly tenancy"},{"type":"object","properties":{"kind":{"type":"string","const":"monthly","title":"Monthly","description":"Rent is paid by the month."},"rentDueDay":{"default":1,"title":"Day of the month rent is due","description":"The day each monthly rental period starts, 1 to 28. Usually 1.","type":"integer","minimum":1,"maximum":28}},"required":["kind"],"title":"Monthly tenancy"},{"type":"object","properties":{"kind":{"type":"string","const":"yearly","title":"Yearly","description":"Rent is paid by the year."},"periodStartDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Start of a yearly period","description":"Any date on which a yearly rental period started, for example the tenancy’s start date."}},"required":["kind","periodStartDate"],"title":"Yearly tenancy"},{"type":"object","properties":{"kind":{"type":"string","const":"fixed_term","title":"Fixed term","description":"A lease for a set term, for example one year, that has not yet ended."},"termEndDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Last day of the term","description":"The date the fixed term ends."},"rentPaid":{"default":"monthly","title":"How often rent is paid","description":"daily, weekly, monthly or yearly. Only matters for an N4 given before September 21, 2026.","type":"string","enum":["daily","weekly","monthly","yearly"]}},"required":["kind","termEndDate"],"title":"Fixed-term tenancy"}]}},{"name":"n12Reason","in":"query","required":false,"description":"landlord_or_family: the landlord, a family member or a caregiver will live there (s. 48). purchaser: the buyer needs it (s. 49).","schema":{"title":"For an N12: who needs the unit?","description":"landlord_or_family: the landlord, a family member or a caregiver will live there (s. 48). purchaser: the buyer needs it (s. 49).","type":"string","enum":["landlord_or_family","purchaser"]}},{"name":"terminationDateOnNotice","in":"query","required":false,"description":"Enter the termination date printed on it, for example December 31, 2026, and the answer checks it. Leave it empty otherwise.","schema":{"title":"Checking a notice you have?","description":"Enter the termination date printed on it, for example December 31, 2026, and the answer checks it. Leave it empty otherwise.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"notice":{"type":"string","enum":["N4","N5","N8","N12","N13"]},"noticeTitle":{"type":"string"},"deliveredOn":{"type":"string"},"givenOn":{"type":"string"},"minimumDays":{"type":"number"},"mustEndOnPeriodEnd":{"type":"boolean"},"earliestTerminationDate":{"type":"string"},"noCompensationTerminationDate":{"type":["string","null"]},"remedyPeriodEnds":{"type":["string","null"]},"applicationForm":{"type":"string","enum":["L1","L2"]},"firstDayToApply":{"type":"string"},"applyNoLaterThan":{"type":["string","null"]},"check":{"anyOf":[{"type":"object","properties":{"terminationDateOnNotice":{"type":"string"},"valid":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["terminationDateOnNotice","valid","reasons"]},{"type":"null"}]}},"required":["notice","noticeTitle","deliveredOn","givenOn","minimumDays","mustEndOnPeriodEnd","earliestTerminationDate","noCompensationTerminationDate","remedyPeriodEnds","applicationForm","firstDayToApply","applyNoLaterThan","check"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"ltb.termination_date","version":1,"title":"Termination date for a notice"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"notice":"N4","noticeTitle":"Notice to End your Tenancy Early for Non-payment of Rent","deliveredOn":"2026-09-23","givenOn":"2026-09-23","minimumDays":7,"mustEndOnPeriodEnd":false,"earliestTerminationDate":"2026-09-30","noCompensationTerminationDate":null,"remedyPeriodEnds":null,"applicationForm":"L1","firstDayToApply":"2026-10-01","applyNoLaterThan":null,"check":null},"summary":"Given September 23, 2026, the N4’s earliest termination date is September 30, 2026. If it is still unpaid and the tenant is there, an L1 can be filed from October 1, 2026.","steps":[{"label":"Notice counts as given","value":"September 23, 2026","detail":"Handed to the person: given that day.","cites":[{"sourceId":"on/rta-2006/s-191","label":"Residential Tenancies Act, 2006, s. 191(1)(a)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/rules/r-3","label":"Landlord and Tenant Board Rules of Procedure, Rule 3.9","url":"https://tribunalsontario.ca/documents/ltb/Rules/LTB-Rules_of_Procedure.html"}]},{"label":"Notice period","value":"7 days","detail":"The termination date can be no earlier than the 7th day after the notice is given (notices given on or after September 21, 2026).","cites":[{"sourceId":"on/rta-2006/s-59","label":"Residential Tenancies Act, 2006, s. 59(1)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/fdbfa-2025/sched-12-s-4","label":"Fighting Delays, Building Faster Act, 2025, Sched. 12, s. 4","url":"https://www.ontario.ca/laws/statute/S25014"},{"sourceId":"ltb/update/2026-09-21","label":"Tribunals Ontario, LTB: Operational Update, Legislative Changes at the Landlord and Tenant Board, Effective: September 21, 2026","url":"https://tribunalsontario.ca/2026/09/21/ltb-operational-update-legislative-changes-at-the-landlord-and-tenant-board-effective-september-21-2026/"}]},{"label":"Earliest termination date","value":"September 30, 2026","detail":"Counting excludes the day the notice is given and includes the last day. The date may fall on a weekend or holiday.","cites":[{"sourceId":"ltb/rules/r-1-12","label":"Landlord and Tenant Board Rules of Procedure, Rule 1.13","url":"https://tribunalsontario.ca/documents/ltb/Rules/LTB-Rules_of_Procedure.html"},{"sourceId":"ltb/rules/r-1-12","label":"Landlord and Tenant Board Rules of Procedure, Rule 1.15","url":"https://tribunalsontario.ca/documents/ltb/Rules/LTB-Rules_of_Procedure.html"},{"sourceId":"on/rta-2006/s-193","label":"Residential Tenancies Act, 2006, s. 193","url":"https://www.ontario.ca/laws/statute/06r17"}]},{"label":"Earliest L1 filing","value":"October 1, 2026","detail":"The landlord may not apply before the day after the termination date in the N4, and only if the tenant has not paid and is still in the unit.","cites":[{"sourceId":"on/rta-2006/s-74","label":"Residential Tenancies Act, 2006, s. 74(1)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"on/rta-2006/s-59","label":"Residential Tenancies Act, 2006, s. 59(3)","url":"https://www.ontario.ca/laws/statute/06r17"},{"sourceId":"ltb/brochure/non-payment","label":"Landlord and Tenant Board, brochure: If a Tenant Does Not Pay Rent","url":"https://tribunalsontario.ca/documents/ltb/Brochures/If%20a%20Tenant%20Does%20Not%20Pay%20Rent.html"}]},{"label":"No filing deadline","detail":"The 30-day limit to apply does not apply to a notice for non-payment of rent.","cites":[{"sourceId":"on/rta-2006/s-69","label":"Residential Tenancies Act, 2006, s. 69(3)","url":"https://www.ontario.ca/laws/statute/06r17"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"ltb/service/deemed-given","title":"When a notice counts as given","status":"unverified"},{"id":"ltb/n4/termination-date","title":"N4: earliest termination date","status":"unverified"},{"id":"ltb/n5/termination-date","title":"N5: earliest termination date and remedy period","status":"unverified"},{"id":"ltb/end-of-period/termination-date","title":"N8, N12, N13: earliest termination date at the end of a period","status":"unverified"},{"id":"ltb/n12/compensation","title":"N12: compensation of one month’s rent","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"ltb.termination_date","version":1,"kind":"calculate","audience":["person","organization","firm","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/small_claims.route/runs":{"post":{"operationId":"run_small_claims_route","tags":["small-claims"],"summary":"Small claims: is it the right court, and where to go","description":"Use this when someone in Ontario is owed money, or has been sued for money, and needs to know whether Small Claims Court fits and where to start. Ontario Small Claims Court only; makethempay.ca handles the case. Do not use it to restate Small Claims procedure (makethempay.ca is the source) or for claims outside Ontario. Next: give the person the makethempay link; small_claims_start_claim for a business with an unpaid invoice.\n\nChecks whether an amount is within the Small Claims Court’s limit, and links to makethempay.ca, which opens the claim, with the amount filled in.\n\nCall this when someone is owed money, or has been sued for money, in Ontario. Ask which side they are on and, if they are owed money, the amount without interest and costs. The category is optional. Give the person the link: makethempay.ca takes it from there. Do not restate Small Claims procedure; makethempay is the source of truth.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `small-claims/monetary-limit` (unverified). Availability: unverified.\nMCP tool: `small_claims_route`. Markdown: https://mithril.law/small-claims/route.md.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"side":{"default":"claimant","title":"Which side are you on","description":"Owed money, or sued for it.","anyOf":[{"type":"string","const":"claimant","title":"I am owed money"},{"type":"string","const":"defendant","title":"I have been sued"}]},"amount":{"title":"Amount (CAD)","description":"The amount of the claim, not counting interest and costs.","type":"number","exclusiveMinimum":0},"category":{"title":"What happened","description":"Optional. Pick the closest; makethempay starts from it.","anyOf":[{"type":"string","const":"invoice","title":"A client or customer did not pay"},{"type":"string","const":"deposit","title":"I paid and did not get the goods or the work"},{"type":"string","const":"loan","title":"A person borrowed money and did not pay it back"},{"type":"string","const":"job","title":"My job ended and the pay was not correct"},{"type":"string","const":"damage","title":"A person damaged my property or vehicle"},{"type":"string","const":"tenancy","title":"Money from a tenancy (landlord or tenant)"},{"type":"string","const":"other","title":"Something else"}]}},"title":"Small claims: where to go"}}},"examples":{"example1":{"summary":"A client owes CAD 8,500 on an invoice","value":{"input":{"side":"claimant","amount":8500,"category":"invoice"}}},"example2":{"summary":"Owed CAD 72,000","value":{"input":{"side":"claimant","amount":72000}}},"example3":{"summary":"I was served with a claim","value":{"input":{"side":"defendant"}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"side":{"type":"string"},"amount":{"type":["number","null"]},"limit":{"type":"number"},"withinLimit":{"description":"Null when no amount was given.","type":["boolean","null"]},"text":{"type":"string"},"link":{"type":"string","title":"Continue at makethempay.ca","description":"Opens makethempay with the facts given already filled in."}},"required":["side","amount","limit","withinLimit","text","link"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"small_claims.route","version":1,"title":"Small claims: is it the right court, and where to go"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"side":"claimant","amount":8500,"limit":50000,"withinLimit":true,"text":"CAD 8,500 is within the Small Claims Court's limit of CAD 50,000, not counting interest and costs. makethempay.ca takes you through the rest.","link":"https://makethempay.ca/check?cat=invoice&amount=8500&src=mithril-law"},"summary":"CAD 8,500 is within the Small Claims Court's limit of CAD 50,000, not counting interest and costs. makethempay.ca takes you through the rest.","steps":[{"label":"Small Claims Court limit","value":"CAD 50,000","detail":"CAD 8,500 is within the Small Claims Court's limit of CAD 50,000, not counting interest and costs. makethempay.ca takes you through the rest.","cites":[{"sourceId":"on/cja/s-23","label":"Courts of Justice Act, s. 23(1)","url":"https://www.ontario.ca/laws/statute/90c43#BK41"},{"sourceId":"on/o-reg-626-00/s-1","label":"Small Claims Court Jurisdiction and Appeal Limit, O. Reg. 626/00, s. 1(1)","url":"https://www.ontario.ca/laws/regulation/000626"}]},{"label":"Continue","value":"makethempay.ca","detail":"https://makethempay.ca/check?cat=invoice&amount=8500&src=mithril-law"}],"boundary":{"kind":"needs_person","reason":"Continue at makethempay.ca, which handles Small Claims from start to finish.","actions":[{"id":"open_url","label":"Continue at makethempay.ca","href":"https://makethempay.ca/check?cat=invoice&amount=8500&src=mithril-law"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"small-claims/monetary-limit","title":"Small Claims Court: the monetary limit","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"small_claims.route","version":1,"kind":"guide","audience":["person","organization","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/small_claims.route/run":{"get":{"operationId":"get_small_claims_route","tags":["small-claims"],"summary":"Small claims: is it the right court, and where to go (from a URL)","description":"Use this when someone in Ontario is owed money, or has been sued for money, and needs to know whether Small Claims Court fits and where to start. Ontario Small Claims Court only; makethempay.ca handles the case. Do not use it to restate Small Claims procedure (makethempay.ca is the source) or for claims outside Ontario. Next: give the person the makethempay link; small_claims_start_claim for a business with an unpaid invoice.\n\nChecks whether an amount is within the Small Claims Court’s limit, and links to makethempay.ca, which opens the claim, with the amount filled in.\n\nCall this when someone is owed money, or has been sued for money, in Ontario. Ask which side they are on and, if they are owed money, the amount without interest and costs. The category is optional. Give the person the link: makethempay.ca takes it from there. Do not restate Small Claims procedure; makethempay is the source of truth.\n\nPrice: Free. No sign-in needed. With an API key or OAuth token the run is recorded to that account and metered.\nLaw: `small-claims/monetary-limit` (unverified). Availability: unverified.\nMCP tool: `small_claims_route`. Markdown: https://mithril.law/small-claims/route.md.\n\nThe same run from a GET: the facts as query parameters. Missing or invalid facts answer 200 with `object: \"missing_facts\"`, listing each fact and the URL to fetch next. Example: https://mithril.law/api/v1/operations/small_claims.route/run?side=claimant&amount=8500&category=invoice","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"name":"side","in":"query","required":false,"description":"Owed money, or sued for it.","schema":{"default":"claimant","title":"Which side are you on","description":"Owed money, or sued for it.","anyOf":[{"type":"string","const":"claimant","title":"I am owed money"},{"type":"string","const":"defendant","title":"I have been sued"}]}},{"name":"amount","in":"query","required":false,"description":"The amount of the claim, not counting interest and costs.","schema":{"title":"Amount (CAD)","description":"The amount of the claim, not counting interest and costs.","type":"number","exclusiveMinimum":0}},{"name":"category","in":"query","required":false,"description":"Optional. Pick the closest; makethempay starts from it.","schema":{"title":"What happened","description":"Optional. Pick the closest; makethempay starts from it.","anyOf":[{"type":"string","const":"invoice","title":"A client or customer did not pay"},{"type":"string","const":"deposit","title":"I paid and did not get the goods or the work"},{"type":"string","const":"loan","title":"A person borrowed money and did not pay it back"},{"type":"string","const":"job","title":"My job ended and the pay was not correct"},{"type":"string","const":"damage","title":"A person damaged my property or vehicle"},{"type":"string","const":"tenancy","title":"Money from a tenancy (landlord or tenant)"},{"type":"string","const":"other","title":"Something else"}]}},{"name":"facts","in":"query","required":false,"description":"All the facts as URL-encoded JSON, instead of (or as well as) dotted parameters. Dotted parameters win.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"responses":{"200":{"description":"The run, or the facts still needed.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"side":{"type":"string"},"amount":{"type":["number","null"]},"limit":{"type":"number"},"withinLimit":{"description":"Null when no amount was given.","type":["boolean","null"]},"text":{"type":"string"},"link":{"type":"string","title":"Continue at makethempay.ca","description":"Opens makethempay with the facts given already filled in."}},"required":["side","amount","limit","withinLimit","text","link"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},{"$ref":"#/components/schemas/MissingFacts"}]},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"small_claims.route","version":1,"title":"Small claims: is it the right court, and where to go"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"side":"claimant","amount":8500,"limit":50000,"withinLimit":true,"text":"CAD 8,500 is within the Small Claims Court's limit of CAD 50,000, not counting interest and costs. makethempay.ca takes you through the rest.","link":"https://makethempay.ca/check?cat=invoice&amount=8500&src=mithril-law"},"summary":"CAD 8,500 is within the Small Claims Court's limit of CAD 50,000, not counting interest and costs. makethempay.ca takes you through the rest.","steps":[{"label":"Small Claims Court limit","value":"CAD 50,000","detail":"CAD 8,500 is within the Small Claims Court's limit of CAD 50,000, not counting interest and costs. makethempay.ca takes you through the rest.","cites":[{"sourceId":"on/cja/s-23","label":"Courts of Justice Act, s. 23(1)","url":"https://www.ontario.ca/laws/statute/90c43#BK41"},{"sourceId":"on/o-reg-626-00/s-1","label":"Small Claims Court Jurisdiction and Appeal Limit, O. Reg. 626/00, s. 1(1)","url":"https://www.ontario.ca/laws/regulation/000626"}]},{"label":"Continue","value":"makethempay.ca","detail":"https://makethempay.ca/check?cat=invoice&amount=8500&src=mithril-law"}],"boundary":{"kind":"needs_person","reason":"Continue at makethempay.ca, which handles Small Claims from start to finish.","actions":[{"id":"open_url","label":"Continue at makethempay.ca","href":"https://makethempay.ca/check?cat=invoice&amount=8500&src=mithril-law"}]}},"law":{"asOf":"2026-09-23","verified":false,"rules":[{"id":"small-claims/monetary-limit","title":"Small Claims Court: the monetary limit","status":"unverified"}]},"receipt":{"url":"https://mithril.law/r/run_example0000000000","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"small_claims.route","version":1,"kind":"guide","audience":["person","organization","agent"],"annotations":{"readOnly":true,"idempotent":true,"destructive":false,"openWorld":false},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":false}}},"/operations/small_claims.start_claim/runs":{"post":{"operationId":"run_small_claims_start_claim","tags":["small-claims"],"summary":"Open a small claims case at makethempay.ca from an invoice","description":"Use this when an Ontario business, or its agent on its instructions, has an unpaid invoice and wants makethempay to open a Small Claims case and prepare a dated demand letter. Ontario only; makethempay's rules and prices apply. Do not use it for money owed without an invoice (small_claims_route), for debts outside Ontario, or without the business's instruction. Next: follow the links in makethempay's answer.\n\nForwards an unpaid invoice to makethempay.ca’s Claims API, which opens the case and prepares a dated demand letter. Returns makethempay.ca’s own answer.\n\nFor businesses and their agents with an unpaid invoice in Ontario. Requires a signed-in account or an API key. Collect the amount, the invoice due date, who owes the money, and who is owed (name, address, email). Everything else is optional. The answer is makethempay's: its claim id, stage and links. makethempay's rules and prices apply; mithril.law does not restate them.\n\nPrice: Free. Needs an API key, a signed-in account, or an OAuth token with `runs:write`.\nLaw: . Availability: live.\nMCP tool: `small_claims_start_claim`. Markdown: https://mithril.law/small-claims/start-claim.md.","security":[{"apiKey":[]},{"oauth2":["runs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"amount":{"type":"number","exclusiveMinimum":0,"title":"Amount owed (CAD)","description":"The unpaid amount on the invoice, without interest."},"invoice":{"type":"object","properties":{"dueDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","title":"Invoice due date","description":"The day payment was due."},"number":{"title":"Invoice number","description":"Optional.","type":"string","maxLength":60},"date":{"title":"Invoice date","description":"Optional. The day the invoice was issued.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":{"title":"What it was for","description":"Optional. One line, for example “Website build, phase 2”.","type":"string","maxLength":500}},"required":["dueDate"],"title":"The invoice"},"debtor":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"title":"Who owes the money: name","description":"A person’s full name, or a business’s legal name."},"kind":{"default":"business","title":"Who owes the money: person or business","description":"Is this a person or a business?","anyOf":[{"type":"string","const":"person","title":"A person"},{"type":"string","const":"business","title":"A business"}]},"address":{"title":"Who owes the money: address","description":"Their mailing address, if you have it.","type":"string","maxLength":300},"email":{"title":"Who owes the money: email","description":"Optional.","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["name"],"title":"Who owes the money"},"sender":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"title":"Who is owed: name","description":"A person’s full name, or a business’s legal name."},"kind":{"default":"business","title":"Who is owed: person or business","description":"Is this a person or a business?","anyOf":[{"type":"string","const":"person","title":"A person"},{"type":"string","const":"business","title":"A business"}]},"address":{"type":"string","minLength":1,"maxLength":300,"title":"Who is owed: address","description":"The mailing address the demand letter comes from."},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","title":"Who is owed: email","description":"Where replies and payment questions should go."},"phone":{"title":"Who is owed: phone","description":"Optional.","type":"string","maxLength":40}},"required":["name","address","email"],"title":"Who is owed"}},"required":["amount","invoice","debtor","sender"],"title":"Open a small claims case at makethempay.ca"}}},"examples":{"example1":{"summary":"Invoice 1042 for CAD 4,250, due July 15, 2026","value":{"input":{"amount":4250,"invoice":{"dueDate":"2026-07-15","number":"1042","date":"2026-06-15","description":"Website build, phase 2"},"debtor":{"name":"Acme Widgets Ltd.","kind":"business","address":"12 King St W, Toronto ON M5H 1A1","email":"ap@acme.example"},"sender":{"name":"Northwind Inc.","kind":"business","address":"1 Bay St, Toronto ON M5J 2R8","email":"ar@northwind.example"}}}}}}}},"responses":{"201":{"description":"The run: the answer, its cited steps, the boundary, the law it relied on and a signed receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{"type":"object","properties":{"claim":{"type":"object","properties":{"id":{"type":"string"},"ref":{"type":["string","null"]},"batch":{"type":["string","null"]},"stage":{"type":"string"},"stageLabel":{"type":"string"},"amount":{"type":["number","null"]},"debtor":{"type":["string","null"]},"dates":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","null"]}},"links":{"type":"object","properties":{"self":{"type":"string"},"letter":{"type":"string"},"dashboard":{"type":"string"}},"required":["self","letter","dashboard"],"additionalProperties":{}}},"required":["id","ref","stage","stageLabel","amount","debtor","dates","links"],"additionalProperties":{},"title":"makethempay's claim","description":"Exactly as makethempay returned it."},"source":{"type":"string","const":"makethempay.ca"}},"required":["claim","source"]},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"examples":{"answer":{"summary":"The worked example's answer","value":{"object":"run","id":"run_example0000000000","operation":{"id":"small_claims.start_claim","version":1,"title":"Open a small claims case at makethempay.ca from an invoice"},"status":"completed","createdAt":"2026-09-23T16:00:00.000Z","result":{"output":{"claim":{"id":"text","ref":"","stage":"text","stageLabel":"text","amount":"","debtor":"","dates":{},"links":{"self":"text","letter":"text","dashboard":"text"}},"source":"makethempay.ca"},"summary":"Open a small claims case at makethempay.ca from an invoice: a one-paragraph answer a person or an agent can repeat.","steps":[{"label":"A step","value":"its value","cites":[{"sourceId":"on/example/s-1","label":"The statute, s. 1","url":"https://www.ontario.ca/laws"}]}],"boundary":{"kind":"automated"}},"law":{"asOf":"2026-09-23","verified":true,"rules":[]},"receipt":{"url":"https://mithril.law/r/run_example0000000000?k=…","jws":"eyJhbGciOiJFZERTQSIs…"},"superseded":false,"supersededAt":null,"links":{"self":"https://mithril.law/api/v1/runs/run_example0000000000","receipt":"https://mithril.law/api/v1/receipts/run_example0000000000","verify":"https://mithril.law/api/v1/receipts/verify"}}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"x-mithril-operation":{"id":"small_claims.start_claim","version":1,"kind":"action","audience":["organization","firm","agent"],"annotations":{"readOnly":false,"idempotent":false,"destructive":false,"openWorld":true},"price":{"sku":null,"title":"Free","label":"Free","amount":0,"currency":"CAD","kind":"free","seller":"jonathan-kleiman","sellerName":"Jonathan Kleiman (software and consulting)","pending":false,"trust":false,"description":"No charge for the answer."},"personalData":true}}},"/tools":{"get":{"operationId":"list_tools","tags":["tools"],"summary":"Tools that are not operations","description":"Handoffs, bookings, receipts, rules and prices; the same tools MCP lists. Each also has its own path below.","security":[{},{"apiKey":[]},{"oauth2":[]}],"responses":{"200":{"description":"The tools with their input and output schemas.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}}}}},"/tools/handoff_create":{"post":{"operationId":"tool_handoff_create","tags":["tools"],"summary":"Hand the matter to Jonathan Kleiman (lawyer)","description":"Use this when another tool's boundary is needs_lawyer, or the person asks for a lawyer for a matter in Ontario. Ontario legal matters: the lawyer is Jonathan Kleiman of Mithril Law, licensed by the Law Society of Ontario. Do not use it for matters outside Ontario, for legal information another tool already gives, or without the person's agreement (only the person confirms, through the consent link). Next: handoff_status, or the handoff.updated webhook.\n\nAsk Mithril Law (Jonathan Kleiman, Ontario lawyer) to take on the person's matter. Use it when a result's boundary is `needs_lawyer`, or when the person asks for a lawyer.\n\nReturns a consentUrl. Give this link to the person and to no one else. Do not open it, fill it in or act on it yourself. The person confirms who they are, passes the conflict check, picks the time, signs and pays there.\nThe conflict check runs across both of my systems before anything is booked. If there is a conflict the person is referred elsewhere; you will never learn why.\nInclude everyone on the other side in `parties` (needed for the conflict check) and the runId of any run you made, so the facts and documents come with the matter.\nThen follow it with handoff_status or the `handoff.updated` webhook: awaiting_person → conflict_check → booked → engagement_sent → engaged → matter_open (or referred / declined / cancelled).\nSign-in: none needed; a scoped token needs handoffs:write.\n\nThe same tool as MCP `handoff_create`.","security":[{},{"apiKey":[]},{"oauth2":["handoffs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","general"],"description":"Area of law."},"kind":{"type":"string","enum":["consultation","call"],"description":"`consultation`: a consultation about the matter. `call`: a short call to see whether I can help."},"summary":{"type":"string","minLength":1,"maxLength":4000,"description":"What the person needs, in their words or a faithful summary of them. Facts only; no legal conclusions."},"person":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The person's full name, as they gave it."},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"The person's own email. The consent link is confirmed there."},"phone":{"description":"Optional phone number.","type":"string","maxLength":40}},"required":["name","email"]},"parties":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","enum":["opposing","employer","landlord","tenant","co-accused","complainant","related","other"]}},"required":["name","role"]},"description":"Everyone on the other side or involved (employer, landlord, complainant…). Needed for the conflict check (LSO Rule 3.4). Empty only when there truly is no one."},"runId":{"description":"A run whose facts and documents should come with the matter.","type":"string","maxLength":64},"urgency":{"description":"How soon the person needs help. `today` for arrests, hearings or deadlines within a day.","type":"string","enum":["today","this_week","normal"]},"legalAid":{"description":"Criminal matters only.","type":"object","properties":{"certificateNumber":{"description":"A Legal Aid Ontario certificate number, if the person has one.","type":"string","maxLength":40},"applied":{"description":"True if the person has applied to Legal Aid Ontario.","type":"boolean"}}},"preferredSlotId":{"description":"A slot id from slots_list / GET /slots. The person confirms it on the consent page.","type":"string","maxLength":128}},"required":["area","kind","summary","person","parties"]}}}},"responses":{"201":{"description":"Hand the matter to Jonathan Kleiman (lawyer)","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"handoff"},"id":{"type":"string"},"status":{"type":"string","enum":["awaiting_person","conflict_check","referred","booked","engagement_sent","engaged","matter_open","declined","cancelled"]},"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","general"]},"kind":{"type":"string","enum":["consultation","call"]},"consentUrl":{"type":"string","description":"Give this to the person and to no one else."},"booking":{"type":"object","properties":{"slotId":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"videoUrl":{"type":"string"}},"required":["slotId","startsAt","endsAt"],"additionalProperties":{}},"referral":{"description":"Present when a conflict meant referring the person elsewhere. No details of the conflict are ever shared.","type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":{}},"engagement":{"type":"object","properties":{"kind":{"type":"string","enum":["limited_scope","full","contingency","legal_aid"]},"signedAt":{"type":"string"}},"required":["kind"],"additionalProperties":{}},"matter":{"type":"object","properties":{"portalUrl":{"type":"string"}},"required":["portalUrl"],"additionalProperties":{}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"agentInstructions":{"type":"string"}},"required":["object","id","status","area","kind","consentUrl","createdAt","updatedAt","agentInstructions"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/handoff_status":{"post":{"operationId":"tool_handoff_status","tags":["tools"],"summary":"Handoff status","description":"Use this when you created a handoff and need to know where it stands. Ontario matters handed to Mithril Law. Do not use it more than once a minute, or to learn why a conflict exists (no details are shared). Next: tell the person the status; slots_list if they still need a time.\n\nWhere a handoff stands: awaiting_person, conflict_check, referred, booked, engagement_sent, engaged, matter_open, declined or cancelled. Referred means a conflict; no details are ever shared. Poll no more than once a minute, or use the `handoff.updated` webhook.\n\nThe same tool as MCP `handoff_status`.","security":[{},{"apiKey":[]},{"oauth2":["handoffs:write"]}],"parameters":[{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"description":"The handoff id from handoff_create."}},"required":["id"]}}}},"responses":{"200":{"description":"Handoff status","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"handoff"},"id":{"type":"string"},"status":{"type":"string","enum":["awaiting_person","conflict_check","referred","booked","engagement_sent","engaged","matter_open","declined","cancelled"]},"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","general"]},"kind":{"type":"string","enum":["consultation","call"]},"consentUrl":{"type":"string","description":"Give this to the person and to no one else."},"booking":{"type":"object","properties":{"slotId":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"videoUrl":{"type":"string"}},"required":["slotId","startsAt","endsAt"],"additionalProperties":{}},"referral":{"description":"Present when a conflict meant referring the person elsewhere. No details of the conflict are ever shared.","type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":{}},"engagement":{"type":"object","properties":{"kind":{"type":"string","enum":["limited_scope","full","contingency","legal_aid"]},"signedAt":{"type":"string"}},"required":["kind"],"additionalProperties":{}},"matter":{"type":"object","properties":{"portalUrl":{"type":"string"}},"required":["portalUrl"],"additionalProperties":{}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"agentInstructions":{"type":"string"}},"required":["object","id","status","area","kind","consentUrl","createdAt","updatedAt","agentInstructions"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/slots_list":{"post":{"operationId":"tool_slots_list","tags":["tools"],"summary":"Open consultation and call times","description":"Use this when the person wants a consultation or call time with Jonathan Kleiman. Ontario matters; times are Toronto time. Do not use it to book (booking_hold or handoff_create) or for matters outside Ontario. Next: booking_hold, or handoff_create with preferredSlotId.\n\nMy real availability, so you can offer the person a time in the same conversation. `consultation` and `call` are with me as a lawyer; `consulting_call` is about consulting. Pass a slot id to handoff_create (preferredSlotId) or booking_hold; the person confirms it. Times are ISO 8601 with offset (Toronto time).\n\nThe same tool as MCP `slots_list`.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["consultation","call","consulting_call"],"description":"`consultation` and `call` are with me as a lawyer; `consulting_call` is about consulting."},"from":{"description":"Start of the window (ISO 8601). Defaults to now.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"to":{"description":"End of the window (ISO 8601). Defaults to 14 days after `from`; at most 62 days.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["kind"]}}}},"responses":{"200":{"description":"Open consultation and call times","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["consultation","call","consulting_call"]},"startsAt":{"type":"string"},"endsAt":{"type":"string"}},"required":["id","kind","startsAt","endsAt"],"additionalProperties":{}}},"from":{"type":"string"},"to":{"type":"string"}},"required":["object","data","from","to"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/booking_hold":{"post":{"operationId":"tool_booking_hold","tags":["tools"],"summary":"Hold a time for the person","description":"Use this when the person has picked a time from slots_list for a call or consultation. Ontario matters. Do not use it when the matter needs a lawyer to take it on (handoff_create books as part of the handoff), or to confirm for the person (only they can, at confirmUrl). Next: give the person the confirmUrl.\n\nHold a consultation or call time from slots_list for the person. The booking stays `held` until the person confirms it at confirmUrl; give that link to them and to no one else. For a matter that needs a lawyer, prefer handoff_create (it books as part of the handoff).\nSign-in: none needed; a scoped token needs bookings:write.\n\nThe same tool as MCP `booking_hold`.","security":[{},{"apiKey":[]},{"oauth2":["bookings:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slotId":{"type":"string","minLength":1,"maxLength":128,"description":"A slot id from slots_list / GET /slots."},"kind":{"type":"string","enum":["consultation","call","consulting_call"],"description":"Must match the slot's kind."},"person":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The person's full name, as they gave it."},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"The person's own email. The consent link is confirmed there."},"phone":{"description":"Optional phone number.","type":"string","maxLength":40}},"required":["name","email"]},"note":{"description":"Anything the person wants me to know before the call.","type":"string","maxLength":2000},"handoffId":{"description":"The handoff this booking belongs to, if any.","type":"string","maxLength":64}},"required":["slotId","kind","person"]}}}},"responses":{"201":{"description":"Hold a time for the person","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"booking"},"id":{"type":"string"},"kind":{"type":"string","enum":["consultation","call","consulting_call"]},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"status":{"type":"string","enum":["held","confirmed","cancelled"]},"videoUrl":{"type":"string"},"confirmUrl":{"description":"For a held booking: the person confirms here. Give it only to the person.","type":"string"},"agentInstructions":{"type":"string"}},"required":["object","id","kind","startsAt","endsAt","status"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/receipt_verify":{"post":{"operationId":"tool_receipt_verify","tags":["tools"],"summary":"Verify a receipt","description":"Use this when you are about to repeat an earlier answer from these tools, or someone gives you a Mithril receipt to check. Receipts for runs of Ontario law on mithril.law. Do not use it for documents or receipts from other services. Next: run the operation again if the receipt is superseded.\n\nCheck a run's signed receipt (the `receipt.jws` of any run): whether the signature is Mithril's, what the answer relied on (operation, rule versions and hashes, verification status then and now) and whether the answer has been superseded because the law changed. Use it before repeating an old answer.\n\nThe same tool as MCP `receipt_verify`.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jws":{"type":"string","minLength":10,"maxLength":20000,"description":"The compact JWS from a run's receipt (`receipt.jws`)."}},"required":["jws"]}}}},"responses":{"200":{"description":"Verify a receipt","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"receipt_verification"},"valid":{"type":"boolean"},"reason":{"anyOf":[{"type":"string","enum":["malformed","signature"]},{"type":"null"}]},"header":{"anyOf":[{"type":"object","properties":{"alg":{"type":"string"},"kid":{"type":"string"},"typ":{"type":"string"}},"additionalProperties":{}},{"type":"null"}]},"issuer":{"type":["string","null"]},"issuedAt":{"type":["string","null"]},"claims":{"anyOf":[{"type":"object","properties":{"receipt":{"type":"number","const":1},"run":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","version"],"additionalProperties":{}},"input":{"type":"string","description":"sha256 of the canonical JSON of the facts."},"output":{"description":"sha256 of the canonical JSON of the answer.","type":["string","null"]},"asOf":{"type":"string"},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string"},"status":{"type":"string"},"verifiedAt":{"type":"string"}},"required":["id","version","hash","status"],"additionalProperties":{}}},"boundary":{"type":["string","null"]},"status":{"type":"string","enum":["completed","failed"]}},"required":["receipt","run","operation","input","output","asOf","rules","boundary","status"],"additionalProperties":{}},{"type":"null"}]},"run":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"found":{"type":"boolean"},"superseded":{"type":"boolean"},"supersededAt":{"type":["string","null"]}},"required":["id","found","superseded","supersededAt"],"additionalProperties":{}},{"type":"null"}]},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string"},"statusAtRun":{"type":"string"},"verifiedAtRun":{"type":["string","null"]},"current":{"anyOf":[{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string"},"status":{"type":"string"},"verifiedAt":{"type":["string","null"]}},"required":["version","hash","status","verifiedAt"],"additionalProperties":{}},{"type":"null"}]},"changed":{"type":"boolean","description":"The rule's statement, sources or worked examples changed since the run."}},"required":["id","version","hash","statusAtRun","verifiedAtRun","current","changed"],"additionalProperties":{}}},"superseded":{"type":"boolean","description":"The law behind the answer changed after it was given. Run the operation again before repeating it."},"jwks":{"type":"string"},"checkedAt":{"type":"string"}},"required":["object","valid","reason","header","issuer","issuedAt","claims","run","rules","superseded","jwks","checkedAt"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/rules_search":{"post":{"operationId":"tool_rules_search","tags":["tools"],"summary":"Search the verified rules","description":"Use this when you need to cite or check the Ontario rule behind an answer. Ontario law as these tools apply it; each rule shows whether a lawyer verified it. Do not use it in place of running the operation, or to give legal advice. Next: rule_get for one rule in full.\n\nSearch the rules behind the operations: each is one unit of Ontario law as the software implements it, with its sources (e-Laws, Justice Laws, Tribunals Ontario, the courts) and its verification status. Use it to cite or check the law, not to give advice.\n\nThe same tool as MCP `rules_search`.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"description":"Words to look for in the rule's title, statement or sources, for example `termination pay`.","type":"string","maxLength":200},"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","general"]},"status":{"type":"string","enum":["verified","unverified","stale"]},"limit":{"description":"At most this many rules (default 20).","type":"integer","minimum":1,"maximum":50}}}}}},"responses":{"200":{"description":"Search the verified rules","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"area":{"type":"string"},"title":{"type":"string"},"statement":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":["string","null"]},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"citation":{"type":"string"},"url":{"type":"string"},"instrument":{"type":"string"},"provision":{"type":["string","null"]}},"required":["id","citation","url","instrument","provision"],"additionalProperties":{}}},"operations":{"type":"array","items":{"type":"string"}}},"required":["id","area","title","statement","status","verifiedAt","sources","operations"],"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/rule_get":{"post":{"operationId":"tool_rule_get","tags":["tools"],"summary":"Get a rule","description":"Use this when you have a rule id (from a run's law.rules or rules_search) and need its statement, sources and worked examples. Ontario law as these tools apply it. Do not use it to search (rules_search does that). Next: cite the sources it lists.\n\nOne rule in full: the statement exactly as the code implements it, its sources with URLs, the worked examples a lawyer checked, its status and the operations that use it.\n\nThe same tool as MCP `rule_get`.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200,"description":"Rule id, for example from a run's `law.rules`."}},"required":["id"]}}}},"responses":{"200":{"description":"Get a rule","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"rule"},"id":{"type":"string"},"area":{"type":"string"},"title":{"type":"string"},"statement":{"type":"string","description":"The rule exactly as the code implements it."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string","description":"Content hash of statement, sources, version and worked examples. A lawyer verifies this exact hash."},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":["string","null"]},"verifiedBy":{"type":["string","null"]},"notes":{"type":["string","null"]},"sources":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"source"},"id":{"type":"string"},"kind":{"type":"string"},"instrument":{"type":"string"},"short":{"type":"string"},"provision":{"type":["string","null"]},"citation":{"type":"string"},"url":{"type":"string","description":"Authoritative: e-Laws, Justice Laws, Tribunals Ontario or the court."},"currentTo":{"type":["string","null"]},"readOn":{"type":"string"},"links":{"type":"object","properties":{"self":{"type":"string"}},"required":["self"],"additionalProperties":{}}},"required":["object","id","kind","instrument","short","provision","citation","url","currentTo","readOn","links"],"additionalProperties":{}}},"examples":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"facts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"expected":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["title","facts","expected"],"additionalProperties":{}}},"operations":{"type":"array","items":{"type":"string"}},"links":{"type":"object","properties":{"self":{"type":"string"},"register":{"type":"string"}},"required":["self","register"],"additionalProperties":{}}},"required":["object","id","area","title","statement","version","hash","status","verifiedAt","verifiedBy","notes","sources","examples","operations","links"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/catalog":{"post":{"operationId":"tool_catalog","tags":["tools"],"summary":"Prices","description":"Use this when the person asks what something costs on mithril.law. Mithril Law's legal services in Ontario and the software and consulting Jonathan Kleiman sells, in CAD before HST. Do not use it to quote a number for a price marked pending (it is quoted before the person commits), or to pay (only the person pays, through a checkout link). Next: the tool that does the work, or handoff_create for legal services.\n\nEvery price, as shown on the site: software (sold by Jonathan Kleiman), legal services (Mithril Law) and consulting. Quote only these prices. `pending` prices are quoted before the person commits; never invent a number.\n\nThe same tool as MCP `catalog`.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","consulting","api","general"]}}}}}},"responses":{"200":{"description":"Prices","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"sku":{"type":["string","null"]},"title":{"type":"string"},"label":{"type":"string","description":"As printed on the site."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Cents, CAD, when the price is one fixed number; null when quoted."},"currency":{"type":"string","const":"CAD"},"kind":{"type":"string","enum":["free","one_time","subscription","metered","contingency","from","legal_aid","quote"]},"seller":{"type":"string","enum":["jonathan-kleiman","mithril-law"]},"sellerName":{"type":"string"},"pending":{"type":"boolean","description":"Not set yet: quoted before the person commits."},"trust":{"type":"boolean","description":"A legal fee paid before the work is done, held in trust (LSO By-Law 9)."},"description":{"type":"string"}},"required":["sku","title","label","amount","currency","kind","seller","sellerName","pending","trust","description"],"additionalProperties":{},"description":"A price from the catalog. Quote only these."}},"sellers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["object","data","sellers"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/retainer_quote":{"post":{"operationId":"tool_retainer_quote","tags":["tools"],"summary":"Quote a fixed-fee engagement with Mithril Law","description":"Use this when the person wants Mithril Law to take on a defined piece of work for a fixed fee (a review of a severance offer, an L1 filing and hearing for a landlord), or you are about to retain me for them. Ontario legal services from Mithril Law, Jonathan Kleiman’s practice, licensed by the Law Society of Ontario. Do not use it for contingency work, criminal matters or anything outside the listed services (handoff_create does those), or to give legal advice yourself. Next: retainer_retain with the quote id, once the person agrees.\n\nA signed quote for one defined service from Mithril Law (Jonathan Kleiman, Ontario lawyer): what I do, what I don’t, what the person must do, how soon, and the fee from the catalog with HST.\nServices: `employment.offer_review` (review of a severance offer) and `ltb.l1_hearing` (L1 filing and hearing for a landlord).\nThe conflict check runs at once: `clear`, `review` (I look at it myself before acting) or `cannot_act` (a referral; you never learn why).\nIf no standing mandate from the person covers it, `mandate.url` is the one screen where they give you one. Give it to the person and to no one else; retainer_retain also asks them for it.\nThe quote is a JWS signed with the site’s Ed25519 key (`typ: mithril-quote+jws`); check it against /.well-known/jwks.json.\nQuoted before you commit, plus HST and disbursements. Advice starts when you retain me, and I tell you in writing what I will do and what it costs.\nSign-in: an API key, or the person’s personal access token or OAuth token with handoffs:write.\n\nThe same tool as MCP `retainer_quote`.","security":[{"apiKey":[]},{"oauth2":["handoffs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string","enum":["employment.offer_review","ltb.l1_hearing"],"description":"The service to quote: `employment.offer_review` (review of a severance offer) or `ltb.l1_hearing` (L1 filing and hearing for a landlord)."},"summary":{"type":"string","minLength":10,"maxLength":4000,"description":"What the person needs, in their words or a faithful summary of them. Facts only; no legal conclusions."},"person":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":200,"description":"The person’s full name, as they gave it."},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"The person’s own email. They confirm it with a code when they sign the mandate."},"phone":{"description":"Optional phone number.","type":"string","minLength":7,"maxLength":40}},"required":["name","email"]},"parties":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"role":{"type":"string","enum":["opposing","employer","landlord","tenant","co-accused","complainant","related","other"]}},"required":["name","role"]},"description":"Everyone on the other side or involved: the employer for a severance review, every tenant for an L1. Needed for the conflict check (LSO Rule 3.4)."},"identification":{"description":"What you already know for the person’s identification (LSO By-Law 7.1, s. 23(1)): full name, home address, home phone, occupation. They only confirm it.","type":"object","properties":{"fullName":{"type":"string","maxLength":300},"homeAddress":{"type":"string","maxLength":500},"homeTelephone":{"type":"string","maxLength":40},"occupations":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":200}}}},"runId":{"description":"A run whose facts and documents should come with the matter, for example the severance check.","type":"string","maxLength":64}},"required":["service","summary","person","parties"]}}}},"responses":{"201":{"description":"Quote a fixed-fee engagement with Mithril Law","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"status":{"type":"string"},"service":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":{}},"fee":{"type":"object","properties":{"status":{"type":"string"},"label":{"type":"string"}},"required":["status","label"],"additionalProperties":{}},"conflict":{"type":"object","properties":{"result":{"type":"string"},"message":{"type":"string"}},"required":["result","message"],"additionalProperties":{}},"jws":{"type":"string"},"validUntil":{"type":"string"}},"required":["object","id","status","service","fee","conflict","jws","validUntil"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/retainer_retain":{"post":{"operationId":"tool_retainer_retain","tags":["tools"],"summary":"Retain Mithril Law for the person, under their mandate","description":"Use this when the person has agreed to retain Mithril Law on a quote from retainer_quote. Ontario legal services from Mithril Law, within the person’s standing mandate. Do not use it without the person’s agreement, for anything above their mandate’s limits or outside it (the person decides those), or for a contingency fee agreement (the person signs it). Next: handoff_status to follow the matter; mandate_status for what the mandate still allows.\n\nRetain Mithril Law for the person on a quote from retainer_quote, under their standing mandate. The person is my client, not you.\nNo mandate yet, or the quote is outside it: `status: needs_person` (or `outside_mandate`) with `principalStep.url`, the one screen where the person signs it. Over MCP 2026-07-28 the client is asked to open it for them. Call again once they have signed; `principal_step.completed` tells you.\nWithin the mandate, the engagement is offered under my acceptance policy: accepted and formed at once (`engaged`, then `matter_open`), or waiting for me (`waiting_for_lawyer`, with the reasons). The person gets a copy of every engagement made under their mandate.\n`paymentGrant`: a Stripe Shared Payment Token your platform granted for this engagement. The fee and HST are authorized on it, not taken, and captured when I deliver the bill. Without one, I bill the person on delivery. This mandate stores no card.\nOnce retained, `nextSteps` says what the person sends me and where (the turnaround starts when I have it), and `work` shows what has arrived and the due date.\nNever for a contingency fee agreement: the person signs those on the Law Society’s standard form.\nCalling it again on the same quote is safe: it reports where things stand, and re-offers a request that was waiting.\nSign-in: an API key, or the person’s personal access token or OAuth token with handoffs:write.\n\nThe same tool as MCP `retainer_retain`.","security":[{"apiKey":[]},{"oauth2":["handoffs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","minLength":1,"maxLength":64,"description":"The quote id from retainer_quote."},"paymentGrant":{"description":"A payment grant from your platform, limited to this engagement. The fee is authorized on it, not taken, and captured when I deliver the bill. Leave it out and I bill the person on delivery.","type":"object","properties":{"type":{"type":"string","const":"shared_payment_token"},"token":{"type":"string","minLength":8,"maxLength":200,"description":"The Stripe Shared Payment Token your platform granted for this engagement (`spt_…`)."}},"required":["type","token"]}},"required":["quoteId"]}}}},"responses":{"201":{"description":"Retain Mithril Law for the person, under their mandate","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"retainer"},"quoteId":{"type":"string"},"status":{"type":"string","enum":["needs_person","engaged","matter_open","waiting_for_lawyer","referred","outside_mandate"]},"nextSteps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"label":{"type":"string"}},"required":["kind","label"],"additionalProperties":{}}}},"required":["object","quoteId","status","nextSteps"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/tools/mandate_status":{"post":{"operationId":"tool_mandate_status","tags":["tools"],"summary":"Standing mandate status","description":"Use this when you need to know what the person’s mandate lets you do for them now, or whether they have signed, verified or revoked it. Standing mandates for Ontario legal services from Mithril Law. Do not use it to change a mandate (only the person changes it, on its page), or for anyone else’s mandate. Next: retainer_quote, or retainer_retain on a quote.\n\nThe person’s standing mandates for you: whether each is pending, active, expired, revoked or replaced; the services it covers; the limits and what is left this month; whether their identity is complete (then I can accept without waiting); and every use.\nSubscribe to the resource `mithril://mandates/{id}` to hear when the person signs, verifies or revokes.\nSign-in: an API key, or the person’s personal access token or OAuth token with handoffs:write.\n\nThe same tool as MCP `mandate_status`.","security":[{"apiKey":[]},{"oauth2":["handoffs:write"]}],"parameters":[{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mandateId":{"description":"A mandate id, from retainer_quote or retainer_retain. Leave it out to see every mandate you hold for your person.","type":"string","minLength":1,"maxLength":64},"personEmail":{"description":"With an organization’s API key: the person whose mandates to show.","type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}}}}},"responses":{"200":{"description":"Standing mandate status","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"mandate"},"id":{"type":"string"},"status":{"type":"string"}},"required":["object","id","status"],"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/runs/{id}":{"get":{"operationId":"get_run","tags":["runs"],"summary":"Get a run","description":"For the account that made it (OAuth: `runs:read`), with its access key (`k`, from the receipt link), or by anyone when it held no personal data. Includes the facts and whether the answer has been superseded.","security":[{},{"apiKey":[]},{"oauth2":["runs:read"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Run id.","schema":{"type":"string"}},{"name":"k","in":"query","required":false,"description":"The run's access key.","schema":{"type":"string"}}],"responses":{"200":{"description":"The run.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/rules":{"get":{"operationId":"list_rules","tags":["law"],"summary":"The verification register","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"name":"area","in":"query","required":false,"description":"Filter by area.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"verified, stale or unverified.","schema":{"type":"string","enum":["verified","stale","unverified"]}},{"name":"q","in":"query","required":false,"description":"Words that must all appear in the title, statement or sources.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size (1 to 200, default 50).","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"`nextCursor` from the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of rules.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleList"}}}},"429":{"$ref":"#/components/responses/E429"}}}},"/rules/{id}":{"get":{"operationId":"get_rule","tags":["law"],"summary":"Get a rule","description":"Rule ids contain slashes (`employment/esa/termination-notice`): send them as path segments, or percent-encode them.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Rule id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The rule.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rule"}}}},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/sources/{id}":{"get":{"operationId":"get_source","tags":["law"],"summary":"Get a source","description":"Source ids contain slashes (`on/esa-2000/s-57`), like rule ids.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Source id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The source, the rules that cite it and what the law-change watcher last saw.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/receipts/{id}":{"get":{"operationId":"get_receipt","tags":["receipts"],"summary":"Get a run's receipt","description":"A receipt holds hashes, not facts: anyone with the run id may read it.","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Run id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The receipt.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receipt"}}}},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/receipts/verify":{"post":{"operationId":"verify_receipt","tags":["receipts"],"summary":"Verify a receipt","description":"Whether the signature is Mithril's, what the answer relied on, and whether that law is still current. An invalid receipt is `valid: false`, not an error.","security":[{},{"apiKey":[]},{"oauth2":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jws"],"properties":{"jws":{"type":"string"}}}}}},"responses":{"200":{"description":"The verification.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptVerification"}}}},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/handoffs":{"post":{"operationId":"create_handoff","tags":["practice"],"summary":"Hand the matter to a lawyer","description":"Ask Mithril Law to take on the person's matter. The response's `consentUrl` goes to the person and no one else: they confirm who they are, pass the conflict check (LSO Rule 3.4), pick a time, sign and pay there. Follow progress with GET /handoffs/{id} or the `handoff.updated` webhook.","security":[{},{"apiKey":[]},{"oauth2":["handoffs:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoffRequest"}}}},"responses":{"201":{"description":"The handoff.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Handoff"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/handoffs/{id}":{"get":{"operationId":"get_handoff","tags":["practice"],"summary":"Where a handoff stands","security":[{},{"apiKey":[]},{"oauth2":["handoffs:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Handoff id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The handoff.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Handoff"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/slots":{"get":{"operationId":"list_slots","tags":["practice"],"summary":"Open consultation and call times","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","enum":["consultation","call","consulting_call"]}},{"name":"from","in":"query","required":false,"description":"ISO 8601; defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"ISO 8601; defaults to 14 days after `from`, at most 62.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Open times.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotList"}}}},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/bookings":{"post":{"operationId":"hold_booking","tags":["practice"],"summary":"Hold a time for the person","description":"The booking is `held` until the person confirms it at `confirmUrl`. Give that link only to the person.","security":[{},{"apiKey":[]},{"oauth2":["bookings:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/MithrilAgent"},{"$ref":"#/components/parameters/MithrilAgentModel"},{"$ref":"#/components/parameters/MithrilOnBehalfOf"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequest"}}}},"responses":{"201":{"description":"The booking.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/webhooks":{"get":{"operationId":"list_webhooks","tags":["webhooks"],"summary":"List your webhook endpoints","security":[{"apiKey":[]}],"responses":{"200":{"description":"Your endpoints (secrets are never shown again) and the event types.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointList"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"operationId":"create_webhook","tags":["webhooks"],"summary":"Create a webhook endpoint","description":"The response carries the endpoint's `secret` once. Deliveries are signed: `Mithril-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"t.body\">`.","security":[{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri","description":"HTTPS URL that receives POSTed events."},"events":{"minItems":1,"maxItems":14,"type":"array","items":{"type":"string","enum":["run.completed","run.superseded","rule.changed","handoff.updated","booking.updated","matter.updated","document.ready","journey.updated","consulting.proposal.sent","consulting.proposal.accepted","consulting.project.updated","consulting.deployment.updated","principal_step.completed","*"]},"description":"Event types to receive, or `*` for all."}},"required":["url","events"]}}}},"responses":{"201":{"description":"The endpoint, with its secret.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/webhooks/{id}":{"get":{"operationId":"get_webhook","tags":["webhooks"],"summary":"Get a webhook endpoint","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Endpoint id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The endpoint.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}},"delete":{"operationId":"delete_webhook","tags":["webhooks"],"summary":"Delete a webhook endpoint","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Endpoint id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"webhook_endpoint"},"id":{"type":"string"},"deleted":{"const":true}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/documents/{id}":{"get":{"operationId":"get_document","tags":["runs"],"summary":"Download a generated document","description":"For the account that made the run, or with the run's access key. A paid document that has not been paid for answers 402 with a `payment` object whose `checkoutUrl` goes to the person.","security":[{},{"apiKey":[]},{"oauth2":["runs:read"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Document id.","schema":{"type":"string"}},{"name":"k","in":"query","required":false,"description":"The run's access key.","schema":{"type":"string"}}],"responses":{"200":{"description":"The document.","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}},"text/markdown":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Paid step not paid yet.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"payment":{"$ref":"#/components/schemas/Payment"}}}]}}}},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/catalog":{"get":{"operationId":"get_catalog","tags":["meta"],"summary":"Every price","security":[{},{"apiKey":[]},{"oauth2":[]}],"parameters":[{"name":"area","in":"query","required":false,"description":"Filter by area.","schema":{"type":"string"}}],"responses":{"200":{"description":"Prices as the site shows them.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Price"}},"metering":{"$ref":"#/components/schemas/Price"}}}}}}}}},"/portal/matters":{"get":{"operationId":"portal_list_matters","tags":["portal"],"summary":"The client's matters","description":"Delegated access only (an agent acting for a client). Exactly what the client portal shows, never notes, drafts, research, time entries, other parties, conflict data or view-only items.","security":[{"oauth2":["matter:read"]}],"responses":{"200":{"description":"Matters.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/portal/matters/{id}":{"get":{"operationId":"portal_get_matter","tags":["portal"],"summary":"One matter: status, stage, dates, the client's tasks","security":[{"oauth2":["matter:read"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Matter id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The matter.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/portal/matters/{id}/documents":{"get":{"operationId":"portal_list_documents","tags":["portal"],"summary":"Documents shared with the client","security":[{"oauth2":["matter:read"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Matter id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Documents.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}},"post":{"operationId":"portal_upload_document","tags":["portal"],"summary":"Upload a document for the client","description":"Send the file as the raw body with its Content-Type: PDF, PNG, JPEG or DOCX, 10 MB at most. The declared type must match the file's contents.","security":[{"oauth2":["matter:documents:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Matter id.","schema":{"type":"string"}},{"name":"filename","in":"query","required":false,"description":"File name.","schema":{"type":"string"}},{"name":"note","in":"query","required":false,"description":"A note for me.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}}},"responses":{"201":{"description":"The uploaded document.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/portal/matters/{id}/documents/{documentId}":{"get":{"operationId":"portal_get_document","tags":["portal"],"summary":"Download a shared document","security":[{"oauth2":["matter:read"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Matter id.","schema":{"type":"string"}},{"name":"documentId","in":"path","required":true,"description":"Document id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The file.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/portal/matters/{id}/messages":{"get":{"operationId":"portal_list_messages","tags":["portal"],"summary":"Messages on the matter","security":[{"oauth2":["matter:read"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Matter id.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"`nextCursor` from the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"Messages, newest first.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}},"post":{"operationId":"portal_send_message","tags":["portal"],"summary":"Send me a message for the client","security":[{"oauth2":["matter:messages:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Matter id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"string","minLength":1,"maxLength":10000}}}}}},"responses":{"201":{"description":"The message.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/portal/invoices":{"get":{"operationId":"portal_list_invoices","tags":["portal"],"summary":"Invoices and payments","security":[{"oauth2":["billing:read"]}],"parameters":[{"name":"matter","in":"query","required":false,"description":"Only this matter's invoices.","schema":{"type":"string"}}],"responses":{"200":{"description":"Invoices.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/a2a":{"post":{"operationId":"a2a","tags":["meta"],"summary":"A2A (JSON-RPC 2.0)","description":"Agent-to-agent protocol: `message/send` with a data part `{ operation, input }` (or `inputs` for a batch, API key needed) and `tasks/get`. See /.well-known/agent-card.json.","security":[{},{"apiKey":[]},{"oauth2":["runs:write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"A JSON-RPC response.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"type":"object"}}}}}}}},"webhooks":{"run.completed":{"post":{"summary":"run.completed","description":"A run you made finished. Carries the run id, operation, boundary and links. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"run.completed"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"run.completed"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"run.superseded":{"post":{"summary":"run.superseded","description":"A rule a run of yours relied on changed after the run. Stop repeating that answer; run it again. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"run.superseded"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"run.superseded"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"rule.changed":{"post":{"summary":"rule.changed","description":"A rule changed (amendment, practice direction or fee change) and is being re-verified. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"rule.changed"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"rule.changed"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"handoff.updated":{"post":{"summary":"handoff.updated","description":"A handoff you created changed status (booked, engaged, matter_open, referred…). Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"handoff.updated"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"handoff.updated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"booking.updated":{"post":{"summary":"booking.updated","description":"A booking you held was confirmed, moved or cancelled. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"booking.updated"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"booking.updated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"matter.updated":{"post":{"summary":"matter.updated","description":"Delegated access only: the person's matter changed (new shared document, message, date). Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"matter.updated"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"matter.updated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"document.ready":{"post":{"summary":"document.ready","description":"A document you were waiting for (for example after payment) is ready to download. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"document.ready"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"document.ready"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"journey.updated":{"post":{"summary":"journey.updated","description":"A supervised journey across several operations moved on: a step finished, a date arrived, or it needs the person. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"journey.updated"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"journey.updated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"consulting.proposal.sent":{"post":{"summary":"consulting.proposal.sent","description":"Consulting: a proposal was sent to your organization. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"consulting.proposal.sent"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"consulting.proposal.sent"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"consulting.proposal.accepted":{"post":{"summary":"consulting.proposal.accepted","description":"Consulting: your organization accepted a proposal. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"consulting.proposal.accepted"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"consulting.proposal.accepted"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"consulting.project.updated":{"post":{"summary":"consulting.project.updated","description":"Consulting: a project for your organization changed stage. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"consulting.project.updated"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"consulting.project.updated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"consulting.deployment.updated":{"post":{"summary":"consulting.deployment.updated","description":"Consulting: your workspace deployment changed status. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"consulting.deployment.updated"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"consulting.deployment.updated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}},"principal_step.completed":{"post":{"summary":"principal_step.completed","description":"The person finished a step only they can take (identity, a signature, a decision). Carry on from where you left off. Verify `Mithril-Signature` before trusting the body.","parameters":[{"name":"Mithril-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.rawBody\">` with your endpoint's secret."},{"name":"Mithril-Event","in":"header","required":true,"schema":{"type":"string","const":"principal_step.completed"}},{"name":"Mithril-Delivery","in":"header","required":true,"schema":{"type":"string"},"description":"Unique per delivery; use it to ignore repeats."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string"},"type":{"const":"principal_step.completed"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the event. Anything else is retried with backoff, 8 attempts in all."}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"mk_…","description":"`Authorization: Bearer mk_…`. Either an API key (developers and organizations; runs are metered) or a personal access token (a key a person makes for their own agent, limited to the scopes they choose: the simple way to act for a person). Both from https://mithril.law/account/keys."},"oauth2":{"type":"oauth2","description":"OAuth 2.1 with PKCE for an agent acting for a person. Discover the endpoints at https://mithril.law/.well-known/oauth-protected-resource (RFC 9728) and https://mithril.law/.well-known/oauth-authorization-server (RFC 8414).","flows":{"authorizationCode":{"authorizationUrl":"https://mithril.law/api/auth/oauth2/authorize","tokenUrl":"https://mithril.law/api/auth/oauth2/token","scopes":{"runs:read":"See the runs made for you and their receipts.","runs:write":"Run operations for you.","handoffs:write":"Ask Mithril Law to take on your matter. You still confirm, sign and pay yourself.","bookings:write":"Hold a consultation or call time for you to confirm.","matter:read":"See your matter as the client portal shows it: status, dates, your tasks, shared documents and messages.","matter:documents:write":"Upload documents to your matter.","matter:messages:write":"Send messages to me on your matter.","billing:read":"See invoices, payments and legal aid certificate status on your matter."}}}}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Same key and same body replay the first response; same key and a different body is 409. Kept 24 hours."},"MithrilAgent":{"name":"Mithril-Agent","in":"header","required":false,"schema":{"type":"string"},"description":"`name/version` of the calling agent."},"MithrilAgentModel":{"name":"Mithril-Agent-Model","in":"header","required":false,"schema":{"type":"string"},"description":"`provider/model` behind the agent. Recorded in the model log."},"MithrilOnBehalfOf":{"name":"Mithril-On-Behalf-Of","in":"header","required":false,"schema":{"type":"string","enum":["person","organization","self"]}}},"headers":{"Request-Id":{"description":"Quote it when reporting a problem.","schema":{"type":"string"}}},"responses":{"E401":{"description":"Sign-in needed, or the token was not recognised. Carries `WWW-Authenticate: Bearer … resource_metadata=\"…\"`.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E403":{"description":"Not allowed. For OAuth, `WWW-Authenticate` names the missing scope (`insufficient_scope`).","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E404":{"description":"Not found, or not yours to see.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E409":{"description":"Conflict: an Idempotency-Key reused with a different body or still in progress, or the law is not verified yet (`unverified`).","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E422":{"description":"Invalid input. `details` lists `{ path, message }` for each fact.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E429":{"description":"Rate limited. See `Retry-After` and `RateLimit-*`.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E503":{"description":"The practice systems are unavailable. Try again later.","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found","invalid_input","unverified","unauthorized","forbidden","payment_required","rate_limited","conflict","upstream_unavailable","internal"]},"message":{"type":"string"},"hint":{"type":["string","null"]},"details":{}},"required":["code","message","hint","details"]},"requestId":{"type":"string"}},"required":["error","requestId"]},"Operation":{"type":"object","properties":{"object":{"type":"string","const":"operation"},"id":{"type":"string","description":"Dotted id, stable forever once published."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","general"]},"kind":{"type":"string","enum":["calculate","check","prepare","guide","action"]},"title":{"type":"string"},"summary":{"type":"string"},"guidance":{"type":"string","description":"When to call it and what to ask the person first."},"audience":{"type":"array","items":{"type":"string","enum":["person","organization","firm","agent"]}},"annotations":{"type":"object","properties":{"readOnly":{"type":"boolean"},"idempotent":{"type":"boolean"},"destructive":{"type":"boolean"},"openWorld":{"type":"boolean"}},"required":["readOnly","idempotent","destructive","openWorld"],"additionalProperties":{}},"personalData":{"type":"boolean","description":"The facts identify a person: runs and their receipt links are private."},"price":{"type":"object","properties":{"sku":{"type":["string","null"]},"title":{"type":"string"},"label":{"type":"string","description":"As printed on the site."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Cents, CAD, when the price is one fixed number; null when quoted."},"currency":{"type":"string","const":"CAD"},"kind":{"type":"string","enum":["free","one_time","subscription","metered","contingency","from","legal_aid","quote"]},"seller":{"type":"string","enum":["jonathan-kleiman","mithril-law"]},"sellerName":{"type":"string"},"pending":{"type":"boolean","description":"Not set yet: quoted before the person commits."},"trust":{"type":"boolean","description":"A legal fee paid before the work is done, held in trust (LSO By-Law 9)."},"description":{"type":"string"}},"required":["sku","title","label","amount","currency","kind","seller","sellerName","pending","trust","description"],"additionalProperties":{},"description":"A price from the catalog. Quote only these."},"metering":{"anyOf":[{"type":"object","properties":{"sku":{"type":["string","null"]},"title":{"type":"string"},"label":{"type":"string","description":"As printed on the site."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Cents, CAD, when the price is one fixed number; null when quoted."},"currency":{"type":"string","const":"CAD"},"kind":{"type":"string","enum":["free","one_time","subscription","metered","contingency","from","legal_aid","quote"]},"seller":{"type":"string","enum":["jonathan-kleiman","mithril-law"]},"sellerName":{"type":"string"},"pending":{"type":"boolean","description":"Not set yet: quoted before the person commits."},"trust":{"type":"boolean","description":"A legal fee paid before the work is done, held in trust (LSO By-Law 9)."},"description":{"type":"string"}},"required":["sku","title","label","amount","currency","kind","seller","sellerName","pending","trust","description"],"additionalProperties":{},"description":"A price from the catalog. Quote only these."},{"type":"null"}],"description":"Runs by API keys and OAuth tokens are metered at this price."},"access":{"type":"object","properties":{"anonymous":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["anonymous","scopes","note"],"additionalProperties":{}},"availability":{"type":"object","properties":{"status":{"type":"string","enum":["live","unverified"]},"unverifiedRules":{"type":"array","items":{"type":"string"}}},"required":["status","unverifiedRules"],"additionalProperties":{}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":["string","null"]},"url":{"type":"string"}},"required":["id","title","status","verifiedAt","url"],"additionalProperties":{}}},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"JSON Schema (2020-12) of the facts."},"output":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"JSON Schema (2020-12) of `result.output`."},"examples":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"input":{}},"required":["title","input"],"additionalProperties":{}}},"mcpTool":{"type":"string"},"links":{"type":"object","properties":{"self":{"type":"string"},"runs":{"type":"string","description":"POST here with `{ input }`."},"get":{"description":"GET here with the facts as query parameters. Null when the operation needs POST (personal facts, or it changes something).","type":["string","null"]},"page":{"type":"string","description":"The page for people."},"markdown":{"type":"string","description":"The tool as markdown; add the facts as query parameters for an answer."}},"required":["self","runs","get","page","markdown"],"additionalProperties":{}}},"required":["object","id","version","area","kind","title","summary","guidance","audience","annotations","personalData","price","metering","access","availability","rules","input","output","examples","mcpTool","links"],"additionalProperties":{}},"MissingFacts":{"type":"object","required":["object","operation","missing","next"],"properties":{"object":{"const":"missing_facts"},"operation":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}}},"message":{"type":"string"},"missing":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Dotted name, as a query parameter."},"title":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","description":"In words: `whole number`, `date, YYYY-MM-DD`, `one of: …`."},"allowed":{"type":["array","null"]},"problem":{"type":"string"},"example":{"description":"From the worked example, to show the format. Not the person's fact."}}}},"given":{"type":"object"},"ignoredParams":{"type":"array","items":{"type":"string"}},"next":{"type":"object","properties":{"template":{"type":"string","description":"The URL to fetch next, with a <placeholder> for each missing fact."},"example":{"type":"string","description":"The same URL filled with the worked example's values."}}}}},"PostRequired":{"type":"object","properties":{"object":{"const":"post_required"},"operation":{"type":"object"},"reason":{"enum":["personal_data","not_read_only"]},"message":{"type":"string"},"options":{"type":"object","properties":{"page":{"type":"string","description":"The page for the person, prefilled with the facts that are safe in a link."},"post":{"type":"object"},"mcp":{"type":"object"}}}}},"OperationList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"operation"},"id":{"type":"string","description":"Dotted id, stable forever once published."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","general"]},"kind":{"type":"string","enum":["calculate","check","prepare","guide","action"]},"title":{"type":"string"},"summary":{"type":"string"},"guidance":{"type":"string","description":"When to call it and what to ask the person first."},"audience":{"type":"array","items":{"type":"string","enum":["person","organization","firm","agent"]}},"annotations":{"type":"object","properties":{"readOnly":{"type":"boolean"},"idempotent":{"type":"boolean"},"destructive":{"type":"boolean"},"openWorld":{"type":"boolean"}},"required":["readOnly","idempotent","destructive","openWorld"],"additionalProperties":{}},"personalData":{"type":"boolean","description":"The facts identify a person: runs and their receipt links are private."},"price":{"type":"object","properties":{"sku":{"type":["string","null"]},"title":{"type":"string"},"label":{"type":"string","description":"As printed on the site."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Cents, CAD, when the price is one fixed number; null when quoted."},"currency":{"type":"string","const":"CAD"},"kind":{"type":"string","enum":["free","one_time","subscription","metered","contingency","from","legal_aid","quote"]},"seller":{"type":"string","enum":["jonathan-kleiman","mithril-law"]},"sellerName":{"type":"string"},"pending":{"type":"boolean","description":"Not set yet: quoted before the person commits."},"trust":{"type":"boolean","description":"A legal fee paid before the work is done, held in trust (LSO By-Law 9)."},"description":{"type":"string"}},"required":["sku","title","label","amount","currency","kind","seller","sellerName","pending","trust","description"],"additionalProperties":{},"description":"A price from the catalog. Quote only these."},"metering":{"anyOf":[{"type":"object","properties":{"sku":{"type":["string","null"]},"title":{"type":"string"},"label":{"type":"string","description":"As printed on the site."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Cents, CAD, when the price is one fixed number; null when quoted."},"currency":{"type":"string","const":"CAD"},"kind":{"type":"string","enum":["free","one_time","subscription","metered","contingency","from","legal_aid","quote"]},"seller":{"type":"string","enum":["jonathan-kleiman","mithril-law"]},"sellerName":{"type":"string"},"pending":{"type":"boolean","description":"Not set yet: quoted before the person commits."},"trust":{"type":"boolean","description":"A legal fee paid before the work is done, held in trust (LSO By-Law 9)."},"description":{"type":"string"}},"required":["sku","title","label","amount","currency","kind","seller","sellerName","pending","trust","description"],"additionalProperties":{},"description":"A price from the catalog. Quote only these."},{"type":"null"}],"description":"Runs by API keys and OAuth tokens are metered at this price."},"access":{"type":"object","properties":{"anonymous":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["anonymous","scopes","note"],"additionalProperties":{}},"availability":{"type":"object","properties":{"status":{"type":"string","enum":["live","unverified"]},"unverifiedRules":{"type":"array","items":{"type":"string"}}},"required":["status","unverifiedRules"],"additionalProperties":{}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":["string","null"]},"url":{"type":"string"}},"required":["id","title","status","verifiedAt","url"],"additionalProperties":{}}},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"JSON Schema (2020-12) of the facts."},"output":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"JSON Schema (2020-12) of `result.output`."},"examples":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"input":{}},"required":["title","input"],"additionalProperties":{}}},"mcpTool":{"type":"string"},"links":{"type":"object","properties":{"self":{"type":"string"},"runs":{"type":"string","description":"POST here with `{ input }`."},"get":{"description":"GET here with the facts as query parameters. Null when the operation needs POST (personal facts, or it changes something).","type":["string","null"]},"page":{"type":"string","description":"The page for people."},"markdown":{"type":"string","description":"The tool as markdown; add the facts as query parameters for an answer."}},"required":["self","runs","get","page","markdown"],"additionalProperties":{}}},"required":["object","id","version","area","kind","title","summary","guidance","audience","annotations","personalData","price","metering","access","availability","rules","input","output","examples","mcpTool","links"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}},"Run":{"type":"object","properties":{"object":{"type":"string","const":"run"},"id":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["id","version","title"],"additionalProperties":{}},"status":{"type":"string","const":"completed"},"createdAt":{"type":"string"},"result":{"type":"object","properties":{"output":{},"summary":{"type":"string","description":"One plain-English paragraph a person or an agent can repeat."},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"description":"Display value, for example `8 weeks` or `CAD 16,000`.","type":"string"},"detail":{"type":"string"},"cites":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Source id; GET /api/v1/sources/{id}."},"label":{"type":"string","description":"Human citation, for example `Employment Standards Act, 2000, s. 57(h)`."},"url":{"type":"string","description":"Authoritative URL: e-Laws, Justice Laws, Tribunals Ontario or the court."}},"required":["sourceId","label","url"],"additionalProperties":{}}}},"required":["label"],"additionalProperties":{}}},"boundary":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"automated"},"actions":{"description":"Optional next steps the person may take.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_person"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}},{"type":"object","properties":{"kind":{"type":"string","const":"needs_lawyer"},"reason":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["book_consultation","book_call","handoff","buy","file_yourself","serve","sign","run_operation","open_url"]},"label":{"type":"string"},"operation":{"description":"Operation to run next, when the action is another operation.","type":"string"},"href":{"type":"string"},"sku":{"type":"string"}},"required":["id","label"],"additionalProperties":{}}}},"required":["kind","reason","actions"],"additionalProperties":{}}],"description":"Where automation stops. `automated`: done. `needs_person`: the person must act (sign, serve, file from their own account). `needs_lawyer`: stop and offer the handoff; do not give legal advice."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mediaType":{"type":"string"},"href":{"description":"Present once the document exists. Paid documents are produced after payment.","type":"string"},"sku":{"description":"Catalog SKU when the document is paid.","type":"string"}},"required":["id","title","mediaType"],"additionalProperties":{}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["output","summary","steps","boundary"],"additionalProperties":{}},"law":{"type":"object","properties":{"asOf":{"type":"string","description":"The law as of this date (the run date)."},"verified":{"type":"boolean","description":"True when every rule the answer relied on was verified by a lawyer."},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":"string"}},"required":["id","title","status"],"additionalProperties":{}}}},"required":["asOf","verified","rules"],"additionalProperties":{}},"receipt":{"type":"object","properties":{"url":{"type":"string","description":"Human-readable receipt page. Private runs carry an access key: share it only with the person."},"jws":{"type":"string","description":"Compact JWS (EdDSA) signed with the key at /.well-known/jwks.json."}},"required":["url","jws"],"additionalProperties":{}},"superseded":{"type":"boolean","description":"True when a rule this answer relied on changed after the run."},"supersededAt":{"type":["string","null"]},"payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"links":{"type":"object","properties":{"self":{"type":"string"},"receipt":{"type":"string"},"verify":{"type":"string"}},"required":["self","receipt","verify"],"additionalProperties":{}}},"required":["object","id","operation","status","createdAt","result","law","receipt","superseded","supersededAt","links"],"additionalProperties":{}},"Payment":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"price":{"type":"object","properties":{"label":{"type":"string","description":"The price as printed on the site, for example `CAD 149` or `Quoted before you commit`."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Amount in cents (CAD) when the price is a fixed number; null otherwise."},"currency":{"type":"string","const":"CAD"}},"required":["label","amount","currency"],"additionalProperties":{}},"checkoutUrl":{"type":"string","description":"Give this to the person. Only the person can pay."},"documents":{"type":"array","items":{"type":"string"},"description":"Ids of the documents this payment unlocks."}},"required":["sku","title","price","checkoutUrl","documents"],"additionalProperties":{},"description":"Present when a paid step has not been paid for."},"Price":{"type":"object","properties":{"sku":{"type":["string","null"]},"title":{"type":"string"},"label":{"type":"string","description":"As printed on the site."},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Cents, CAD, when the price is one fixed number; null when quoted."},"currency":{"type":"string","const":"CAD"},"kind":{"type":"string","enum":["free","one_time","subscription","metered","contingency","from","legal_aid","quote"]},"seller":{"type":"string","enum":["jonathan-kleiman","mithril-law"]},"sellerName":{"type":"string"},"pending":{"type":"boolean","description":"Not set yet: quoted before the person commits."},"trust":{"type":"boolean","description":"A legal fee paid before the work is done, held in trust (LSO By-Law 9)."},"description":{"type":"string"}},"required":["sku","title","label","amount","currency","kind","seller","sellerName","pending","trust","description"],"additionalProperties":{},"description":"A price from the catalog. Quote only these."},"Rule":{"type":"object","properties":{"object":{"type":"string","const":"rule"},"id":{"type":"string"},"area":{"type":"string"},"title":{"type":"string"},"statement":{"type":"string","description":"The rule exactly as the code implements it."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string","description":"Content hash of statement, sources, version and worked examples. A lawyer verifies this exact hash."},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":["string","null"]},"verifiedBy":{"type":["string","null"]},"notes":{"type":["string","null"]},"sources":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"source"},"id":{"type":"string"},"kind":{"type":"string"},"instrument":{"type":"string"},"short":{"type":"string"},"provision":{"type":["string","null"]},"citation":{"type":"string"},"url":{"type":"string","description":"Authoritative: e-Laws, Justice Laws, Tribunals Ontario or the court."},"currentTo":{"type":["string","null"]},"readOn":{"type":"string"},"links":{"type":"object","properties":{"self":{"type":"string"}},"required":["self"],"additionalProperties":{}}},"required":["object","id","kind","instrument","short","provision","citation","url","currentTo","readOn","links"],"additionalProperties":{}}},"examples":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"facts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"expected":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["title","facts","expected"],"additionalProperties":{}}},"operations":{"type":"array","items":{"type":"string"}},"links":{"type":"object","properties":{"self":{"type":"string"},"register":{"type":"string"}},"required":["self","register"],"additionalProperties":{}}},"required":["object","id","area","title","statement","version","hash","status","verifiedAt","verifiedBy","notes","sources","examples","operations","links"],"additionalProperties":{}},"RuleList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"rule"},"id":{"type":"string"},"area":{"type":"string"},"title":{"type":"string"},"statement":{"type":"string","description":"The rule exactly as the code implements it."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string","description":"Content hash of statement, sources, version and worked examples. A lawyer verifies this exact hash."},"status":{"type":"string","enum":["verified","unverified","stale"]},"verifiedAt":{"type":["string","null"]},"verifiedBy":{"type":["string","null"]},"notes":{"type":["string","null"]},"sources":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"source"},"id":{"type":"string"},"kind":{"type":"string"},"instrument":{"type":"string"},"short":{"type":"string"},"provision":{"type":["string","null"]},"citation":{"type":"string"},"url":{"type":"string","description":"Authoritative: e-Laws, Justice Laws, Tribunals Ontario or the court."},"currentTo":{"type":["string","null"]},"readOn":{"type":"string"},"links":{"type":"object","properties":{"self":{"type":"string"}},"required":["self"],"additionalProperties":{}}},"required":["object","id","kind","instrument","short","provision","citation","url","currentTo","readOn","links"],"additionalProperties":{}}},"examples":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"facts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"expected":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["title","facts","expected"],"additionalProperties":{}}},"operations":{"type":"array","items":{"type":"string"}},"links":{"type":"object","properties":{"self":{"type":"string"},"register":{"type":"string"}},"required":["self","register"],"additionalProperties":{}}},"required":["object","id","area","title","statement","version","hash","status","verifiedAt","verifiedBy","notes","sources","examples","operations","links"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}},"Source":{"type":"object","properties":{"object":{"type":"string","const":"source"},"id":{"type":"string"},"kind":{"type":"string"},"instrument":{"type":"string"},"short":{"type":"string"},"provision":{"type":["string","null"]},"citation":{"type":"string"},"url":{"type":"string","description":"Authoritative: e-Laws, Justice Laws, Tribunals Ontario or the court."},"currentTo":{"type":["string","null"]},"readOn":{"type":"string"},"links":{"type":"object","properties":{"self":{"type":"string"}},"required":["self"],"additionalProperties":{}},"rules":{"type":"array","items":{"type":"string"}},"watch":{"anyOf":[{"type":"object","properties":{"status":{"type":"string"},"lastCheckedAt":{"type":["string","null"]},"observedCurrentTo":{"type":["string","null"]},"changedAt":{"type":["string","null"]}},"required":["status","lastCheckedAt","observedCurrentTo","changedAt"],"additionalProperties":{}},{"type":"null"}],"description":"What the law-change watcher last saw."}},"required":["object","id","kind","instrument","short","provision","citation","url","currentTo","readOn","links","rules","watch"],"additionalProperties":{}},"Receipt":{"type":"object","properties":{"object":{"type":"string","const":"receipt"},"id":{"type":"string"},"jws":{"type":"string"},"header":{"anyOf":[{"type":"object","properties":{"alg":{"type":"string"},"kid":{"type":"string"},"typ":{"type":"string"}},"additionalProperties":{}},{"type":"null"}]},"claims":{"anyOf":[{"type":"object","properties":{"receipt":{"type":"number","const":1},"run":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","version"],"additionalProperties":{}},"input":{"type":"string","description":"sha256 of the canonical JSON of the facts."},"output":{"description":"sha256 of the canonical JSON of the answer.","type":["string","null"]},"asOf":{"type":"string"},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string"},"status":{"type":"string"},"verifiedAt":{"type":"string"}},"required":["id","version","hash","status"],"additionalProperties":{}}},"boundary":{"type":["string","null"]},"status":{"type":"string","enum":["completed","failed"]}},"required":["receipt","run","operation","input","output","asOf","rules","boundary","status"],"additionalProperties":{}},{"type":"null"}]},"issuer":{"type":"string"},"issuedAt":{"type":["string","null"]},"superseded":{"type":"boolean"},"supersededAt":{"type":["string","null"]},"links":{"type":"object","properties":{"verify":{"type":"string"},"jwks":{"type":"string"},"run":{"type":"string"}},"required":["verify","jwks","run"],"additionalProperties":{}}},"required":["object","id","jws","header","claims","issuer","issuedAt","superseded","supersededAt","links"],"additionalProperties":{}},"ReceiptVerification":{"type":"object","properties":{"object":{"type":"string","const":"receipt_verification"},"valid":{"type":"boolean"},"reason":{"anyOf":[{"type":"string","enum":["malformed","signature"]},{"type":"null"}]},"header":{"anyOf":[{"type":"object","properties":{"alg":{"type":"string"},"kid":{"type":"string"},"typ":{"type":"string"}},"additionalProperties":{}},{"type":"null"}]},"issuer":{"type":["string","null"]},"issuedAt":{"type":["string","null"]},"claims":{"anyOf":[{"type":"object","properties":{"receipt":{"type":"number","const":1},"run":{"type":"string"},"operation":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","version"],"additionalProperties":{}},"input":{"type":"string","description":"sha256 of the canonical JSON of the facts."},"output":{"description":"sha256 of the canonical JSON of the answer.","type":["string","null"]},"asOf":{"type":"string"},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string"},"status":{"type":"string"},"verifiedAt":{"type":"string"}},"required":["id","version","hash","status"],"additionalProperties":{}}},"boundary":{"type":["string","null"]},"status":{"type":"string","enum":["completed","failed"]}},"required":["receipt","run","operation","input","output","asOf","rules","boundary","status"],"additionalProperties":{}},{"type":"null"}]},"run":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"found":{"type":"boolean"},"superseded":{"type":"boolean"},"supersededAt":{"type":["string","null"]}},"required":["id","found","superseded","supersededAt"],"additionalProperties":{}},{"type":"null"}]},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string"},"statusAtRun":{"type":"string"},"verifiedAtRun":{"type":["string","null"]},"current":{"anyOf":[{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hash":{"type":"string"},"status":{"type":"string"},"verifiedAt":{"type":["string","null"]}},"required":["version","hash","status","verifiedAt"],"additionalProperties":{}},{"type":"null"}]},"changed":{"type":"boolean","description":"The rule's statement, sources or worked examples changed since the run."}},"required":["id","version","hash","statusAtRun","verifiedAtRun","current","changed"],"additionalProperties":{}}},"superseded":{"type":"boolean","description":"The law behind the answer changed after it was given. Run the operation again before repeating it."},"jwks":{"type":"string"},"checkedAt":{"type":"string"}},"required":["object","valid","reason","header","issuer","issuedAt","claims","run","rules","superseded","jwks","checkedAt"],"additionalProperties":{}},"HandoffRequest":{"type":"object","properties":{"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","general"],"description":"Area of law."},"kind":{"type":"string","enum":["consultation","call"],"description":"`consultation`: a consultation about the matter. `call`: a short call to see whether I can help."},"summary":{"type":"string","minLength":1,"maxLength":4000,"description":"What the person needs, in their words or a faithful summary of them. Facts only; no legal conclusions."},"person":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The person's full name, as they gave it."},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"The person's own email. The consent link is confirmed there."},"phone":{"description":"Optional phone number.","type":"string","maxLength":40}},"required":["name","email"]},"parties":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","enum":["opposing","employer","landlord","tenant","co-accused","complainant","related","other"]}},"required":["name","role"]},"description":"Everyone on the other side or involved (employer, landlord, complainant…). Needed for the conflict check (LSO Rule 3.4). Empty only when there truly is no one."},"runId":{"description":"A run whose facts and documents should come with the matter.","type":"string","maxLength":64},"urgency":{"description":"How soon the person needs help. `today` for arrests, hearings or deadlines within a day.","type":"string","enum":["today","this_week","normal"]},"legalAid":{"description":"Criminal matters only.","type":"object","properties":{"certificateNumber":{"description":"A Legal Aid Ontario certificate number, if the person has one.","type":"string","maxLength":40},"applied":{"description":"True if the person has applied to Legal Aid Ontario.","type":"boolean"}}},"preferredSlotId":{"description":"A slot id from slots_list / GET /slots. The person confirms it on the consent page.","type":"string","maxLength":128}},"required":["area","kind","summary","person","parties"]},"Handoff":{"type":"object","properties":{"object":{"type":"string","const":"handoff"},"id":{"type":"string"},"status":{"type":"string","enum":["awaiting_person","conflict_check","referred","booked","engagement_sent","engaged","matter_open","declined","cancelled"]},"area":{"type":"string","enum":["employment","ltb","corporate","criminal","small-claims","general"]},"kind":{"type":"string","enum":["consultation","call"]},"consentUrl":{"type":"string","description":"Give this to the person and to no one else."},"booking":{"type":"object","properties":{"slotId":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"videoUrl":{"type":"string"}},"required":["slotId","startsAt","endsAt"],"additionalProperties":{}},"referral":{"description":"Present when a conflict meant referring the person elsewhere. No details of the conflict are ever shared.","type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":{}},"engagement":{"type":"object","properties":{"kind":{"type":"string","enum":["limited_scope","full","contingency","legal_aid"]},"signedAt":{"type":"string"}},"required":["kind"],"additionalProperties":{}},"matter":{"type":"object","properties":{"portalUrl":{"type":"string"}},"required":["portalUrl"],"additionalProperties":{}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"agentInstructions":{"type":"string"}},"required":["object","id","status","area","kind","consentUrl","createdAt","updatedAt","agentInstructions"],"additionalProperties":{}},"SlotList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["consultation","call","consulting_call"]},"startsAt":{"type":"string"},"endsAt":{"type":"string"}},"required":["id","kind","startsAt","endsAt"],"additionalProperties":{}}},"from":{"type":"string"},"to":{"type":"string"}},"required":["object","data","from","to"],"additionalProperties":{}},"BookingRequest":{"type":"object","properties":{"slotId":{"type":"string","minLength":1,"maxLength":128,"description":"A slot id from slots_list / GET /slots."},"kind":{"type":"string","enum":["consultation","call","consulting_call"],"description":"Must match the slot's kind."},"person":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The person's full name, as they gave it."},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"The person's own email. The consent link is confirmed there."},"phone":{"description":"Optional phone number.","type":"string","maxLength":40}},"required":["name","email"]},"note":{"description":"Anything the person wants me to know before the call.","type":"string","maxLength":2000},"handoffId":{"description":"The handoff this booking belongs to, if any.","type":"string","maxLength":64}},"required":["slotId","kind","person"]},"Booking":{"type":"object","properties":{"object":{"type":"string","const":"booking"},"id":{"type":"string"},"kind":{"type":"string","enum":["consultation","call","consulting_call"]},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"status":{"type":"string","enum":["held","confirmed","cancelled"]},"videoUrl":{"type":"string"},"confirmUrl":{"description":"For a held booking: the person confirms here. Give it only to the person.","type":"string"},"agentInstructions":{"type":"string"}},"required":["object","id","kind","startsAt","endsAt","status"],"additionalProperties":{}},"WebhookEndpoint":{"type":"object","properties":{"object":{"type":"string","const":"webhook_endpoint"},"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"createdAt":{"type":"string"},"secret":{"description":"Only in the response that created the endpoint.","type":"string"}},"required":["object","id","url","events","active","createdAt"],"additionalProperties":{}},"WebhookEndpointList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"webhook_endpoint"},"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"createdAt":{"type":"string"},"secret":{"description":"Only in the response that created the endpoint.","type":"string"}},"required":["object","id","url","events","active","createdAt"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}}