Rulewise

Warns developers which Sri Lankan laws apply to what they build. Legal information, not advice.

Should I use this

Quality & Safety

A
Description quality
95%
Schema completeness
74%
Naming quality
100%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~1,083Tokens (tool definitions)
~2.1 KBTypical response size
Moderate attention impact (0.85% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "rulewise": {
      "url": "https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp"
    }
  }
}

Remote endpoints

https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcpstreamable-http

What it can do

Tool inventory

Tools (4)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢check_legal_risks(users_in, facts, company_in, processing_in, done)

Check a planned or new feature for legal risks. Call this whenever the user plans or builds a feature for a product used in Sri Lanka, or made by a Sri Lankan company or person, even if they didn't ask about law. If the user hasn't said where the users or company are, ask them first; never guess the country. Send country codes and facts from get_fact_questions only (no idea text, no code). Returns warnings with severity (Must / Should / Check with a lawyer), the law and section, what to do, and the areas NOT covered.

Input Schema

{
  "type": "object",
  "properties": {
    "users_in": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        }
      ],
      "description": "ISO country codes where users are, as the user said, e.g. ['LK']",
      "title": "Users In"
    },
    "facts": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "additionalProperties": {
            "type": "boolean"
          },
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "List of the facts that are true, from get_fact_questions",
      "title": "Facts"
    },
    "company_in": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ISO country code where the company (or maker) is, e.g. 'LK'",
      "title": "Company In"
    },
    "processing_in": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ISO country codes where data is stored or processed",
      "title": "Processing In"
    },
    "done": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "rule_id values of warnings the user says are already handled. Only when the user says so; they are listed as 'done', not verified.",
      "title": "Done"
    }
  },
  "required": [
    "users_in",
    "facts"
  ],
  "title": "check_legal_risksArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "check_legal_risksDictOutput"
}
🟢get_fact_questions

List the facts check_legal_risks understands, grouped, each with the question it answers. Call once before check_legal_risks.

Input Schema

{
  "type": "object",
  "properties": {},
  "title": "get_fact_questionsArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_fact_questionsDictOutput"
}
🟢get_rule(rule_id)

Get one rule in full, including the exact quote from the law and its official source link. Use it to show proof for a warning.

Input Schema

{
  "type": "object",
  "properties": {
    "rule_id": {
      "description": "rule_id from a check_legal_risks warning",
      "title": "Rule Id",
      "type": "string"
    }
  },
  "required": [
    "rule_id"
  ],
  "title": "get_ruleArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_ruleDictOutput"
}
🟢get_checklist(users_in, facts, company_in, processing_in, law)

Get a law checklist for the product, for example the PDPA 2027 checklist: the rules of that law that apply to these facts, each with what to look for in the code (look_for) or ask the user (ask). Use it when the user asks whether their project is ready for the PDPA. Send country codes and facts only. Mark each item Found (with file and line), Missing or Can't tell from code; never give a score.

Input Schema

{
  "type": "object",
  "properties": {
    "users_in": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        }
      ],
      "description": "ISO country codes where users are, as the user said, e.g. ['LK']",
      "title": "Users In"
    },
    "facts": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "additionalProperties": {
            "type": "boolean"
          },
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "List of the facts that are true, from get_fact_questions",
      "title": "Facts"
    },
    "company_in": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ISO country code where the company (or maker) is, e.g. 'LK'",
      "title": "Company In"
    },
    "processing_in": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ISO country codes where data is stored or processed",
      "title": "Processing In"
    },
    "law": {
      "default": "pdpa",
      "description": "Which checklist: 'pdpa'",
      "title": "Law",
      "type": "string"
    }
  },
  "required": [
    "users_in",
    "facts"
  ],
  "title": "get_checklistArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_checklistDictOutput"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded4 tools