Skip to main content
Glama

cse__CreateGovernancePolicy

Creates a CSE governance policy for a specified project, defining policy type, name, specifications, and scope such as application, service, or environment.

Instructions

[CSE] 创建治理策略。

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": {
      "kind": "<kind>",
      "project_id": "<project_id>"
    },
    "name": "cse__CreateGovernancePolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes治理策略类型
nameNo治理策略名称
specNo治理策略定义内容
selectorNo治理策略下发范围
project_idYes租户子项目的唯一标识。字符长度为1~64。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it discloses nothing: no permission/tenant requirements, no conflict or duplicate-name behavior, no statement about what is created or returned. For a mutation tool with five parameters this is effectively absent behavioral context.

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 a single short sentence with no waste, but its brevity comes from under-specification rather than discipline — the entire body of the description is a restatement of the tool name with a bracketed prefix.

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?

A create/mutation tool with five parameters, a nested selector object, no annotations, and no output schema demands substantially more than one sentence. Nothing tells the agent what a successful creation yields or how failures are surfaced.

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%, so every parameter including the nested selector object and its app/service/environment fields is already documented in the schema. The description contributes no additional meaning about valid kinds, selector semantics, or spec structure, so the baseline of 3 applies.

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?

"[CSE] 创建治理策略。" restates the tool name (CreateGovernancePolicy) in Chinese with a product tag; it adds no scope, target resource detail, or distinguishing information versus siblings like UpdateGovernancePolicy or CreateMicroserviceRouteRule. An agent learns only what the name already told it.

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?

No when-to-use guidance, no prerequisites (e.g., that a project_id and a valid policy kind must exist first), and no mention of alternatives such as UpdateGovernancePolicy for existing policies. Usage must be fully inferred 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