Skip to main content
Glama

Сервер CanLII MCP

npm version License: MIT

Сервер Model Context Protocol (MCP) для поиска канадской юридической информации через API CanLII. Ищите судебные дела, просматривайте законодательство и проверяйте цитирования — всё это из Claude Desktop или Claude Code.

npx canlii-mcp

Возможности

  • Полнотекстовый поиск — поиск по всему CanLII по ключевым словам, названию дела или юридическому понятию

  • Цитирование дел (Citator) — проверка актуальности судебного решения путем поиска дел, ссылающихся на него

  • Просмотр законодательства — просмотр статутов и нормативных актов по юрисдикциям

  • Двуязычность — поддержка английского и французского языков во всех инструментах, включая цитатор

  • 9 инструментов — поиск, просмотр судов, просмотр дел, метаданные дел, полный цитатор, предварительный просмотр цитатора, базы данных законодательства, просмотр законодательства, метаданные законодательства

  • Встроенное ограничение частоты запросов — очередь последовательных запросов соблюдает лимиты API CanLII (2 запроса/сек, 1 одновременный, 5000/день)

  • Валидация ввода — все параметры проверяются регулярными выражениями и кодируются в URI для предотвращения инъекций

  • Минимальный объем — 2 зависимости времени выполнения, ~500 строк кода, работает локально как процесс stdio

  • Безопасность прежде всего — нет доступа к файловой системе, нет выполнения команд оболочки, соединение только с api.canlii.org

Related MCP server: canlii-mcp

Быстрый старт

Предварительные требования: Node.js 18+ и ключ API CanLII (бесплатно для исследовательских целей).

Claude Desktop — добавьте в конфигурацию (~/Library/Application Support/Claude/claude_desktop_config.json на macOS):

{
  "mcpServers": {
    "canlii": {
      "command": "npx",
      "args": ["-y", "canlii-mcp"],
      "env": {
        "CANLII_API_KEY": "your_api_key_here"
      }
    }
  }
}

После сохранения перезапустите Claude Desktop.

Claude Code:

claude mcp add canlii -e CANLII_API_KEY=your_key -- npx -y canlii-mcp

Из исходного кода (для разработки):

git clone https://github.com/mohammadfarooqi/canlii-mcp.git
cd canlii-mcp
npm install && npm run build

Доступные инструменты (9)

Полнотекстовый поиск по ключевым словам по всему CanLII — делам, законодательству и комментариям. Это основная точка входа для юридических исследований.

search({ query: "material change in circumstances Ontario", resultCount: 10 })

get_courts_and_tribunals

Список всех доступных баз данных судов и трибуналов. Возвращает ID баз данных, необходимые для других инструментов.

Ключевые базы данных Онтарио: onsc (Высший суд), onca (Апелляционный суд), oncj (Суд правосудия), csc-scc (Верховный суд Канады).

get_case_law_decisions

Просмотр судебных решений из конкретной базы данных суда, отсортированных по дате добавления. Поддерживает фильтры по дате.

get_case_law_decisions({ databaseId: "onsc", resultCount: 20 })

get_case_metadata

Получение полной информации по конкретному делу — цитирование, дата решения, номер дела, ключевые слова и URL CanLII для чтения полного текста решения.

get_case_metadata({ databaseId: "onsc", caseId: "2021onsc8582" })

get_case_citator

Поиск связей цитирования для дела. Используйте citingCases, чтобы проверить, является ли дело действующим прецедентом.

get_case_citator({ databaseId: "csc-scc", caseId: "1996canlii190", metadataType: "citingCases" })

get_case_citator_tease

Быстрый предварительный просмотр цитирований, возвращающий максимум 5 результатов. Быстрее, чем полный цитатор, для быстрой проверки.

get_case_citator_tease({ databaseId: "csc-scc", caseId: "1996canlii190", metadataType: "citingCases" })

get_legislation_databases

Список всех баз данных законодательства. Онтарио: ons (Статуты), onr (Нормативные акты). Федеральные: cas (Статуты), car (Нормативные акты).

browse_legislation

Список законодательных актов в конкретной базе данных.

browse_legislation({ databaseId: "ons" })

get_legislation_regulation_metadata

Получение метаданных для конкретного статута или нормативного акта, включая его URL на CanLII.

Типичный рабочий процесс исследования

  1. Поиск — search({ query: "gatekeeping parenting time" }) для поиска релевантных дел

  2. Получение деталей — get_case_metadata(...) для получения полного цитирования и URL CanLII

  3. Проверка цитирований — get_case_citator(..., metadataType: "citingCases") для проверки того, что дело является действующим прецедентом

  4. Чтение решения — Нажмите на URL CanLII, чтобы прочитать полный текст на canlii.org

Лимиты API

Согласно условиям API CanLII:

  • 5000 запросов в день

  • 2 запроса в секунду

  • 1 запрос за раз

  • Только доступ к метаданным — полный текст документа через API недоступен

Сервер автоматически обеспечивает соблюдение этих лимитов с помощью встроенного ограничителя частоты запросов.

Разработка

npm run build    # Compile TypeScript
npm run start    # Run the server (needs CANLII_API_KEY env var)

Структура проекта

src/
  index.ts     # MCP server — tools, rate limiter, stdio transport
  schema.ts    # Zod schemas for CanLII API responses

Вклад в проект

Мы приветствуем ваш вклад! Этот проект направлен на то, чтобы сделать канадские юридические исследования более доступными с помощью инструментов ИИ.

Как помочь:

  • Сообщайте об ошибках или неожиданном поведении API — откройте issue

  • Предлагайте новые инструменты или улучшения — начните обсуждение

  • Отправляйте PR с исправлениями или новыми функциями

Чтобы отправить PR:

  1. Сделайте форк этого репозитория

  2. Создайте ветку для функции (git checkout -b feature/my-improvement)

  3. Внесите изменения и протестируйте локально (npm run build && CANLII_API_KEY=your_key npm run start)

  4. Закоммитьте и отправьте изменения в свой форк

  5. Откройте pull request с описанием того, что вы изменили и почему

Если вы обнаружили проблемы с ответами API CanLII, несоответствия схем или у вас есть идеи для новых инструментов, которые помогли бы исследователям права, пожалуйста, откройте issue — даже если вы не уверены, как это исправить. Мы разберемся вместе.

Безопасность

Этот сервер спроектирован так, чтобы быть прозрачным и минималистичным:

  • Соединяется только с api.canlii.org — никаких других сетевых вызовов, телеметрии или аналитики

  • Ключ API остается локальным — передается через переменную окружения, никогда не логируется и не включается в ответы

  • Все входные данные проверяются — ID баз данных, ID дел и даты проверяются регулярными выражениями перед использованием; сегменты путей кодируются в URI

  • Все ответы API проверяются — парсятся через схемы Zod перед возвратом

  • Нет доступа к файловой системе — сервер делает только HTTPS-вызовы к CanLII

  • Нет выполнения команд оболочки — нет child_process, exec или spawn

  • 2 зависимости времени выполнения — @modelcontextprotocol/sdk (официальный SDK Anthropic MCP) и zod (валидация схем)

  • Встроенный ограничитель частоты запросов — очередь последовательных запросов предотвращает злоупотребление API

  • Лицензия MIT, полностью открытый исходный код — читайте каждую строку в src/index.ts (~350 строк) и src/schema.ts (~140 строк)

Если вы обнаружили проблему безопасности, пожалуйста, ознакомьтесь с SECURITY.md.

Известные ограничения

  • Нет текста решения — полнотекстовый поиск работает (поиск по названиям дел, цитированиям и содержанию), но API не может вернуть полный текст решения. Вы должны нажать на URL CanLII, чтобы прочитать решение на canlii.org. Номера абзацев и прямые цитаты должны быть проверены путем чтения источника.

  • Поиск основан на ключевых словах, а не на семантике — запросы вроде "mother gatekeeping sole decision-making" могут давать смешанные результаты. Уточняйте запросы и проверяйте названия дел перед изучением метаданных.

  • Результаты поиска не включают детали дела — поиск возвращает только цитирования и названия. Вам нужно вызывать get_case_metadata отдельно для каждого дела, чтобы получить ключевые слова, темы, дату решения и URL CanLII.

  • Нет индикаторов обработки — цитатор показывает, какие дела ссылаются на решение, но не указывает, было ли оно поддержано, разграничено или отменено. Вам нужно прочитать ссылающиеся дела, чтобы определить статус.

  • Предварительный просмотр цитатора ограничен 5 результатами — используйте get_case_citator (полная версия) для комплексного анализа цитирований.

  • В поиске нет фильтра по базе данных/юрисдикции — вы не можете ограничить результаты поиска конкретным судом или провинцией на стороне сервера; вместо этого добавляйте ключевые слова юрисдикции в ваш запрос (например, "custody Ontario" вместо просто "custody").

  • Эндпоинт поиска не задокументирован — он работает, но его нет в официальной документации API CanLII, поэтому он может измениться без предупреждения.

  • Строгие лимиты API — 5000 запросов/день, 2 запроса/сек, 1 одновременный запрос (обеспечивается автоматически встроенным ограничителем).

Лицензия

MIT — см. LICENSE.

Available Tools

9 tools
browse_legislationA

List all legislation items in a specific database. Use to find legislation IDs for metadata lookup. Key statutes by database — ons: Children's Law Reform Act, Family Law Act, Employment Standards Act. cas: Divorce Act, Criminal Code, Canada Labour Code, Federal Child Support Guidelines.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
databaseIdYesLegislation database ID (e.g., 'ons' for Ontario Statutes, 'cas' for Canada Statutes, 'onr' for Ontario Regulations)
publishedBeforeNoDate first published on CanLII (YYYY-MM-DD)
publishedAfterNoDate first published on CanLII (YYYY-MM-DD)
modifiedBeforeNoDate content last modified on CanLII (YYYY-MM-DD)
modifiedAfterNoDate content last modified on CanLII (YYYY-MM-DD)
changedBeforeNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
changedAfterNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
decisionDateBeforeNoDecision date upper bound (YYYY-MM-DD)
decisionDateAfterNoDecision date lower bound (YYYY-MM-DD)

TDQS

A3.9/5.0
Behavior2/5

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

No annotations are provided, and the description does not disclose behavioral traits such as pagination, rate limits, or output size. For a listing tool, this is a significant gap.

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?

Three focused sentences: purpose, use case, and examples. No redundant information; every sentence is necessary.

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

Completeness3/5

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

Given 10 parameters and no output schema, the description is adequate but lacks details on how filters interact, output format, or pagination. Suitable for a basic list tool but not fully complete.

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

Parameters4/5

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

Schema coverage is 100%, but the description adds value by listing key statutes per database (e.g., 'ons: Children's Law Reform Act'), helping agents select the correct databaseId. This goes beyond the schema's pattern description.

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 lists all legislation items in a specific database and is used to find legislation IDs for metadata lookup. It distinguishes from sibling tools which focus on case law.

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

Usage Guidelines4/5

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

The description specifies using the tool to find legislation IDs, but does not explicitly state when not to use it or compare to the sibling 'search' tool. The context is clear enough for legislation-specific tasks.

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

get_case_citatorA

Look up citation relationships for a case. Critical for verifying if a case is still good law. Use 'citingCases' to see what later cases cite this decision — if many recent cases cite it approvingly, it is strong authority. Use 'citedCases' to see what authorities this case relied on. Use 'citedLegislations' to see what statutes the case references. Returns the full list of citing/cited items.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
databaseIdYesCourt database ID (e.g., 'onsc', 'onca', 'csc-scc')
caseIdYesCase unique identifier (e.g., '2021onsc8582')
metadataTypeYes'citingCases' = what later cases cite this one (check if still good law); 'citedCases' = what this case relies on; 'citedLegislations' = statutes referenced
publishedBeforeNoDate first published on CanLII (YYYY-MM-DD)
publishedAfterNoDate first published on CanLII (YYYY-MM-DD)
modifiedBeforeNoDate content last modified on CanLII (YYYY-MM-DD)
modifiedAfterNoDate content last modified on CanLII (YYYY-MM-DD)
changedBeforeNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
changedAfterNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
decisionDateBeforeNoDecision date upper bound (YYYY-MM-DD)
decisionDateAfterNoDecision date lower bound (YYYY-MM-DD)

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description must disclose behavioral traits. It states 'Returns the full list of citing/cited items,' which implies a complete list without pagination. However, it does not cover potential limits, error handling, authentication needs, or response structure. For a read-only lookup tool, this is adequate but lacks depth.

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 a single paragraph of four sentences, front-loaded with the core purpose. Every sentence provides useful information without unnecessary words. It is highly concise and well-structured for quick comprehension.

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

Completeness4/5

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

Given the tool has 12 parameters (mostly optional date filters) and no output schema, the description focuses on the essential use cases and the returned item list. It covers the critical metadataType options and the tool's importance. However, it does not mention the filtering capabilities or language parameter, which are documented in the schema but not in the description. Overall, it is sufficiently complete for an AI agent to understand the tool's core functionality.

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

Parameters4/5

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

Input schema has 100% description coverage, providing clear meaning for all parameters. The description adds value by explaining the semantic intent of metadataType and the overall workflow, e.g., 'use 'citingCases' to see what later cases cite this decision.' It does not repeat parameter descriptions but enhances understanding, going beyond the baseline of 3.

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's purpose: 'Look up citation relationships for a case.' It specifies the three metadataType values and their meanings (citingCases, citedCases, citedLegislations), making the tool's function very specific and distinguishable from siblings like get_case_citator_tease, though not explicitly differentiating.

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

Usage Guidelines4/5

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

The description provides clear guidance on when to use each metadataType: 'Use 'citingCases' to see what later cases cite this decision... Use 'citedCases' to see what authorities this case relied on. Use 'citedLegislations' to see what statutes the case references.' It frames the tool as 'critical for verifying if a case is still good law,' but does not mention when not to use it or how it compares to the sibling get_case_citator_tease.

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

get_case_citator_teaseA

Quick preview of citation relationships (max 5 results). Faster than the full citator. Use this for a quick check on whether a case has been cited, then use get_case_citator for the complete list if needed.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
databaseIdYesCourt database ID (e.g., 'onsc', 'onca', 'csc-scc')
caseIdYesCase unique identifier (e.g., '2021onsc8582')
metadataTypeYesType of citation data to preview

TDQS

A4.3/5.0
Behavior4/5

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

Discloses the key behavioral trait of returning at most 5 results and being faster than the full citator. However, with no annotations provided, it does not cover other traits like authentication requirements or error handling, which would be valuable for a write operation but this is a read-only preview.

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?

Extremely concise with two sentences that convey purpose, limits, speed advantage, and recommended workflow. No redundant information.

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

Completeness3/5

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

The description explains the tool's role and limits but does not describe the output format or behavior beyond the preview, leaving some ambiguity for an agent. However, given the simplicity of the tool and the absence of an output schema, it is minimally adequate.

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%, with each parameter already well-described in the schema. The description adds no further parameter-level detail beyond the tool's overall purpose, so it aligns with the baseline score.

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?

Clearly states the tool provides a quick preview of citation relationships with a maximum of 5 results, distinguishing it from the sibling 'get_case_citator' which offers the complete list.

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?

Explicitly tells when to use this tool ('quick check') and advises to use the full citator for a complete list if needed, providing clear usage context and alternatives.

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

get_case_law_decisionsA

List case law decisions from a specific court database. Use date filters to narrow results. Useful for browsing recent decisions from a specific court. Results are ordered by most recently added. Use get_case_metadata to get full details on a specific case.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
databaseIdYesCourt database ID (e.g., 'onsc' for Ontario Superior Court, 'onca' for Ontario Court of Appeal, 'csc-scc' for Supreme Court of Canada)
offsetNoStart position for results (default 0 = most recent)
resultCountNoNumber of results to return (max 10,000, default 20)
publishedBeforeNoDate first published on CanLII (YYYY-MM-DD)
publishedAfterNoDate first published on CanLII (YYYY-MM-DD)
modifiedBeforeNoDate content last modified on CanLII (YYYY-MM-DD)
modifiedAfterNoDate content last modified on CanLII (YYYY-MM-DD)
changedBeforeNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
changedAfterNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
decisionDateBeforeNoDecision date upper bound (YYYY-MM-DD)
decisionDateAfterNoDecision date lower bound (YYYY-MM-DD)

TDQS

A3.9/5.0
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses that results are ordered by most recently added, which is key behavior. However, it does not mention any potential side effects, authorization needs, or rate limits.

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

Conciseness4/5

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

Two efficient sentences that front-load the main purpose and add relevant usage context. Could be slightly more structured, but overall concise.

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

Completeness4/5

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

Given the 12 parameters (all documented in schema) and no output schema, the description sufficiently explains the tool's purpose, ordering, and relationship to sibling tools. References get_case_metadata for full details, which helps complete the picture.

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 coverage is 100% with clear parameter descriptions. The description adds high-level purpose but does not provide additional meaning beyond what the schema already specifies for parameters.

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?

Description clearly states the tool lists case law decisions from a specific court database, with date filtering capabilities. It explicitly distinguishes from the sibling tool get_case_metadata, which provides full details on a specific case.

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

Usage Guidelines4/5

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

Provides clear context for use (browsing recent decisions from a specific court) and mentions an alternative tool (get_case_metadata) for full details. However, it does not explicitly mention when not to use this tool or other alternatives like 'search'.

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

get_case_metadataA

Get detailed metadata for a specific case including its CanLII URL, citation, decision date, docket number, keywords, and topics. The URL field links directly to the full decision text on canlii.org — always provide this to the user for verification. Use after finding a case via search or browse to get complete details before citing it.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
databaseIdYesCourt database ID (e.g., 'onsc', 'onca', 'csc-scc')
caseIdYesCase unique identifier from search/browse results (e.g., '2021onsc8582')
publishedBeforeNoDate first published on CanLII (YYYY-MM-DD)
publishedAfterNoDate first published on CanLII (YYYY-MM-DD)
modifiedBeforeNoDate content last modified on CanLII (YYYY-MM-DD)
modifiedAfterNoDate content last modified on CanLII (YYYY-MM-DD)
changedBeforeNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
changedAfterNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
decisionDateBeforeNoDecision date upper bound (YYYY-MM-DD)
decisionDateAfterNoDecision date lower bound (YYYY-MM-DD)

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the tool is a read-like retrieval (getting metadata) and includes an instruction to always provide the URL to the user. However, it does not explicitly state it is read-only or mention any permissions or side effects, which weakens transparency.

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 two concise sentences. The first states the purpose and output; the second gives usage guidance. Every word adds value, and the structure is front-loaded with the most critical information.

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

Completeness4/5

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

The description lists key output fields, providing enough context for an agent to understand return structure despite no output schema. It does not explain all parameters or potential errors, but for a simple retrieval tool, it is complete enough.

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 each parameter already has a description. The tool description adds no additional meaning beyond schema, except implying that databaseId and caseId are central. This meets the baseline of 3.

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 uses the specific verb 'Get' and targets 'detailed metadata for a specific case'. It lists key outputs (CanLII URL, citation, etc.) and differentiates the tool from search and browsing by stating it provides complete details before citing.

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

Usage Guidelines4/5

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

The description explicitly guides the agent to use this tool 'after finding a case via search or browse to get complete details before citing it'. This provides clear context for when to invoke it, though it does not explicitly mention when not to use it or name specific alternatives.

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

get_courts_and_tribunalsA

List all available court and tribunal databases in Canada. Returns database IDs needed for other tools. Key databases: onsc (Ontario Superior Court), onca (Ontario Court of Appeal), oncj (Ontario Court of Justice), onscdc (Divisional Court), csc-scc (Supreme Court of Canada), bcsc (BC Supreme Court), abkb (Alberta King's Bench). Use this to discover valid databaseId values for browse and citator tools.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
publishedBeforeNoDate first published on CanLII (YYYY-MM-DD)
publishedAfterNoDate first published on CanLII (YYYY-MM-DD)
modifiedBeforeNoDate content last modified on CanLII (YYYY-MM-DD)
modifiedAfterNoDate content last modified on CanLII (YYYY-MM-DD)
changedBeforeNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
changedAfterNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
decisionDateBeforeNoDecision date upper bound (YYYY-MM-DD)
decisionDateAfterNoDecision date lower bound (YYYY-MM-DD)

TDQS

A4.1/5.0
Behavior4/5

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

Though no annotations are provided, the description implies a read-only operation (listing databases) and explicitly states it returns database IDs. It does not contradict any annotations.

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

Conciseness4/5

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

The description is concise, using three sentences to convey purpose, examples, and usage guidance. Slightly verbose with examples but overall efficient.

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

Completeness4/5

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

Given the tool's simplicity and no output schema, the description covers the core purpose and return values. It does not detail the return structure but is sufficient for a listing tool.

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?

All 9 parameters are fully described in the input schema (100% coverage). The description does not add additional meaning beyond the schema, meriting a baseline score of 3.

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 lists all available court and tribunal databases in Canada and returns database IDs needed for other tools. It distinguishes itself from siblings like get_legislation_databases by specifying it provides database IDs for browse and citator tools.

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

Usage Guidelines4/5

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

The description explicitly advises using this tool to discover valid databaseId values for browse and citator tools, providing clear guidance on when to use. However, it does not mention when not to use or alternatives.

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

get_legislation_databasesA

List all available legislation databases in Canada. Returns database IDs for browsing statutes and regulations. Key databases: ons (Ontario Statutes), onr (Ontario Regulations), cas (Canada Statutes), car (Canada Regulations), bcs (BC Statutes), abs (Alberta Statutes).

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
publishedBeforeNoDate first published on CanLII (YYYY-MM-DD)
publishedAfterNoDate first published on CanLII (YYYY-MM-DD)
modifiedBeforeNoDate content last modified on CanLII (YYYY-MM-DD)
modifiedAfterNoDate content last modified on CanLII (YYYY-MM-DD)
changedBeforeNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
changedAfterNoDate metadata or content last changed on CanLII (YYYY-MM-DD)
decisionDateBeforeNoDecision date upper bound (YYYY-MM-DD)
decisionDateAfterNoDecision date lower bound (YYYY-MM-DD)

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It states the tool returns database IDs and lists key databases, but it does not disclose behavioral traits such as read-only nature, rate limits, or any side effects. For a simple listing tool, this is adequate but not exhaustive.

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 extremely concise: two sentences plus a brief list of key databases. It is front-loaded with the purpose and provides immediate value without unnecessary detail.

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

Completeness3/5

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

The tool has 9 optional filter parameters, but the description does not explain their purpose or how to use them effectively. There is no output schema, and the description only mentions 'returns database IDs' without specifying format or structure. This leaves some gaps, but for a simple listing tool it is minimally adequate.

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?

The input schema has 100% description coverage, so the baseline is 3. The description does not add meaning beyond the schema; it only mentions database IDs in the output context. The parameters are well-documented in the schema, so no further elaboration is needed.

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's function: listing all available legislation databases in Canada. It provides specific examples of key databases and what they represent. This distinguishes it from sibling tools like browse_legislation or get_case_citator.

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

Usage Guidelines4/5

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

The description indicates the tool is for retrieving a list of databases, which is a clear use case. It does not explicitly mention when not to use it or provide alternatives, but the context is sufficient for an AI agent to understand its primary role.

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

get_legislation_regulation_metadataA

Get metadata for a specific statute or regulation including its CanLII URL, citation, and table of contents. The URL links directly to the full legislation text on canlii.org — always provide this to the user.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage: 'en' for English (default), 'fr' for Frenchen
databaseIdYesLegislation database ID (e.g., 'ons' for Ontario Statutes)
legislationIdYesSpecific legislation ID from browse results

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so description bears full burden. It reveals what is returned but does not disclose that it is read-only, any side effects, permissions, or rate limits.

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?

Two sentences: first states purpose and content, second provides actionable instruction. No wasted words, information is front-loaded.

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

Completeness4/5

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

Given the tool's simplicity and absence of output schema, the description adequately covers the return content and user instruction. However, it could mention that the IDs come from browse results.

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?

Input schema has 100% description coverage, so the description adds minimal extra meaning beyond the schema's field descriptions. The mention of 'CanLII URL, citation, and table of contents' provides general context but not parameter details.

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 retrieves metadata for a specific statute/regulation, including URL, citation, and table of contents, distinguishing it from sibling tools like browse_legislation.

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

Usage Guidelines3/5

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

The description implies usage (when you need metadata for a specific legislation), but does not provide explicit guidance on when to prefer this over siblings or exclude certain cases.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 9 tool updatesv1.1.4
    • First observedbrowse_legislation
    • First observedget_case_citator
    • First observedget_case_citator_tease
    • First observedget_case_law_decisions
    • First observedget_case_metadata
    • First observedget_courts_and_tribunals
    • First observedget_legislation_databases
    • First observedget_legislation_regulation_metadata
    • First observedsearch

TDQS

A4.1/5.0

Scored across 9 tools

Disambiguation5/5

Each tool has a distinct purpose: browse_legislation lists legislation items, get_case_citator retrieves full citation relationships, get_case_citator_tease offers a quick preview, get_case_law_decisions lists decisions from a court database, get_case_metadata provides detailed case info, get_courts_and_tribunals lists available court databases, get_legislation_databases lists legislation databases, get_legislation_regulation_metadata fetches legislation details, and search performs keyword searches. No two tools overlap significantly.

Naming Consistency4/5

Most tools follow a 'get_' prefix (e.g., get_case_metadata, get_courts_and_tribunals), but 'browse_legislation' uses 'browse_' and 'search' is a bare verb. This slight inconsistency is minor and does not hinder readability.

Tool Count5/5

Nine tools is appropriate for a legal research server. Each tool covers a core function—searching, browsing cases and legislation, citators, and metadata retrieval—without being excessive or insufficient.

Completeness4/5

The surface covers essential read-only legal research operations: search, browse, citator, and metadata. Minor gaps include lack of date filters on search (mitigated by jurisdiction keywords) and no direct full-text retrieval (URLs provided instead). Overall, it's well-rounded.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers