Skip to main content
Glama

setup_laravel_hosting

Provision a production-ready Laravel environment: set docroot to /public, create MySQL database and secure .env, apply 0775 permissions, add scheduler cron, and configure PHP 8.2+.

Instructions

Provision a complete, production-ready Laravel hosting environment: sets docroot to /public, provisions MySQL database, generates secure .env, configures 0775 permissions, adds Laravel scheduler cron, and sets PHP 8.2+

Input Schema

NameRequiredDescriptionDefault
domainYesDomain or subdomain to host Laravel on (e.g. 'laravel.example.com' or 'app.mysite.com')
php_versionNoPHP runtime version (e.g. 'ea-php82', 'ea-php83')ea-php82
project_rootYesDirectory where Laravel files reside (e.g. 'laravel/my-app' or 'apps/ecommerce')
create_databaseNoWhether to provision a MySQL database for this Laravel app
database_suffixNoDatabase suffix (defaults to domain prefix)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses what gets created (database, .env with secure contents, cron entry, 0775 permissions), which is real behavioral detail. However, it omits whether the operation requires an authenticated cPanel session, whether it is idempotent or overwrites existing docroots/.env files, and whether the generated .env secrets are returned or only written to disk.

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 a clear verb and a compact enumerated list of effects; every clause names a distinct action. It is dense but not padded.

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?

For a multi-step mutation tool with no annotations and no output schema, the description covers what is done but not prerequisites, side effects on pre-existing files, or what a caller gets back. Adequate to select the tool, insufficient to predict its impact.

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?

Schema description coverage is 100%, so the schema already documents domain, project_root, php_version, create_database, and database_suffix, and the baseline is 3. The description only loosely maps to parameters (mentions PHP 8.2+ and MySQL provisioning) but adds no format or interaction details beyond the 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 uses a specific verb ('Provision') and resource ('complete, production-ready Laravel hosting environment') and enumerates the concrete sub-actions (docroot, MySQL, .env, permissions, cron, PHP version). It is clearly distinct from setup_nodejs_app/setup_python_app, though it never addresses the closer sibling provision_full_website.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given. Nothing tells the agent whether to call this versus provision_full_website, deploy_laravel_update (for existing apps), or the individual set_php_version_for_domain / create_mysql_database / create_cron_job primitives. Usage is only inferable from the name.

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

Deploy Server

Other Tools