{"ok":true,"site":{"host":"nicoh-yay.github.io","url":"https://nicoh-yay.github.io/contractclarity/","type":"live","desc":"Load a contract and the page pulls out the terms and flags the risky clauses on its own, then exposes those findings to your AI agent through WebMCP. Nothing leaves your browser.","tools":[{"name":"get_contract","kind":"answer","impl":"imperative","description":"Return the full text of a loaded contract. which is primary or secondary.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]}},"required":["which"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"set_contract","kind":"act","impl":"imperative","description":"Set or replace the text of a contract on the page. which is primary or secondary.","annotations":{"readOnlyHint":false},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]},"text":{"type":"string"}},"required":["which","text"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"analyze_contract","kind":"act","impl":"imperative","description":"Run the on-page analysis of a contract and return the extracted terms, the detected risk flags with severity and a snippet, and a readability read. The page computes this structure over the text.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]}},"required":["which"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"list_risk_flags","kind":"answer","impl":"imperative","description":"Return just the risky clauses the page detected in a contract, each with a severity, a short reason, and the matching snippet.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]}},"required":["which"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"extract_terms","kind":"act","impl":"imperative","description":"Return the terms the page pulled from a contract: parties, effective date, term length, notice period, payment terms, governing law, amounts, and dates.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]}},"required":["which"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"get_clause","kind":"answer","impl":"imperative","description":"Return the passage of a contract that covers a topic: termination, payment, liability, confidentiality, renewal, indemnification, governing law, or non-compete.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]},"topic":{"type":"string"}},"required":["which","topic"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"assess_risk","kind":"act","impl":"imperative","description":"Return an overall risk read for a contract: a 0 to 100 score, a level (Low, Moderate, Elevated, High), counts by severity, and the flagged clauses. The page computes this from its clause rulebook.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]}},"required":["which"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"compare_contracts","kind":"act","impl":"imperative","description":"Compare the primary and secondary contracts on which risk clauses each contains and on their terms. Returns a matrix and a term comparison.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"list_sections","kind":"answer","impl":"imperative","description":"List the numbered sections the page found in a contract, with their headings. Use this to request a single section by itself.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]}},"required":["which"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"get_clause_by_id","kind":"answer","impl":"imperative","description":"Return the text of one numbered section by its id, from its heading to the next section. Reference the id from list_sections.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]},"sectionId":{"type":"string"}},"required":["which","sectionId"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"explain_flag","kind":"answer","impl":"imperative","description":"Return the full detail of one risk flag by its id: severity, confidence, why it matters, whether it needs review, the section it came from, and the exact quote.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"which":{"type":"string","enum":["primary","secondary"]},"flagId":{"type":"string"}},"required":["which","flagId"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"compare_selected_clauses","kind":"act","impl":"imperative","description":"Compare specific clause topics across both contracts and return the passage from each side. Topics: termination, payment, liability, confidentiality, renewal, indemnification, governing law, non-compete.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"string"}}},"required":["topics"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"get_mentor_guidance","kind":"answer","impl":"imperative","description":"Return the app-owned guidance for talking about a contract: a mentor role, behavior rules, and an answer format. Read this first so the explanation stays grounded in the evidence the page returns and does not give a legal verdict.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"},{"name":"get_both_contracts","kind":"answer","impl":"imperative","description":"Return the full text of both contracts at once.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/contractclarity/"}],"category":"Productivity & Business","apiSurface":"spec","toolCount":14}}