Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Get MCP Server Access Policy

system_get_policy

Fetches the current MCP service permission mode, allowed-directory whitelist, sensitive-path blacklist, and module feature switches to verify access controls and enabled capabilities.

Instructions

查看当前 MCP 服务的权限模式、允许访问目录白名单、敏感路径黑名单及各模块功能开关。

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_get_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose that the tool is a read operation (查看) and what policy facets are exposed, but it says nothing about permissions required to view the policy, whether any values are masked or redacted, or how the policy is sourced. For a zero-parameter read of security-relevant configuration, that is a moderate 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?

A single front-loaded sentence with no filler, listing the four policy facets in parallel. It is efficient, though the lack of any second sentence on usage or output shape leaves the definition slightly thin rather than verbose.

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 description is adequate for a no-parameter, no-output-schema getter and conveys the returned facets. It nonetheless omits return structure, redaction behavior, and any guidance on pairing with system_update_policy, which a security-config tool could reasonably include.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With zero parameters there is nothing to disambiguate, and schema coverage is reported at 100%, so the baseline is 4. The description adds a useful enumeration of the returned policy sections, which functions as return-value semantics in the absence of an output schema.

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 (查看/get) and enumerates the concrete contents returned: permission mode, allowed-directory whitelist, sensitive-path blacklist, and module feature flags. This clearly distinguishes it from the write-side sibling system_update_policy, though it does not name that sibling explicitly.

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?

The read-only, inspection-oriented nature of the tool is implied by 查看 (view/get), and the sibling set makes system_update_policy the obvious complement for changes. However, the description never explicitly says when to use this tool versus system_update_policy, nor does it state any prerequisites or exclusions.

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