MCP server for legal compliance scanning of web projects against Russian regulations (152-ФЗ, 38-ФЗ, ЗоЗПП) and policy generation
legitAgent provides 9 tools with complete input schemas and descriptions, but quality is uneven. Tool names are action-oriented (scan, review, create_baseline, autofix, list_rules, explain_rule, scan_url, generate_policy, get_law), following verb_noun convention. However, descriptions are inconsistent: some are detailed (scan, review, scan_url) while others are minimal (list_rules: 'Показать каталог правил' = 22 chars, violates 20-char floor). Parameters have types and descriptions, but many lack constraints (enums, ranges). Output schemas are not documented, LLMs cannot predict response structure. Error handling is absent from tool definitions. Security concerns: scan and review accept 'root' as a string parameter without validation hints; no mention of permission gates or audit trails. Composition is reasonable (each tool has one responsibility), but tools like scan and review share identical parameter sets, risking LLM confusion.
Показать безопасные механические fix-рецепты. По умолчанию dry-run; write=true изменяет только заранее разрешённые конструкции.
Создать baseline текущих findings внутри root проекта. Это операция записи.
Объяснить правило, цитату статьи и как исправить
Черновик политики обработки ПДн. Это не юридическое заключение. Нужно наименование оператора.
Текст закона из корпуса pravo.gov.ru: 152-fz, 38-fz, zozpp. Без id — список.
Показать каталог правил
Второй проход по находкам scan. По умолчанию offline: данные не отправляются. OpenRouter используется только при LEGITAGENT_REVIEW_MODE=openrouter и настроенном ключе; тогда передаются findings и связанные сниппеты. Не юридическое заключение.
Output schemas not documented. LLMs cannot predict response structure, forcing them to guess what fields are returned and how to chain tools. scan, review, autofix, and other tools lack documented return types.
Minimal descriptions violate 20-char floor. list_rules ('Показать каталог правил' = 22 chars) and others lack context for tool selection. Descriptions should explain WHAT, WHEN, and WHAT IT RETURNS.
No error handling guidance in tool definitions. Tools do not document retryable vs fatal errors, or recovery steps. E.g., scan could fail if root is invalid, but no error classification or actionable message is defined.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | 2026-07-28+ | v2 |
Проверить папку проекта на риски 152-ФЗ, 38-ФЗ и ЗоЗПП. Всегда передай абсолютный root workspace. Без root процесс может оказаться в домашнем каталоге — его сканер отклонит.
Проверить живой сайт в браузере: cookie, storage, network initiators, баннер, формы, политика, ERID, витрина, иностранные трекеры. Сравнивает изолированные состояния до/после Reject и Accept.
Parameter constraints missing. 'lang' accepts 'ru' or 'en' but is not declared as an enum. 'minimumConfidence' is an enum, but 'root', 'changedFiles', 'baseline', 'cache' lack format/range constraints. Free-form strings invite hallucinated values.
Security: 'root' parameter accepts arbitrary filesystem paths with minimal validation hints. Tool definitions do not document permission requirements, audit trails, or secret injection patterns. Symlink traversal and path escape risks are mentioned in server.ts but not exposed to LLM.