Skip to main content
Glama

finish_file_upload

Finish upload and return SHA256/size/file ID; compare to the local file before plotting. / 完成上传,核对哈希后绘图。

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": {
      "module_id": "<module_id>",
      "file_id": "<file_id>"
    },
    "name": "finish_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
module_idYes
input_nameNofile

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose that a finalization occurs and that a verification hash and size are produced, plus recommends verifying locally, which is meaningful behavioral context. However, it says nothing about failure behavior for an incomplete upload, idempotency of repeated calls, or any permission requirements for a state-changing operation.

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?

The core English sentence is front-loaded and tight, but the bilingual restatement doubles the length without adding information, and the trailing 'before plotting' hint is compressed to the point of being cryptic.

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

Completeness2/5

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

An output schema exists, so return values need not be re-explained, but with no annotations and zero schema description coverage this short definition leaves too much unspecified for a state-changing finalization step with three parameters. It should at minimum clarify the role of module_id and input_name and what happens on a hash mismatch or incomplete upload.

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

Parameters2/5

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

Schema description coverage is 0% and there are three parameters, yet the description explains none of them: module_id and input_name are entirely unaddressed, and the required file_id is only obliquely echoed by the returned 'file ID'. An agent must guess what module_id scopes and what input_name defaults to.

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?

The description uses a specific verb and resource ('Finish upload') and states what comes back ('SHA256/size/file ID'), which is enough to separate it from begin_file_upload, append_file_chunk and get_upload_info. It does not explicitly name a sibling it is not, so it stops short of a 5.

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?

The clause 'compare to the local file before plotting' implies a workflow position: call this after chunks are sent and before draw_plot. That is useful sequencing, but there is no explicit statement of when not to call it, what prerequisites must hold, or what to do if the upload is incomplete.

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