Skip to main content
Glama

workspace__SetRuleRestriction

Configures Workspace application control rules to enable or disable app restrictions, periodic monitoring, and forced app termination for a specified project.

Instructions

[WORKSPACE] 设置管控规则。

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": {
      "app_restrict_rule_switch": "<app_restrict_rule_switch>",
      "project_id": "<project_id>"
    },
    "name": "workspace__SetRuleRestriction"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
app_control_modeNo应用管控方式,0:禁止列表应用程序运行
app_periodic_switchNo周期性监控开关,false:关闭,true:打开
app_periodic_intervalNo周期性监控间隔时间,单位分钟
app_restrict_rule_switchYes应用管控开关,false:关闭,true:打开
app_force_kill_proc_switchNo强制kill应用开关,false:关闭,true:打开

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 provided, so the description must carry the full burden. "设置" signals a mutation, but the description does not state whether it overwrites or merges existing rules, what happens when the switches are false, whether permissions are required, or whether the change is reversible. For a 6-parameter write tool, this is a major gap.

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?

The definition is a single bracketed sentence, so it contains no wasted words. However, it is too brief to be useful: the brevity reflects under-specification, not conciseness, and no key information is front-loaded because there is no key information.

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?

This is a mutation tool with 6 parameters, no annotations, and no output schema. The description does not cover effects, permissions, or return behavior. It is nowhere near complete enough for an agent to call this tool safely.

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 already has its meaning, enum-like values, and ranges documented in the schema. The description adds no parameter detail at all, so the baseline 3 is appropriate when the schema does all the work.

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?

"设置管控规则" essentially restates the tool name (SetRuleRestriction) in Chinese without adding scope. It gives no indication of what a "管控规则" governs (which apps, which project, which enforcement mode), so an agent cannot distinguish it from siblings such as workspace__EnableRuleRestriction, workspace__DisableRuleRestriction, or workspace__UpdateAppRule.

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 when-not-to-use guidance, and no mention of alternatives or prerequisites. The only hint is that the parameters look like a write operation, so the agent must infer usage from the schema rather than the description.

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