Skip to main content
Glama

wait_for_annotations

Blocks until user submits annotations in the browser, then returns detailed annotation data (type, note, geometry, target elements) for editing SVG figures.

Instructions

阻塞等待用户在浏览器里提交批注,提交后立即返回批注内容。

重要协议:返回 status="timeout" 表示用户还没提交,这不是错误——
若仍在等待用户批注,应立即再次调用本工具继续等待,直到拿到
status="submitted" 或用户在对话里明确说不批注了。
返回的每条批注含:kind(rect/arrow/freehand/text)、note(用户文字)、
geometry_svg(viewBox 坐标)、hits(命中的 SVG 元素:id/文字/祖先链,
用于在 SVG 源文件或生成脚本中定位)、texts_in_region(选区内的文字)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It meticulously explains the blocking behavior, the timeout status as non-error, the retry protocol, and the detailed structure of each returned annotation (kind, note, geometry_svg, hits, texts_in_region). It also clarifies that timeout is not an error and how to proceed. This is exceptionally transparent for a wait operation.

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

Conciseness5/5

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

The description is well-organized: it opens with the core purpose and immediate return, then clearly explains the timeout protocol, and finally lists the annotation fields. Every sentence serves a purpose, with no redundant phrasing. It is concise yet comprehensive, front-loading the most important behavioral information.

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 description is thorough for a wait tool: it covers the blocking behavior, timeout handling, retry instructions, and the full return payload structure. It does not describe error scenarios (e.g., if the session expires) or what happens if the user submits invalid annotations, but given that there is no output schema and the tool is relatively simple, the provided details are largely sufficient. A small gap prevents a perfect score.

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?

The schema has 0% description coverage for the single parameter timeout_s (default 120), and the description does not explicitly explain this parameter. However, the description mentions status='timeout' and the retry protocol, which implies that the tool waits for a specified period. This indirect inference is not as clear as explicitly stating 'timeout_s is the maximum wait time in seconds.' The description adds some context but doesn't fully compensate for the lack of schema detail, so a 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: '阻塞等待用户在浏览器里提交批注' (blocks waiting for user annotations) and that it returns the annotation content immediately upon submission. It identifies the specific verb 'wait' and the resource 'annotations', making it distinct from siblings like get_annotations (which likely retrieves existing annotations) and open_svg. However, it doesn't explicitly name a sibling alternative, so it stops short of a 5.

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?

The description provides explicit instructions on when to use this tool: it should be called when waiting for user annotations, and if status='timeout', it should be called again to continue waiting. It also defines a clear stopping condition: until status='submitted' or the user explicitly declines to annotate. It doesn't discuss when not to use it relative to siblings, but the protocol is sufficient for correct usage.

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