Skip to main content
Glama

answer_dialog

Answers native 1C modal dialogs by sending the window-level default action (OK/Yes), not a button click, and confirms commit via a result marker.

Instructions

Answer a 1C modal dialog (ПоказатьВопрос / ПоказатьПредупреждение) natively. Unlike a popup choice list (which reuses the form window), a real dialog opens a NEW top-level window — a fresh SecondaryFrame GUID per open. The genuine answer is a WINDOW-LEVEL command on that dialog frame (…SecondaryFrame[<dlg>] 88 82 81 = the window's default action = ОК/Да), NOT a Button activate. This faithfully replays the genuine dialog session from capture (open form -> click raise_command -> the dialog opens -> the window-level answer); GUID rebinder learns the LIVE dialog GUID from the live open response and rebinds the captured one in the close command (the same first-appearance rebinding as the form window). Commit is confirmed by result_marker (the fixture's answer field, e.g. PF_V4_WARNING_ACK) appearing in the post-answer read-back. Returns {raise_command, result_marker, dialog_sf, committed}. NOTE: the WARNING (ОК) path is the default — the QUESTION (Да/Нет) answer is the same window-level mechanism with the appropriate raise_command/marker once captured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNo127.0.0.1
portNo
captureNogenuine-card96-dialog-warn-20260618/traffic
raise_commandNoPF_V4_WARNING
result_markerNoPF_V4_WARNING_ACK

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 behavioral burden and largely meets it: it discloses the window-level command mechanism, the GUID rebinder's live rebinding, commit confirmation via result_marker, and the fact that a new top-level window opens. It omits practical prerequisites (a live test client / connection, an existing capture fixture) which leaves a gap for a mutation-style operation.

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

Conciseness3/5

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

Purpose is front-loaded in the first sentence, but the body is a dense run-on of internal jargon (SecondaryFrame GUIDs, raw command bytes, GUID rebinder) that is hard to parse. The information earns its place but the structure sacrifices readability.

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?

An output schema exists, so return values need not be re-explained, and the description does describe the commit-confirmation flow. But with zero annotation coverage and 0% param documentation, it should specify prerequisites and the fully-understood parameter set; it stops short of that.

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 0%, so the description must compensate. It lends meaning to raise_command, result_marker, and capture ('replays the genuine dialog session from capture'), but host and port are never explained and the semantics of dialog_sf/committed are only implied. It covers the key params partially rather than fully.

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?

States a specific verb and resource ('Answer a 1C modal dialog (ПоказатьВопрос / ПоказатьПредупреждение) natively') and explicitly distinguishes itself from the popup choice list sibling that 'reuses the form window'. An agent can identify the tool's role without opening the schema.

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?

It implicitly contrasts the real dialog with a popup choice list and notes the WARNING (ОК) path is the default while the QUESTION (Да/Нет) path uses the same mechanism. However, it never gives an explicit when-to-use-this-vs-that rule or prerequisites, so selection guidance is only implied.

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