Skip to main content
Glama

stop_recording

Stops a specified recording using its recording_id, allowing ffmpeg to exit gracefully and finalize the MP4 index correctly.

Instructions

停止指定 recording_id 的录像(让 ffmpeg 优雅退出,正确写入 mp4 索引)

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": {
      "recording_id": "<recording_id>"
    },
    "name": "stop_recording"
  }
}

Input Schema

NameRequiredDescriptionDefault
recording_idYes开始录像时返回的 recording_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuinely useful behavior: ffmpeg is allowed to exit gracefully so the mp4 index is written correctly, implying the file is finalized rather than truncated. It omits whether the call blocks until finalization, what happens if the recording is already stopped, whether the operation is idempotent, and what is returned.

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?

One front-loaded sentence with a single parenthetical explaining the effect; nothing is padded or repeated. Slightly terse rather than verbose, which is appropriate for a one-parameter lifecycle action.

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?

For a single-parameter tool with no annotations and no output schema, the mechanic is described, but the agent is left guessing about termination conditions, error cases (no active recording), and whether it should expect any immediate result. Adequate but with visible gaps.

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 coverage is 100% and the schema already explains that recording_id comes from starting a recording; the description only echoes '指定 recording_id'. It adds no format, constraint, or usage nuance beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('停止指定 recording_id 的录像' – stop the recording for a given recording_id) and adds the mechanism (ffmpeg graceful exit). It never names a sibling, but stop vs. start_recording is unambiguous from the verb. Clear, just short of explicit sibling differentiation.

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?

Usage is only implied: the agent must infer it should call this after start_recording to end an active session. There is no explicit when-to-use statement, no note about what to do if no recording is active, and no pointers to list_recordings for discovering recording_ids.

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