check_legal_risks
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"users_in": "<users_in>",
"facts": "<facts>"
},
"name": "check_legal_risks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | No | rule_id values of warnings the user says are already handled. Only when the user says so; they are listed as 'done', not verified. | |
| facts | Yes | List of the facts that are true, from get_fact_questions | |
| users_in | Yes | ISO country codes where users are, as the user said, e.g. ['LK'] | |
| company_in | No | ISO country code where the company (or maker) is, e.g. 'LK' | |
| processing_in | No | ISO country codes where data is stored or processed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||