Skip to main content
Glama

setup_python_app

Provision and configure a complete Python web app (Flask, Django, FastAPI, or WSGI) with Passenger and .htaccess routing on cPanel.

Instructions

Provision and configure a complete Python application (Flask, Django, FastAPI, or WSGI) with Passenger and .htaccess routing

Input Schema

NameRequiredDescriptionDefault
domainYesDomain or subdomain to host this Python app on (e.g. 'python.example.com')
app_nameYesApplication identifier (e.g. 'flask-api', 'django-site')
app_rootYesApplication root directory (e.g. 'python/my-app' or 'public_html/py')
env_modeNoDeployment modeproduction
frameworkNoPython web framework template to initializeflask
python_versionNoPython version (e.g. '3.9', '3.10', '3.11', '3.12')3.11

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and falls short. 'Provision and configure' signals a mutating, file-writing operation, but it does not say whether an existing app_root is overwritten, whether dependencies are installed, whether Passenger registration is automatic, or what the caller must verify afterwards. 'complete' is unquantified.

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?

A single front-loaded sentence with the action, the resource, the supported frameworks and the serving mechanism. No filler and nothing redundant, though the brevity is also part of why other dimensions are weak.

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?

This is a complex multi-step provisioning operation with six parameters, no annotations and no output schema, so the description should explain side effects, prerequisites and outcome. Instead it stops at naming the frameworks and the Passenger/.htaccess mechanics, leaving the agent unable to predict what state the account will be in afterwards.

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% and all six parameters are documented with examples and defaults, so the baseline is 3. The description's framework list mirrors the existing enum values rather than adding new meaning; it says nothing about how env_mode or python_version affect the result.

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 gives a specific verb pair and resource: 'Provision and configure a complete Python application', and narrows scope to Flask, Django, FastAPI or WSGI with Passenger and .htaccess routing. That is enough to separate it from setup_nodejs_app, setup_laravel_hosting and register_passenger_app by ecosystem, although it never names those siblings explicitly.

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?

There is no when-to-use or when-not-to-use guidance. An agent cannot tell from the text whether this should be called instead of register_passenger_app/ensure_passenger_deps for an existing app, or what prerequisites (existing domain, existing app_root contents) must hold first. Use is only implied by the tool 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