Skip to main content
Glama
SuxyEE

bt-panel-mcp-server

by SuxyEE

get_nginx_config

Retrieve the Nginx configuration file for a specific domain to inspect reverse proxy, SSL, and location rules.

Instructions

读取指定网站的 Nginx 配置文件(/www/server/panel/vhost/nginx/<域名>.conf)。适合查看反代、SSL、location 规则等配置。只读,不修改。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesget:读取 Nginx 配置文件内容 | save:保存修改后的配置内容(谨慎操作,保存后即生效)
site_nameYes网站名称(主域名),对应 /www/server/panel/vhost/nginx/<site_name>.conf
contentNo【save】新的配置文件内容,完整替换原文件
Behavior1/5

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

The description states '只读,不修改' (read-only), but the input schema allows a 'save' action that modifies the config file. This is a direct contradiction. Annotations are absent, so the description carries full burden but is misleading.

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?

The description is very concise (two short sentences) and front-loaded with the core purpose. However, it omits the save functionality, which makes it incomplete; but for what it covers, it is efficient.

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?

No output schema, and description does not explain return values or error conditions. More critically, it fails to describe the save action, leaving the tool's full behavior undocumented. Schema compensates for parameters but not for behavioral gaps.

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?

Input schema coverage is 100%, so baseline is 3. The description adds no additional meaning beyond schema; it does not elaborate on parameters or their usage.

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 clearly states it reads Nginx config for a specific site, and specifies the file path. It distinguishes from siblings by being specific to Nginx config. However, the claim '只读,不修改' (read-only) contradicts the schema which includes a 'save' action, reducing clarity.

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 description says it is suitable for viewing reverse proxy, SSL, location rules, implying when to use. It does not mention when not to use or alternatives, but siblings are distinct (logs, system status, etc.), providing implicit context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SuxyEE/bt-panel-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server