Skip to main content
Glama

caption_extract_query

根据任务ID查询字幕生成状态和内容。请每隔5秒循环调用此接口,直到status为SUCCESS或FAIL。

Args:
    id (string): 任务ID(必填)

Returns:
    object: {code(string): 状态码, message(string): 提示信息, success(boolean): 是否成功, data(object): 任务状态}
        data: {id(string): 任务id, status(string): 任务状态(EXTRACT_VIDEO视频流提取中/DEALING字幕生成中/SUCCESS成功/FAIL失败), captions(string): 字幕内容(SUCCESS时有值), captionUrl(string): 字幕文件地址(SUCCESS时有值)}

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": {
      "id": "<id>"
    },
    "name": "caption_extract_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes任务ID(必填,由caption_extract_url返回)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description must describe behavior, and it does: polling cadence, termination states, the status lifecycle (EXTRACT_VIDEO/DEALING/SUCCESS/FAIL), and the fact that captions and captionUrl are populated only on SUCCESS. It does not specify what code/message mean on error, or whether any action is required after FAIL.

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 description is front-loaded with the purpose and polling rule, then uses clear Args/Returns sections. The Returns block is long but it is useful because there is no output schema; no sentence is pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Absent an output schema, the description fully specifies the response shape, including nested data fields and the conditions under which captions are populated. It describes the status state machine completely, leaving nothing essential unstated for a single-parameter query tool.

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?

With a single required parameter and 100% schema coverage, the schema already fully documents `id` and its provenance. The description adds only a restatement (任务ID, required) and no new detail about the parameter.

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 first sentence states a specific verb and resource: query subtitle-generation status and content by task ID. Because the schema notes that the ID comes from caption_extract_url, an agent can see how this tool combines with its sibling without inferring it from the tool name.

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 definition explicitly says to call repeatedly every 5 seconds until status is SUCCESS or FAIL, so it gives a clear polling rule and stop condition. It does not name caption_extract_url as the tool that must be called first, leaving that link implicit in the field description.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources