Skip to main content
Glama
iMateo

fastpanel-mcp

site_backend_update

DestructiveIdempotent

Update an existing site's backend settings including PHP version, handler, port, and environment variables by providing the site ID.

Instructions

Update backend settings of an existing site: PHP version, handler (php_fpm/fcgi), app file, port, socket path, env vars. Pass the SITE id (from sites_list) — this tool resolves the backend id internally (the API endpoint is PUT /api/sites/backend/{backend_id}, where backend_id = main_backend.id, NOT the site id; passing a site id there 404s). All settings except site_id are optional: omitted fields keep the site's current backend values (fetched via site_get). NOTE: this does NOT change the site's document root (site.index_dir) — nginx renders root from the site object, not the backend. Use site_update for docroot. WRITE — confirm:true required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoBackend listen port (default: keep current)
typeNoBackend runtime type (default: keep current)
confirmNo
dry_runNo
handlerNoPHP handler (only meaningful for type=php; default: keep current)
site_idYesSite id from sites_list (backend id is resolved automatically)
app_fileNoEntry file (default: keep current)
work_dirNoWorking directory (default: keep current)
environmentNoEnv vars, e.g. ['KEY=val'] (default: keep current)
socket_pathNoUnix socket path for the backend (default: keep current)
manual_changesNoPreserve manual changes to backend config
handler_versionNoPHP version without dot (default: keep current)
Behavior5/5

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

Annotations already indicate destructiveHint=true and idempotentHint=true. The description adds context: the tool resolves the backend id internally and uses PUT /api/sites/backend/{backend_id}, and omitted fields keep current values by fetching via site_get. No contradictions with annotations.

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 a single paragraph that front-loads purpose and includes all necessary information. It is dense but clear; slight improvement could be breaking into bullet points for readability, but it remains concise with no wasted words.

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

Completeness4/5

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

For a mutation tool with 12 parameters and no output schema, the description explains internal resolution, merge semantics, confirm requirement, and docroot separation. It does not describe the return value, but given no output schema, this is a minor gap. Overall quite complete.

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?

Schema coverage is 83%. The description adds key context beyond schema: all settings except site_id are optional, omitted fields keep current values, and passing site_id avoids 404. However, not every parameter is individually elaborated beyond schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Update backend settings of an existing site' and lists the specific settings (PHP version, handler, app file, port, socket path, env vars). It distinguishes from sibling tool site_update by explicitly noting that this tool does not change the document root, which site_update does.

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

Usage Guidelines5/5

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

The description instructs the agent to pass the SITE id from sites_list, warns against using backend_id directly (404 error), explains that omitted fields keep current values, and directs to site_update for docroot changes. It also flags that confirm:true is required for write operations.

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/iMateo/fastpanel-mcp'

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