Skip to main content
Glama
chaosst

doc-fine-tuning-mcp

by chaosst

wait_for_annotations

Blocks until the user completes, cancels, or closes an annotation session, then returns the submitted annotations and status. Provides session_id for applying edits or deciding next steps.

Instructions

阻塞等待标注会话完成 / 取消 / 窗口关闭,返回用户提交的标注列表。返回 {session_id, status, reason?, annotations, next?},status 为 done | cancelled | closed | timeout。缺省永不超时(timeout_seconds 不传则一直等待直到用户提交/取消/关闭窗口,或 agent 退出);如客户端对单次调用有超时上限,可传 timeout_seconds 设一个安全值,被截断或超时后再次调用本工具继续等待即可(会话在服务端持续存在,不会因单次调用被截断而取消)。status=closed 表示标注窗口已关闭:reason=window_closed/page_unload 是用户主动关闭——本轮标注流程已结束,不要再调用本工具或 annotate_document(除非用户明确要求继续),直接总结结果即可;reason=window_lost(窗口崩溃/被强杀)或 agent_cancelled/agent_exited 时才考虑询问用户是否重开。status=done 且存在标注时:处理这些标注时请在 apply_edit / template_replace / find_replace / restore_version 中带上本返回值中的 session_id(确保标注窗口重载到正确的会话,多对话共享同一 server 时尤为重要);处理完后(窗口会自动重载修改后的内容)应再次调用本工具等待用户下一轮标注。status=done 且标注为空:用户确认本轮无需修改,标注流程已结束(窗口已自动关闭),不要再调用本工具或 annotate_document,直接总结结果即可。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes标注会话 ID(annotate_document 返回)
timeout_secondsNo本次等待超时秒数,默认 1800(30 分钟);若客户端有工具超时上限请设一个安全值并轮询调用
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and delivers: blocking semantics, server-side session persistence across calls, no cancellation on truncation, status expansion, and automatic window reload behavior. However, it contradicts the input-schema default for timeout_seconds (description says 'never time out' by default; schema says 'default 1800'). This inconsistency creates agent-facing ambiguity about the actual default wait behavior.

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 paragraph is long and dense but nearly every clause carries a distinct behavioral rule spanning multiple statuses and call-pattern scenarios, so the length is justified. Core blocking behavior and default timeout are front-loaded, but the wall of text could be better structured into bullets or status-to-action pairs for faster parsing.

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 2-param tool with no output schema and no annotations, the description covers return shape, per-status meaning, follow-up actions, and session persistence — essentially everything needed for correct invocation. The only substantive gap is the timeout-default contradiction with the schema, which leaves an agent uncertain about the real server-side default.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description adds meaningful semantics beyond the schema: when and why to pass timeout_seconds (client call limits), what to do if the call is truncated (call the tool again), and that session_id must be forwarded into apply_edit/template_replace/find_replace/restore_version. The added value is slightly offset by the timeout-default contradiction with the schema.

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: blocks waiting for an annotation session to complete and returns the user's submitted annotations. Explicitly lists the return shape and all possible status values (done | cancelled | closed | timeout), which clearly distinguishes it from sibling edit/apply tools like apply_edit or find_replace. No tautology and no ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides exhaustive when-to-use and when-not-to-use rules: call again after processing done-annotations, do not call again when status is closed (user-initiated) or done with empty annotations, and only ask the user about reopening for window_lost/agent_cancelled/agent_exited. It also instructs passing session_id into sibling tools and when to set timeout_seconds for client-limited calls. This is textbook-level usage guidance with explicit exclusions and alternatives.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chaosst/doc-fine-tuning-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server