Skip to main content
Glama

Get the PHP version

get_php_version
Read-onlyIdempotent

The PHP version a domain on GlobalHostia hosting uses, and the versions it can switch to (ids for set_php_version).

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>"
    },
    "name": "get_php_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesA domain on your account, e.g. mybrand.com

Output Schema

NameRequiredDescriptionDefault
domainNo
currentNo
optionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety behavior is well covered upstream. The description's added value is disclosing that the response contains both the current version and the set of switchable versions — useful return-shape context the annotations do not convey. It says nothing about error cases (unknown domain, non-hosted domain) or scope limits on which domains qualify.

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 tight sentence with the resource front-loaded and the sibling reference in a parenthetical where it belongs. There is no filler, and every clause contributes either scope or downstream purpose.

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?

Output schema is present, so return values need not be spelled out, and the reference to set_php_version establishes the workflow context. For a one-parameter read tool this is nearly sufficient; the only gap is the absence of any note about failure behavior or eligibility of the supplied domain.

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% with a single documented 'domain' parameter that even includes an example, so the schema carries the full burden of parameter meaning. The description only reinforces that the domain must be one on GlobalHostia hosting, adding marginal clarity but no new syntax or constraints.

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 names the resource (PHP version for a domain on GlobalHostia hosting) and specifies two distinct outputs: the version currently in use and the versions available for switching. It implicitly references the counterpart mutation tool set_php_version, which helps separate it from siblings, though the verb ('get'/'retrieve') is only implied by sentence structure rather than stated outright.

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 parenthetical 'ids for set_php_version' tells the agent this is the read step that must precede a version change, which is meaningful routing guidance toward the correct sibling. It does not state explicit exclusions or prerequisites (e.g. that the domain must be hosted with GlobalHostia), so it stops short of full when/when-not guidance.

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.