Skip to main content
Glama

workspace__UpdateScript

Updates an existing Workspace script by script ID and project ID, allowing you to revise its name, content, version, or description.

Instructions

[WORKSPACE] 更新脚本。

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": {
      "content": "<content>",
      "name": "<name>",
      "project_id": "<project_id>",
      "script_id": "<script_id>"
    },
    "name": "workspace__UpdateScript"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes脚本名称。
contentYes脚本内容。
versionNo脚本版本。
script_idYes脚本ID。
project_idYes项目ID。
descriptionNo描述。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.8/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers nothing beyond the word "update". It does not state whether content fully replaces the existing script body, whether version is incremented or overwritten, what permissions are required, or whether the change is reversible.

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

Conciseness2/5

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

The single short sentence contains no filler, but its brevity comes from omission rather than efficiency. A front-loaded statement of what the update affects would have earned the space it takes.

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?

For a six-parameter mutation tool with four required fields and no annotations or output schema, the definition should explain replacement semantics and the role of script_id/project_id in identifying the target. The schema covers parameter syntax, but nothing covers behavior, which leaves the definition materially incomplete.

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 every parameter (name, content, version, script_id, project_id, description) is already documented in the input schema. The description adds no meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is "[WORKSPACE] 更新脚本。" ("Update script"), which merely restates the tool name UpdateScript. It names a verb and resource but adds no scope, no target, and nothing that distinguishes it from siblings such as workspace__CreateScript or workspace__ShowScriptDetail.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. An agent is given no way to know whether to update an existing script or create a new one, nor what conditions the update requires.

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