Skip to main content
Glama

codeartspipeline__UpdateRule

Updates an existing CodeArts Pipeline rule with new property groups, thresholds, plugin metadata, and layout content.

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>",
      "rule_id": "<rule_id>",
      "type": "<type>"
    },
    "name": "codeartspipeline__UpdateRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes规则名称
typeYes规则类型
contentYes规则属性集
rule_idYes规则ID
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

C2.1/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 and delivers almost nothing. It signals a mutation on an existing rule (via rule_id), but does not say whether this is a full replace or partial update, whether the nested content/properties payload is overwritten wholesale, what permissions or tenant scoping 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?

It is short and front-loaded with no filler, but the brevity here is under-specification rather than economy — a single four-character phrase is not an adequate definition for a 9-parameter mutation tool. There is nothing to trim, but nothing earned either.

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?

With 9 parameters (6 required), a nested rule-attribute payload, no annotations, and no output schema, the definition is completely inadequate. Nothing tells the agent what a successful update returns or how the required content/layout_content fields must be formed.

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%, including the nested content → properties structure, so the schema already documents all 9 parameters. The description adds no meaning beyond it, which lands at the baseline 3 for a fully annotated schema.

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?

"更新规则" restates the tool name UpdateRule plus a service tag; it adds no resource scope, no target object detail, and no distinction from siblings like CreateRule/DeleteRule/ShowRule beyond the bare verb. An agent learns only that a mutation named 'update' exists.

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 at all: no mention of when to update an existing rule versus creating one via CreateRule, no prerequisites (rule must already exist, required tenant/domain context), and no exclusions. Usage must be inferred entirely from the name.

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