Skip to main content
Glama
iMateo

fastpanel-mcp

by iMateo

site_backend_update

Update a site's backend settings including PHP version, handler, app file, port, socket, and env vars. Provide the site ID; unspecified fields retain current values.

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?

Despite no annotations, the description thoroughly discloses behavioral traits: internal ID resolution, that it does NOT change document root, that confirm is required, and that it is a WRITE operation. Warns about potential 404 error if backend_id is passed directly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single well-organized paragraph that front-loads the main purpose, then provides crucial usage notes and disclaimers. Every sentence adds value without redundancy.

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?

Given the tool's complexity (12 params, mutation, internal ID resolution), the description covers essential behavioral aspects. However, it does not specify the return value or error handling, which could be useful but is not critical for a mutation tool with no output schema.

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 high (83%), but the description adds value beyond schema by clarifying that site_id is the site id (not backend id), that omitted fields keep current values, and that handler is only meaningful for type=php. This enhances understanding beyond the 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 specific configurable settings (PHP version, handler, etc.). It explicitly distinguishes from sibling tool site_update, which changes docroot.

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

Usage Guidelines4/5

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

Provides clear guidance on using site_id from sites_list and notes that backend_id is resolved internally. Mentions confirm requirement and that omitted fields keep current values. References site_update for docroot changes, but does not give exhaustive when-not-to-use instructions for all siblings.

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