Skip to main content
Glama

workspaceapp__CreatePolicyTemplate

Create a WorkspaceApp policy template to define reusable policy configurations, enabling policy groups to be built by adjusting the template as needed.

Instructions

[WORKSPACEAPP] 新增策略模板。策略模板创建好后,用户在创建策略组的时候,就可以根据已有策略模板按需调整配置,快速完成策略组的创建。

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": {
      "policy_group": "<policy_group>",
      "project_id": "<project_id>"
    },
    "name": "workspaceapp__CreatePolicyTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
policy_groupYes策略模板。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies a create/mutation operation, but says nothing about required permissions, whether the operation is idempotent, name-uniqueness constraints, quota limits, or what happens to unspecified policy options (whether server-side defaults are filled in). For a mutation tool with zero annotation coverage this is a significant gap.

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?

Two short sentences with no filler, and the core action is front-loaded before the explanatory context. The second sentence earns its place by explaining the template's purpose, though it could have been used for operational constraints instead.

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

Completeness3/5

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

The tool takes a deeply nested policy object and creates a persistent resource, yet the description covers only the concept and purpose. With full schema coverage the parameters are self-documenting, but a reader still lacks permissions, failure modes, and naming-collision behavior — the description is minimally adequate rather than complete.

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 the schema already documents every field, including the extensive nested policy options; baseline 3 applies. The description adds nothing beyond the schema — it does not explain project_id scoping or that policy_group requires a full nested policy configuration with policies and policy_group_name.

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 ('新增策略模板') and adds the downstream effect that a created template can be reused and adjusted when creating policy groups. That distinguishes it adequately from policy-group creation tools, though it never explicitly names the sibling tools it is not (Update/Delete/ListPolicyTemplate).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the second sentence describes the lifecycle role of a template (created first, then reused when building policy groups), which suggests when the tool is appropriate. There is no explicit 'use this instead of X' guidance, no prerequisite statement, and no note on what to do if a template with the same name already exists.

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