Skip to main content
Glama

codeartspipeline__CreatePipelineByTemplate

Creates a CodeArts Pipeline and its tasks from a template, using flow, state, and workflow inputs to define stage order and job execution.

Instructions

[CODEARTSPIPELINE] 基于模板快速创建流水线及流水线内任务

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": {
      "flow": "<flow>",
      "states": "<states>",
      "workflow": "<workflow>"
    },
    "name": "codeartspipeline__CreatePipelineByTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowYes编排flow详情,描述流水线内各阶段任务的串并行关系。map类型数据,key为阶段名字,默认第一阶段initial,最后阶段为final,其余名字以'state_数字'标识。value为该阶段内任务(以'Task_数字'标识)以及后续阶段的标识。本字段为描述流水线基础编排数据之一,建议可通过流水线真实界面基于模板创建接口中获取
statesYes编排State详情,map类型数据。本字段为描述流水线基础编排数据之一,建议可通过流水线真实界面基于模板创建接口中获取
workflowYes参数详情

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 behavioral burden, yet it only says the operation is 'fast'. It never states that this is a mutating write, whether it requires the template to already exist, what permissions or scope are needed, whether the created pipeline is immediately runnable, or what the response contains. The important operational hint — that flow/states payloads should be sourced from the real pipeline UI / template API — lives only in the schema, not the description.

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?

A single short sentence with a vendor tag prefix and zero filler, so nothing is wasted. However, at this length for a tool with three deeply nested required objects it reads as under-specified rather than crisp, and there is no structure pointing the agent at the payload construction order.

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?

Placeholder.

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% and every nested field of flow, states, and workflow is documented in the schema itself, so the baseline of 3 applies. The description adds no meaning beyond the schema — it says nothing about how the three required objects relate to each other (e.g., that state names must match the keys referenced in flow).

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 gives a clear verb+resource ('基于模板快速创建流水线及流水线内任务') — create a pipeline plus its internal tasks from a template. It does not differentiate from the near-identical sibling 'CreatePipelineByTemplateId', nor does it explain why this variant needs full 'flow'/'states'/'workflow' payloads rather than a template id, leaving an agent to guess which of the two 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 Guidelines2/5

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

There is no guidance on when to use this tool versus CreatePipelineByTemplateId, CreatePipelineTemplate, or CreatePipelineNew, all of which appear in the sibling list. No prerequisites (existing template, project membership, permissions) are mentioned, and no exclusion conditions are stated.

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