WE ARE AVAILABLE FOR NEW AI & DIGITAL PROJECTS

REAL-TIME STATUTORY FLAGGING

Spot Legal Risks
While You Design

Easy to miss when you only think about the code. Rulewise flags statutory requirements before you write a single migration — citing the exact Sri Lankan Act and section.

Fact: collects_phone_numbersFact: sends_promotional_smsJurisdiction: LK
PROMPT SCENARIO

“An online shop app saves customers' phone numbers and sends them offers by SMS.”

Personal Data Protection Acts.27(1)
Must

Promotional messages need consent and an easy opt-out

Ask for a separate yes before sending offers, and put a free opt-out in every SMS.

Personal Data Protection Acts.11; Schedule V
Must

Tell users what you collect and why

Show a privacy notice when people sign up: what you collect, why, and who gets it.

HOW IT WORKS

Three Steps To
Legal Confidence

//01

Add Rulewise to Your AI Tool

Connect Claude Code, OpenAI Codex, VS Code, or Cursor over HTTP. It takes one line of setup — no sign-up or API keys required.

//02

Plan or Build as Usual

When you describe a feature, your AI calls get_fact_questions and check_legal_risks to verify short facts against Sri Lankan law.

//03

Get Warnings With the Law

Each warning shows how serious it is (Must / Should), the exact Act and section behind it, what to build, and what to ask a lawyer.

WHAT IT COVERS

Sri Lankan Statutory
Coverage Areas

Sri Lankan law, for the areas software most often runs into. Every result also lists what it does not cover, so a short result is never mistaken for an all-clear.

Each rule quotes the official text, links to it, and shows when it was last checked.

Personal data

PDPA

Personal Data Protection Act No. 9 of 2022, as amended in 2025

Consent flows, privacy notices, cross-border transfers, data retention, and direct marketing opt-outs.

Payments

CBSL

Payment and Settlement Systems Act and Central Bank regulations

Stored-value wallets, payment aggregation, escrow mechanics, and licensed gateway requirements.

AI features

AI / ML

Training on user data, bots, AI giving medical advice

Automated decision disclosures, secondary model training consent, and regulated advice boundaries.

Online content

OSA

Online Safety Act No. 9 of 2024

User-generated content moderation, takedown workflows, and platform safety obligations.

Consumer rights

CAA

Consumer Affairs Authority Act No. 9 of 2003

Transparent pricing, refund policies, warranty disclosures, and unfair trade practice guardrails.

Online contracts

ETA

Electronic Transactions Act No. 19 of 2006, as amended in 2017

Clickwrap enforceability, electronic signatures, and automated contract formation.

Cybercrime

CCA

Computer Crime Act No. 24 of 2007

Unauthorized access boundaries, security testing scope, and system integrity rules.

Copyright

IP ACT

Intellectual Property Act No. 36 of 2003

Content scraping, licensing, user uploads, and software intellectual property ownership.

Professions

REGULATED

Rules that limit platforms for doctors and lawyers

Fee-splitting prohibitions, advertising restrictions, and professional directory rules.

LLM-Ready Documentation

MARKDOWN

Feed the entire Rulewise documentation, MCP server URL, tool schemas, and setup rules directly into ChatGPT, Claude, Cursor, or your project's AGENTS.md.

DOCUMENTATION & SETUP

Add It To Your
AI Tool

Rulewise is an MCP server, so it works with any AI tool that supports MCP. When you plan or build a feature, your AI checks it and explains the result.

Nothing to install: add the Rulewise address to your AI tool, then restart it. Then describe what you're building and where your users are. That's all.

HTTP MCP ENDPOINT
https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp
Run in your terminal:
claude mcp add --transport http rulewise https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp

MCP PROTOCOL REFERENCE

Exposed MCP Tools

get_fact_questions()STEP 1 · DISCOVERY

Called by your AI assistant when you describe a feature or product idea. Returns concise, structured fact questions (e.g., whether the app collects phone numbers, sends marketing messages, or processes payments) without exposing your codebase.

Parameters{ "domain_hint"?: string }
ReturnsStructured list of short binary/categorical fact questions for the AI to infer or ask.
check_legal_risks()STEP 2 · STATUTORY CHECK

Evaluates the confirmed short facts and jurisdiction code (e.g., 'LK') against verified Sri Lankan statutes. Returns severity-ranked warnings, official Act citations, engineering action items, and questions for legal counsel.

Parameters{ "facts": string[], "countries": ["LK"] }
ReturnsMatched statutory rules, severity levels (Must / Should), official text citations, and uncovered scope list.

ZERO-TRUST ARCHITECTURE

Your Idea
Stays Yours.

Your AI tool reads your idea on your side. Rulewise only gets short facts, such as “collects phone numbers” or “takes card payments”, never your idea or your code.

Nothing is saved: no account, no cookies, no analytics, and no record of who asked what. Web IP logs are intentionally disabled, and rate-limiting counters live only in volatile memory for a few minutes.

No Sign-UpZero Code TransmittedNo IP LoggingOpen Issue Tracker on GitHub

Important Legal Notice: Rulewise gives legal information to help you spot issues. It is not legal advice and does not make your product compliant. Ask a Sri Lankan lawyer before you decide. Covers Sri Lankan law only. Rules marked draft are not yet reviewed by a lawyer. Need custom enterprise compliance automation or see an issue? Open an issue on GitHub or talk to FiveNeurals.

FAQS

Rulewise FAQs

Your AI tool reads what you are building on your own machine. It sends Rulewise only a short list of abstract facts — such as 'collects phone numbers' or 'takes card payments' — along with the country code ('LK'). Rulewise never receives your idea description, source code, filenames, or personal data, and stores nothing.

Rulewise is built on the open Model Context Protocol (MCP) over HTTP. It works out of the box with Claude Code, OpenAI Codex CLI, VS Code (GitHub Copilot MCP), Cursor, and any MCP-compatible AI client with a single configuration snippet.

No. Rulewise provides legal information to help engineers and founders spot statutory requirements early. It is not legal advice and does not certify compliance. Every warning includes tailored questions you can take directly to a Sri Lankan lawyer.

Rulewise covers Personal Data (PDPA No. 9 of 2022 as amended in 2025), Payments (Payment & Settlement Systems Act and CBSL regulations), AI Features, Online Content (Online Safety Act No. 9 of 2024), Consumer Rights (CAA Act No. 9 of 2003), Online Contracts (Electronic Transactions Act No. 19 of 2006), Cybercrime (Computer Crime Act No. 24 of 2007), Copyright (IP Act No. 36 of 2003), and regulated Professions.

Yes. Rulewise is completely free to use during Beta with no sign-up, no API keys, and no cookies or tracking.

LET’s start
your project

LEGAL INTELLIGENCEZERO-TRUST MCP

OFFICES

  • Sri Lanka HQ

    Kahanthota, Malabe
    Colombo
    Sri Lanka

  • Hours

    Mon – Fri, 9am – 6pm
    GMT+5:30
    Remote-first, global delivery