Skip to main content
Glama

Change the PHP version

set_php_version
DestructiveIdempotent

Switch a domain on GlobalHostia hosting to another PHP version (id from get_php_version). A site written for another version can stop working, so it needs confirm: true after the customer approves; switching back is possible at any time.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "<domain>",
      "version_id": "<version_id>"
    },
    "name": "set_php_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesA domain on your account, e.g. mybrand.com
confirmNoMust be true. Set it only after the customer has explicitly confirmed this exact change.
version_idYesOption id from get_php_version

Output Schema

NameRequiredDescriptionDefault
toNo
fromNo
domainNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint, idempotentHint, readOnlyHint=false), the description discloses the concrete risk ('a site written for another version can stop working'), the human-approval gate required before mutation, and reversibility ('switching back is possible at any time') — exactly the behavioral context an agent needs before a destructive write.

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?

Two sentences, front-loaded with the action and followed by the risk/approval constraint; nothing is padded. Minor density in the second sentence bundles risk, confirmation and reversibility together, but it reads cleanly.

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?

With an output schema present, return values need no explanation, and the description covers risk, approval, reversibility and id provenance. It omits propagation timing or whether the switch takes effect immediately, a small remaining gap for a destructive mutation.

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 coverage is 100%, so domain, version_id and confirm are already documented, including the approval rule for confirm. The description only reinforces provenance for version_id (get_php_version) and the approval requirement, adding no new syntax or format detail beyond the schema — baseline 3.

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 ('Switch a domain ... to another PHP version') and pins the scope to GlobalHostia hosting, while naming get_php_version as the source of version ids so it is clearly distinguished from the read-only sibling.

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?

Tells the agent to obtain the version id from get_php_version and to require customer approval before calling with confirm: true, which is clear usage context. It stops short of explicit when-not conditions (e.g., use get_php_version first if the current version is unknown), so it is not a full 5.

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.