Skip to main content
Glama

PHP-Version wechseln

switch_php_version

Wechselt die PHP-Version einer Domain (z. B. "8.4"). Welche Versionen es gibt und welche eingestellt ist, zeigt get_php_versions — dort nachsehen, NIE mit einer geratenen Version "ausprobieren": Ein Wechselversuch kann beim Kunden als Bestätigungsknopf landen. Eine Version, die auf dem Server nicht wählbar ist, wird abgewiesen, bevor irgendetwas vorbereitet oder geändert wird; die Fehlermeldung nennt dann die wählbaren Versionen. Die gesetzte Version wird aus Plesk zurückgelesen; lässt sich der Wert nicht zurücklesen, sagt die Antwort das ausdrücklich statt den Wunschwert als bestätigt auszugeben.

Input Schema

NameRequiredDescriptionDefault
domainYesDie Domain, z. B. example.de
php_versionYesZiel-PHP-Version, GENAU im Format "X.Y" mit je einer Ziffer vor und nach dem Punkt (z. B. "8.4") — einer der Werte aus get_php_versions. Als ungültiges Format abgewiesen: "8", "8.4.1", "PHP 8.4", "8.10".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only give readOnlyHint=false, destructiveHint=false, openWorldHint=true. The description goes well beyond: validation happens before any preparation or change, the error message enumerates the allowable versions, and the applied value is read back from Plesk with an explicit admission when read-back fails instead of echoing the requested value. That is substantive mutation-behavior disclosure.

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?

Front-loaded with purpose, then prerequisite, then failure/verification behavior. Dense but every sentence carries distinct operational information; slight length keeps it from a perfect score.

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

Completeness5/5

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

For a two-parameter mutation with no output schema, the description covers the prerequisite lookup, pre-change validation, error content, and post-change verification. Nothing an agent needs to call it safely is missing.

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 both parameters, including the exact "X.Y" format and rejected examples. The description adds only a restatement of the example value and a pointer to get_php_versions; baseline 3 applies when the schema carries the burden.

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?

States a specific verb and resource ('Wechselt die PHP-Version einer Domain') and immediately scopes it against the sibling get_php_versions, which only reports available/current versions. An agent can distinguish the two without opening either schema.

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?

Explicit routing rule: consult get_php_versions first, and NEVER guess a version. It also gives a concrete reason for the exclusion (the switch attempt may surface as a customer confirmation prompt), plus the precondition that unselectable versions are rejected up front.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources