Skip to main content
Glama
mcp-1c-local-bridge

mcp-1c-local-bridge

by ntappw

test_steps

Runs scripted user actions in a 1C test client and reports each step's outcome, including field values, active window, messages, and client errors.

Instructions

Выполняет в клиенте тестирования действия пользователя и по каждому шагу сообщает итог: значение поля после действия, активное окно (если сменилось), новые сообщения пользователю и ошибку клиента.

Действия (action):
open - value: навигационная ссылка (e1cib/list/Документ.Заказ, e1cib/data/...?ref=..., e1cib/app/Обработка.X);
wait_window - дождаться окна: value - заголовок, в конце можно *; timeout - секунд (10);
close - закрыть окно window (или value); вопрос о сохранении, если появится, виден следующим окном;
click - нажать кнопку, гиперссылку или декорацию target (кнопки вопроса платформы: Button0, Button1... или
их заголовки «Да», «Нет»);
activate - активизировать элемент или страницу формы (группу);
input - ввести в поле текст value, как с клавиатуры (поле примет значение, когда потеряет фокус);
select - выбрать в поле значение value из выпадающего списка: у поля со списком выбора - пункт списка, у
ссылки - ввод по строке и выбор подходящего пункта (точное совпадение, затем начало текста); не нашлось -
ошибка шага со списком доступных пунктов;
choose - открыть форму выбора значения поля (кнопка выбора); clear - очистить поле;
check - флажок: value true или false;
read - вернуть значение поля; для таблицы - ячейку column текущей строки;
expect - сверить значение (как read) с value; contains: true - достаточно вхождения. Несовпадение - ошибка шага;
add_row, edit_row, delete_row - строка таблицы target; end_row - закончить редактирование (value true - отменить);
choose_row - выбрать текущую строку (двойной щелчок);
goto_row - value: first, last, next, previous или объект {"имя колонки": "текст ячейки"}.
Колонка таблицы - тоже поле: в редактируемой строке (после add_row или edit_row) к ней применимы input и select.

Записать, провести, удалить через интерфейс - действия пользователя в сеансе клиента тестирования: они
сохраняются в базе, отката нет, разрешение «Запись в базу» на них не действует. Шаги выполняются по одному и
занимают окно 1С пользователя: 15-20 шагов ввода - до 20 секунд.

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": {
      "steps": "<steps>"
    },
    "name": "test_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesШаги по порядку. Шаг - объект: action, target (имя элемента из снимка или его заголовок), value, window (окно шага; по умолчанию активное). Действия - в описании инструмента.
formatNotable - таблицы и сводки для чтения, ссылки показаны представлениями; json - ответ как есть, с типами и UUID ссылок.table
sessionNoСеанс моста: идентификатор из sessions или часть строки соединения, имени конфигурации, пользователя. Не указан - единственный открытый сеанс.
timeoutNoСколько секунд ждать ответ. Команда, которую обработка не начала за это время, снимается; начатая выполняется дальше, её результат забирается инструментом result.
stop_on_errorNotrue - остановиться на первом шаге с ошибкой, остальные не выполнять.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses the critical behavior: actions that write, post, or delete persist to the database with no rollback and are not gated by the 'Запись в базу' permission. It also describes per-step reporting and UI-window occupancy. Remaining gap: it does not say what is returned when a step fails mid-list, though the stop_on_error parameter and the output schema partly cover that.

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?

Purpose and per-step reporting are front-loaded, followed by a dense but necessary action catalog. Every entry tells the agent something operationally distinct; the only cost is raw length, which makes scanning the correct action harder than a tighter grouped layout would.

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?

For a complex, side-effecting UI driver with no annotations, the definition covers actions, matching rules, persistence with no rollback, and timing, and an output schema exists so return shape need not be explained. It stops short of linking to sibling tools (snapshot for element names, result for timed-out commands), which an agent would need to sequence a test correctly.

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

Parameters5/5

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

The steps array items are untyped (additionalProperties: true) with only a generic schema note, so the description supplies the entire semantics: each action keyword, how target, value, column, and window are interpreted per action, wildcard matching for wait_window, and contains for expect. This is meaning the schema cannot convey on its own.

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?

Opens with a precise verb and resource: it executes user actions inside the test client and reports a per-step outcome (field value after the action, active window if changed, new user messages, client error). The enumerated action catalog makes its scope unmistakable, so an agent can tell it apart from a tool like test_snapshot that only reads state.

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?

Usage context is implied rather than stated: the tool is for driving UI scenarios step by step, plus an operational note that steps run one at a time and 15-20 input steps can take up to 20 seconds. It never says when to prefer alternatives (e.g., taking a snapshot to get element names first, or fetching a result after a timeout) or when not to use it.

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