Skip to main content
Glama

calculate_rewrite_quota

Calculate the quota needed to regenerate a video with rewritten subtitles before proofreading. Get the exact cost as a new translation task priced by video duration, without charging.

Instructions

试算「用改好的字幕重新生成视频」要花多少额度,不扣费。改写是一单新的翻译任务、按视频时长计价,和第一次翻译同价,不是免费返工。校对字幕之前就可以先问这一句,把数字告诉用户。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNo把要念给用户听的那部分文案(任务状态、产出说明、进度行、失败原因、下载说明)输出成哪种语言。按用户当前说话的语言填,不确定就别传——不传取服务端 MCP_LOCALE,再没有就是 zh。
order_noYes原视频翻译订单号(videoTranslateOrderNo)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.2/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 handles it well: it clearly states the operation is non-charging ('不扣费'), explains the pricing basis (video duration), and corrects the misconception that rewriting is free. It does not discuss auth or side effects, but the non-destructive nature is explicitly disclosed.

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 three tight sentences with no filler. It front-loads the core purpose, adds the no-charge caveat, gives pricing context, and ends with a practical usage note. Every sentence earns its place.

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 tool has one required parameter, full schema coverage, and no output schema. The description explains the quota semantics and even tells the agent to report the number to the user, which partially covers the return value. Since there is no output schema, a bit more explicit detail about the returned format could help, but the context is adequate for a simple calculator.

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 100%, so both parameters are already fully documented. The description adds no new parameter-level detail, but it does supply useful pricing context that helps the agent understand why order_no matters. This matches the baseline of 3 when the schema handles parameter documentation.

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: it calculates quota for regenerating a video with corrected subtitles, and explicitly notes it does not charge ('不扣费'). It also distinguishes this from first-time translation by explaining rewrite is a new translation task priced identically, not a free rework.

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 gives clear context for when to use the tool: before proofreading/correcting subtitles, ask this first and relay the number to the user. It implies this is the right tool for rewrite-cost questions rather than initial translation quota, though it does not explicitly name sibling tools or state when not to use it.

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

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/zhang452064326/belindoc-mcp'

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