Skip to main content
Glama

clean_stream_temp_file

Destructive

Removes unused temporary files from stream upload and download directories without deleting active transfers.

Instructions

清理流式传输临时文件(仅清理 stream 上传/下载目录) 清理未使用的流式临时文件;不会清理正在传输的项目。 Returns: { message, removed }

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clean_stream_temp_file"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description adds real value beyond that: it limits deletion to stream temp directories, guarantees in-flight transfers are safe, and discloses the return shape { message, removed }. Missing are any details on permissions required or whether removed counts can be inspected before deleting, which keeps it at adequate rather than strong.

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

Conciseness3/5

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

Front-loads the purpose, which is good, but the first two clauses restate each other (clean stream temp files / clean unused stream temp files) and the parenthetical repeats the scope again. The bilingual duplication and near-synonymous opening sentences cost space without adding 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?

For a zero-parameter destructive cleanup tool with no output schema, the definition covers the essentials: what is deleted, what is spared, and what the response contains. It could go one step further and state what happens when nothing needs removing or whether the operation is logged, but nothing an agent needs in order to call it is absent.

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?

The tool takes zero parameters, so there is no per-parameter semantics to explain and the baseline is 4. The description claims additionalProperties=true on the schema, but with an empty properties object nothing is actually left ambiguous.

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?

Names a specific verb+resource (clean stream transfer temp files) and bounds the scope to the stream upload/download directories. The scope statement implicitly separates it from clean_cache, but no sibling is named explicitly, so an agent must infer which cleanup tool to pick.

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?

Provides one useful exclusion — files currently being transferred are not removed — and the directory scope hints at when this applies. However, it never says when to use this versus clean_cache or the delete_* file tools, leaving the routing decision to inference.

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

Deploy Server

Other Tools