Skip to main content
Glama

functiongraph__CreateDependencyVersion

Create a new FunctionGraph dependency package version from a ZIP file or OBS link, specifying the runtime and project for serverless function deployments.

Instructions

[FUNCTIONGRAPH] 创建依赖包版本

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": {
      "depend_type": "<depend_type>",
      "name": "<name>",
      "project_id": "<project_id>",
      "runtime": "<runtime>"
    },
    "name": "functiongraph__CreateDependencyVersion"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes依赖包名称。必须以大、小写字母开头,以字母或数字结尾,只能由字母、数字、下划线、点和中划线组成,长度不超过96个字符。
runtimeYesFunctionGraph函数的执行环境
project_idYes租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。
depend_fileNodepend_type为zip类型时必填,为文件流格式,需要base64编码zip文件。上传的文件大小限制为40M,如超过40M,请通过OBS上传。
depend_linkNodepend_type为obs类型时,依赖包在obs的存储地址。
depend_typeYes导入类型,目前支持obs和zip。
descriptionNo依赖包描述,不超过512个字符。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/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 of behavioral disclosure. It only implies a mutation via 创建; it does not disclose that depend_type selects between an inline base64 zip upload (40 MB cap) and an OBS link, nor anything about idempotency, permissions, or conflicting existing versions.

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?

One front-loaded service-tagged phrase with zero redundancy, but the brevity comes at the cost of useful information rather than being a model of economy. It is under-specified rather than tight.

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?

With 7 parameters, 4 required, conditional field requirements tied to depend_type, and no annotations or output schema, this tool needs meaningful explanation. The one-line description leaves the agent to reconstruct the zip-vs-OBS workflow entirely from the schema.

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 the schema already explains name constraints, runtime enum, project_id lookup, the depend_type-dependent depend_file/depend_link fields, and the description length limit. The description adds nothing beyond this, 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?

The description states a specific verb plus resource (创建依赖包版本 = create a dependency-package version) and the bracketed service tag scopes it to FunctionGraph. That alone separates it from the Delete/List/Show dependency-version siblings, though it offers no further differentiation or scope detail.

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

Usage Guidelines2/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 (project_id, runtime compatibility), and no reference to alternatives such as ShowDependencyVersion or ListDependencyVersion. An agent must infer everything from the name and schema.

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