search_canlii
Search the Canadian legal database for full-text judgments and documents by keyword, phrase, or case name.
Instructions
Search the CanLII Canadian legal database and return the full text of matching documents.
search_type values:
'text': full-text search within document bodies — use for legal concepts, keywords, or phrases in judgments
'name': search by case name, document title, file number, author, or citation — use for 'R v Oakes' or '2024 SCC 12'
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": {
"query": "<query>"
},
"name": "search_canlii"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query | |
| max_results | No | Number of documents to fetch and return | |
| search_type | No | Which CanLII search box to use | text |