Skip to main content
Glama

css__CreateAutoCreatePolicy

Configures an automatic snapshot creation policy for a CSS cluster, including schedule, index scope, name prefix, retention days, and enable/disable status.

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>",
      "enable": "<enable>",
      "project_id": "<project_id>"
    },
    "name": "css__CreateAutoCreatePolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
enableYes是否开启自动创建快照策略。
periodNo每天创建快照的时刻,只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。
prefixNo自动创建快照的名称前缀,需要用户自己手动输入。
indicesNo需要备份的索引名。*代表所有索引。
keepdayNo自定义设置快照保留的天数,范围是1~90。系统在半点时刻会自动删除超过保留天数的快照。
cluster_idYes指定要自动创建快照的集群ID。
deleteAutoNo表示关闭自动创建快照策略时,是否需要清除所有自动创建的快照。 默认为“false”,表示不会删除之前已自动创建的快照。 设置为true,表示在关闭自动创建快照策略的同时,删除所有已创建的快照。
project_idYes项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。

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?

With no annotations supplied, the description carries the full behavioral burden, yet it only discloses the default daily cadence. It omits that the call also disables the policy when enable=false, that deleteAuto=true is destructive and wipes existing auto-created snapshots, and says nothing about permissions, idempotency, or repeat-call behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no wasted wording and the core purpose front-loaded. Its brevity borders on under-specification, but that is penalized under completeness rather than structure.

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 an 8-parameter mutation tool with no annotations and no output schema, the description is far too thin. It should at minimum cover the enable/disable duality, the destructive deleteAuto path, and the fact that unspecified optional parameters fall back to defaults.

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% with 8 well-documented parameters including period format, keepday range, and deleteAuto semantics. The description adds no parameter-level meaning beyond what the schema already provides, 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 and resource: setting an automatic snapshot creation policy for a cluster, plus the default cadence of one snapshot per day. It does not differentiate this tool from near-neighbors such as ShowAutoCreatePolicy, StartAutoCreateSnapshots, or StopAutoCreateSnapshots, so an agent must infer that this is the create/configure variant rather than a start/stop toggle.

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 call this versus the sibling policy tools, no prerequisites (e.g. cluster must exist and be available), and no mention that the same call with enable=false disables the policy. The agent is left to infer usage entirely 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