Skip to main content
Glama

下载并校验更新包

jasp_download_update

Downloads the JASP Bridge update package from the update manifest, verifies SHA256, extracts it to a versioned folder, and returns the update.ps1 install command without replacing running files.

Instructions

按 latest.json 下载更新 zip,校验 SHA256,解压到 updates//,返回 update.ps1 安装命令。不会自动替换正在运行的文件。

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": "jasp_download_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNolatest.json 地址;不传则读 JASP_BRIDGE_UPDATE_URL
timeout_msNo下载超时毫秒,默认 180000
install_dirNo插件安装目录,默认 JASP_BRIDGE_HOME

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the important non-destructive trait up front: '不会自动替换正在运行的文件', and it spells out the verification step and the on-disk artifact path, which together tell an agent this is a staging operation rather than a hot-swap install. It stops short of stating what happens when the SHA256 check fails or whether an existing updates/<version>/ directory is overwritten.

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?

Two compact clauses with the action sequence front-loaded and the safety caveat placed last where it lands hardest. Each phrase carries distinct information: source file, hash check, destination, returned artifact, and the non-replacement guarantee.

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 three-parameter staging tool with no output schema, the description covers the source of truth (latest.json), the verification step, the destination layout, and the returned install command, which is what an agent needs to call it correctly. The remaining gap is error and overwrite behavior for a failed checksum or a pre-existing target directory.

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%, so all three parameters (url, timeout_ms, install_dir) are already documented in the schema, giving a baseline of 3. The description only indirectly echoes these through 'latest.json' and the 'updates/<version>/' target and adds no format or override semantics beyond the schema.

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 precise verb chain on a specific resource: download the update zip per latest.json, verify its SHA256, extract it into updates/<version>/, and return the update.ps1 install command. This makes the tool's boundary obvious relative to name-adjacent siblings such as jasp_check_update, which only checks, and jasp_update_plan, which only plans.

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 update workflow is clearly implied by 'download, verify, extract, return install command', but the description never states when this tool should be chosen over jasp_check_update or jasp_update_plan, nor does it name any prerequisite such as a prior check step. Usage therefore remains inferable rather than explicit.

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