Skip to main content
Glama

search

Search Canadian legal databases for cases, legislation, and commentary using keywords and jurisdiction filters to find relevant legal sources.

Instructions

Search CanLII for cases, legislation, and commentary by keyword. This is the primary entry point for legal research. Returns case citations and titles ranked by relevance — does NOT include keywords, dates, or URLs. Call get_case_metadata on promising results to get full details before citing a case. Search is keyword-based, not semantic — use specific legal terms rather than natural language. Common terms: 'best interests of the child', 'material change in circumstances', 'standard of review', 'duty to consult', 'reasonable expectation of privacy'. Include jurisdiction to narrow results (e.g., 'Ontario', 'Alberta'). Date filters are NOT supported on search. Always cite the CanLII citation and provide the case URL so the user can verify the source.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesFull-text search query. Can include case names, legal concepts, legislation references, or keywords.
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
resultCountNoNumber of results to return (1-100, default 10). Keep low for AI context efficiency.
offsetNoPagination offset (default 0). Use to page through results.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden and excels: it discloses that returns are ranked by relevance, include citations and titles but not keywords/dates/URLs, date filters are unsupported, and it requires specific legal terms. It also notes the need to verify sources via URLs, adding rich behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with core purpose, followed by usage tips and constraints. Every sentence adds value—no fluff—making it efficiently structured and appropriately sized for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity and lack of annotations/output schema, the description is highly complete: it covers purpose, usage, behavioral traits, limitations (no date filters), and next steps (use get_case_metadata). It provides all necessary context for effective agent use without redundancy.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters well. The description adds minimal param-specific info beyond the schema, such as implying 'query' should use specific legal terms and jurisdiction, but doesn't detail syntax or format. Baseline 3 is appropriate as the schema does heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches CanLII for cases, legislation, and commentary by keyword, specifying it's the primary entry point for legal research. It distinguishes from siblings by mentioning get_case_metadata for full details, making the purpose specific and differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is provided: use this for keyword-based search (not semantic), include jurisdiction to narrow results, call get_case_metadata for full details before citing, and avoid date filters. It clearly states when to use this tool versus alternatives like get_case_metadata.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mohammadfarooqi/canlii-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server