Skip to main content
Glama
iMateo

fastpanel-mcp

site_update

DestructiveIdempotent

Change a site's document root or directory index to serve frameworks from a subfolder like Laravel's /public.

Instructions

Change a site's document root (index_dir) and/or directory index, via PUT /api/sites/{site_id}. This is the ONLY way to repoint a site's docroot — nginx renders root from site.index_dir, NOT from the backend, so site_backend_update can't do it. Common need: frameworks that serve from a subfolder (Laravel/Symfony → /public). Pass framework:'laravel' to auto-append '/public' to the current docroot without computing the path yourself. This tool does a read-modify-write: it fetches the current site via site_get and resends the writable fields (docroot, index page, current certificate id, https/http2/http3/hsts flags) so the partial PUT doesn't blank out SSL or flags. ⚠️ UNVERIFIED ENDPOINT: the index_dir write path was not confirmable from the API spec (FastPanel has no OpenAPI). Run with dry_run:true, then a real call on a throwaway site, and check site_get afterwards. If index_dir does NOT change, capture the DevTools request the panel UI fires when you edit the docroot and report it so this can be corrected. WRITE — confirm:true required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
dry_runNo
site_idYesSite id from sites_list
frameworkNoPreset: sets docroot to <current_index_dir>/public. Ignored if index_dir is given explicitly.
index_dirNoNew absolute document root, e.g. /var/www/www-root/data/www/<domain>/public. Omit if using `framework`.
index_pageNoDirectory index, e.g. 'index.php index.html'. Omit to keep current.
Behavior5/5

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

Annotations indicate a write operation (readOnlyHint=false), destructive potential (destructiveHint=true), and idempotentHint=true. The description goes beyond by explaining the read-modify-write pattern, the unverified endpoint risk, the need for confirm:true, and the framework auto-append behavior. No contradiction 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 relatively long but well-structured with main purpose first, then details, and warnings. Every sentence adds necessary information (purpose, differentiation, behavioral notes, parameter guidance). Could be slightly tighter, but still effective.

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?

The tool has 6 parameters, no output schema, and annotations with openWorldHint and destructiveHint. The description covers core behavior, risks, and parameter interplay. It does not describe the response on success, but for a write tool with confirm/dry_run, the guidance to check site_get afterwards compensates. Overall adequate.

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 descriptions cover 67% of parameters. The description adds meaning: explains framework as a preset that appends '/public', clarifies that index_dir and framework are mutually exclusive, and stresses that confirm is required for writes. This adds value beyond the schema.

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 explicitly states it changes a site's document root (index_dir) and/or directory index. It distinguishes from sibling tool site_backend_update by explaining why that tool cannot achieve this. The verb 'Change' and resource 'site's document root' are clear.

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?

The description gives concrete use cases such as frameworks serving from subfolders (Laravel/Symfony) and notes that this is the ONLY way to repoint docroot. It recommends dry_run for safety and warns about the unverified endpoint, but does not explicitly list when NOT to use it (e.g., alternative tools for other modifications).

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