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

mcp-1c-local-bridge

by ntappw

test_snapshot

Captures a read-only text snapshot of the active 1C testing client window—forms, fields, buttons, tables, messages, and errors—to provide element names for test steps.

Instructions

Текстовый снимок окна клиента тестирования: форма, её группы, поля со значениями, кнопки и таблицы с колонками и ячейками текущей строки, а также сообщения пользователю, текущая ошибка клиента и список окон. Имена элементов из снимка - это target для test_steps. Снимок ничего не меняет, кроме чтения строк таблицы (table): оно сдвигает текущую строку. Вопрос платформы - окно с формой MessageBox: текст - надпись Message, кнопки - Button0, Button1... с заголовками («Да», «Нет»); нажимать можно по имени или заголовку.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "test_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNoСколько строк таблицы table прочитать.
tableNoИмя таблицы формы: вместо дерева формы вернуть её строки (rows штук). Чтение строк сдвигает текущую строку таблицы.
formatNotable - таблицы и сводки для чтения, ссылки показаны представлениями; json - ответ как есть, с типами и UUID ссылок.table
hiddenNotrue - показать и невидимые элементы формы.
windowNoОкно клиента тестирования: начало заголовка ("Заявка на технику"), @main - основное окно. Пусто - активное окно.
detailsNotrue - отметить недоступные элементы и поля только для просмотра (дольше: по вызову на элемент).
sessionNoСеанс моста: идентификатор из sessions или часть строки соединения, имени конфигурации, пользователя. Не указан - единственный открытый сеанс.
timeoutNoСколько секунд ждать ответ. Команда, которую обработка не начала за это время, снимается; начатая выполняется дальше, её результат забирается инструментом result.
interfaceNotrue - раскрыть командный интерфейс окна (разделы, панели); по умолчанию только формы.
budget_secNoСколько секунд обходить форму; что не успело - отмечается как неполный снимок.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.1/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 key side effect: the snapshot changes nothing except reading table rows, which shifts the current row. It also warns that details=true costs a call per element. It does not mention session or permission requirements, but the schema covers those parameters.

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 content is front-loaded: the first sentence lists what the snapshot contains, the second gives the test_steps linkage, and the third covers the MessageBox case. The MessageBox sentence is long but earns its place; a little tightening would help.

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 output schema already explains return values, and all ten optional parameters are fully documented. The description covers the mutation caveat, the MessageBox case, and the test_steps linkage. The only gap is explicit guidance on when to choose this over other discovery tools.

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%, so all ten parameters already carry descriptions. The description restates the table-row shift but adds little beyond what the schema documents. The baseline of 3 is appropriate when the schema does the 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 states a specific verb and resource: a text snapshot of the test client window, enumerated in detail (forms, groups, fields, buttons, tables, messages, current error, window list). It also distinguishes the tool from the sibling test_steps by declaring that element names from the snapshot are its targets.

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?

It gives clear context for use: element names serve as targets for test_steps, and it explains how to handle a platform MessageBox question window (click by name or caption). It does not state explicit exclusions or contrast with other siblings such as find or metadata, so it stops short of full when/when-not guidance.

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