Skip to main content
Glama

codeartspipeline__CreateRule

Creates a CodeArts Pipeline rule for a tenant using a rule name, type, grouped attributes, and layout content, enabling reusable pipeline policy configuration.

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": {
      "content": "<content>",
      "domain_id": "<domain_id>",
      "layout_content": "<layout_content>",
      "name": "<name>",
      "type": "<type>"
    },
    "name": "codeartspipeline__CreateRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes规则名称
typeYes类型:Build,Gate,Deploy,Test,Normal
contentYes规则属性分组列表
domain_idYes租户ID
plugin_idNo插件ID
plugin_nameNo插件名称
layout_contentYes布局内容
plugin_versionNo插件版本号

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/5.0
Behavior1/5

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

No annotations are supplied, so the description must fully describe the tool's behavior. It never says that this is a mutating create operation, what permissions it needs (for example, the required domain_id tenant context), whether duplicates are rejected, or what happens to the nested layout_content and plugin binding inputs.

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 description is a single, short label with a bracketed product prefix. That prefix is noise, and the remaining text is too short to be useful; the problem is under-specification, not padding.

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

Completeness1/5

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

For a tool with 8 parameters (5 required), including a nested rule-attribute group structure, and with no annotations and no output schema, a four-character purpose label is wholly inadequate. Nothing tells the agent how to assemble content, which fields are conditional (plugin_id, plugin_name, plugin_version), or what the tool returns.

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 parameter, including the deeply nested content groups and properties, carries its own description, so the schema handles semantics without help from the description. The description adds nothing: it doesn't explain domain_id tenant scoping, how plugin_id and plugin_name relate, or the meaning of layout_content.

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 "[CODEARTSPIPELINE] 创建规则" only restates the tool name as a verb plus a resource. It gives no information beyond "create rule": it names no target object type, no scope, and no domain, so it does not distinguish this tool from the many sibling *Rule creation tools such as roma__CreateRule or cae__CreateTimerRule.

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?

The description gives no guidance on when to use this tool, when not to use it, what its prerequisites are, or how it relates to its closest siblings, UpdateRule and CreateStrategy. The agent must infer everything from the name and schema alone.

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