Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Update MCP Server Access Policy

system_update_policy

Update MCP runtime permissions and security policies, including access modes and audit rules, then optionally persist changes to mcp-config.json so local agent operations match current needs.

Instructions

动态更新 MCP 运行时权限与安全设置,可选持久化保存到 mcp-config.json。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "system_update_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
gitNoGit 快捷操作配置
appsNo软件快捷操作开关
auditNo审计日志配置
mysqlNoMySQL 快捷操作配置
servicesNo服务查看与管理权限开关
terminalNo终端权限开关与超时
accessModeNo权限模式:restricted 或 full
filesystemNo文件权限开关
saveToFileNo是否同时保存配置到磁盘文件
allowedRootsNo允许访问的目录白名单
blockedPathsNo禁止访问的敏感路径黑名单

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it does not disclose that this is a mutation of security settings, whether changes apply immediately to running sessions, whether omitted fields are preserved or reset (critical given 0 required parameters), or whether the operation is reversible. The only behavioral detail, persistence to mcp-config.json, is already expressed by the saveToFile schema field.

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?

It is a single front-loaded sentence with zero filler identifying the resource and the persist option. The brevity borders on under-specification, but nothing in the sentence is wasted.

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 11-parameter, nested, annotation-free mutation of security policy with no output schema, the description is too thin. It omits merge-vs-replace semantics, the security impact of accessMode and path allow/blocklists, and what the agent should expect after the call, leaving the agent to infer behavior from the schema alone.

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 git/apps/audit/mysql/services/terminal/filesystem objects is documented in the schema. The description adds no syntax, format, or interaction semantics beyond that baseline, so a 3 is appropriate.

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+resource: dynamically updating MCP runtime permissions and security settings, with an optional persist step to mcp-config.json. This clearly marks it as the write counterpart to a get-policy read, but it never names system_get_policy or any sibling, so differentiation is left implicit.

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 explicit when-to-use, when-not-to-use, or alternative guidance. The word '动态' hints at runtime changes, but an agent gets no instruction on when to call this versus system_get_policy or when persistence should be enabled over an in-memory change.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.