Skip to main content
Glama

css__AddFavorite

Adds a custom template to a specified Huawei Cloud CSS cluster by submitting the cluster ID, project ID, template name, and template details.

Instructions

[CSS] 该接口用于添加到自定义模板。

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": {
      "cluster_id": "<cluster_id>",
      "name": "<name>",
      "project_id": "<project_id>",
      "template": "<template>"
    },
    "name": "css__AddFavorite"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes配置文件名称。4~32个字符,只能包含数字、字母、中划线和下划线,且必须以字母开头。
templateYes自定义模板实体对象。
cluster_idYes指定添加自定义模板的集群ID。
project_idYes项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 it discloses almost nothing: it does not say the operation mutates state (implied only by '添加'), whether it is idempotent, what happens if the config file already exists in the template, what permissions are required, or what a successful response looks like. For a write operation with zero annotation coverage this is a substantial gap.

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?

It is a single short sentence with no filler, so there is no verbosity to penalize. However, it is under-specified rather than concise — the brevity comes at the cost of information an agent needs, not from trimming redundancy.

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 4-required-parameter mutation tool with a nested object, path-scoped cluster/project identifiers, no annotations, and no output schema, the definition is far too thin. An agent would have to infer the mutation semantics, error behavior, and the meaning of the path identifiers 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%, and the nested template object documents templateName and desc, so the schema already does the semantic work. The description adds nothing about parameters — notably it never clarifies that name refers to the configuration file being attached, nor how cluster_id and project_id scope the operation (both are path parameters, which the description does not surface).

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

Purpose3/5

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

The description gives a verb ('添加' / add) and a target ('自定义模板' / custom template), but omits what is being added — only the schema reveals it is a configuration file (name) bundled with a template entity. The tool name 'AddFavorite' adds further ambiguity that the one-line description does not resolve, so the agent must open the schema to understand the action.

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, no exclusions, and no reference to alternatives such as css__CreateCnf (create config file) or css__DeleteTemplate. The agent cannot tell from the text when this should be chosen over the other template/config tools in the sibling list.

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