# Проверка документов

> Инструменты раздела «Проверка документов»: 3

Подключение: `https://mcp.legalstack.ru/mcp/compliance` или в составе общего подключения `https://mcp.legalstack.ru/mcp`.

## Результат проверки документа

`get_document_check` · только чтение

Описание для модели: Get the result of a document compliance check.

**Параметры**

| Параметр | Тип | Обязательный | Описание |
| --- | --- | --- | --- |
| `check_id` | string | да | Check id. Длина: 1–64. |
| `wait_seconds` | integer | нет | Seconds to wait for the check to finish, 60 by default. По умолчанию: `60`. Диапазон: 0–240. |

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {
    "check_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Check id"
    },
    "wait_seconds": {
      "default": 60,
      "description": "Seconds to wait for the check to finish, 60 by default",
      "type": "integer",
      "minimum": 0,
      "maximum": 240
    }
  },
  "required": [
    "check_id"
  ],
  "additionalProperties": false
}
```

</details>

## Чек-листы проверки

`list_playbooks` · только чтение

Описание для модели: List compliance checklists for checking documents.

**Параметры**

Параметров нет.

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
```

</details>

## Проверить документ по чек-листам

`start_document_check` · изменяет данные

Описание для модели: Check a document against compliance checklists. The check is performed by the agent itself: it reads the document and the checklist points and returns the remarks. Waits for the result. When finished is false the check still runs, read it later with get_document_check.

**Параметры**

| Параметр | Тип | Обязательный | Описание |
| --- | --- | --- | --- |
| `document_id` | string | да | Document id. Длина: 1–64. |
| `playbook_ids` | массив string | да | Checklists to apply in this order. Элементов: 1–20. |
| `wait_seconds` | integer | нет | Seconds to wait for the check to finish, 60 by default. По умолчанию: `60`. Диапазон: 0–240. |

<details>
<summary>JSON Schema параметров</summary>

```json
{
  "type": "object",
  "properties": {
    "document_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Document id"
    },
    "playbook_ids": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64,
        "description": "Checklist id"
      },
      "description": "Checklists to apply in this order"
    },
    "wait_seconds": {
      "default": 60,
      "description": "Seconds to wait for the check to finish, 60 by default",
      "type": "integer",
      "minimum": 0,
      "maximum": 240
    }
  },
  "required": [
    "document_id",
    "playbook_ids"
  ],
  "additionalProperties": false
}
```

</details>
