Skip to main content
Glama

whm_list_packages

List all hosting packages/plans configured on a WHM server for a given account alias.

Instructions

List all hosting packages/plans configured on the WHM server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesAccount alias from accounts.json (use list_accounts to see options)

Implementation Reference

  • Handler for whm_list_packages tool – calls WHM JSON API 'listpkgs' endpoint to list all hosting packages/plans.
    case "whm_list_packages":
        return await _get(client, url("listpkgs"), headers)
  • Schema/definition for whm_list_packages tool – requires only 'account' parameter.
    Tool(
        name="whm_list_packages",
        description="List all hosting packages/plans configured on the WHM server",
        inputSchema={
            "type": "object",
            "properties": ACCOUNT_PARAM,
            "required": ["account"]
        }
    ),
  • src/server.py:42-44 (registration)
    Registration of all WHM tools (including whm_list_packages) via whm_tools() function call from src/tools.py.
    all_tools.extend(whm_tools())
    all_tools.extend(cpanel_tools())
    return all_tools
  • Shared helper function _get used to make async HTTP GET requests to WHM API.
    async def _get(client: httpx.AsyncClient, url: str, headers: dict, params: dict = None) -> dict:
        try:
            r = await client.get(url, headers=headers, params=params or {})
            r.raise_for_status()
            return r.json()
        except Exception as e:
            return {"error": str(e)}
Behavior3/5

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

No annotations are provided, so the description bears full responsibility. It states it lists packages, which is a read-only operation, but does not disclose any behavioral traits like required permissions or side effects. For a simple list tool, this is adequate but could mention if any restrictions apply.

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 no unnecessary words. It efficiently conveys the tool's action and scope.

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?

Given the tool's simplicity (1 parameter with good schema description, no output schema), the description is mostly complete. It explains what it does and how to get the parameter value. However, it could briefly mention the return format (e.g., list of package names) for added completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema describes the 'account' parameter as 'Account alias from accounts.json'. The description adds value by suggesting 'use list_accounts to see options', which helps the agent understand how to obtain valid values, going beyond the schema.

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?

The description clearly states the tool's purpose: 'List all hosting packages/plans configured on the WHM server'. It specifies the verb 'List', resource 'hosting packages/plans', and scope 'on the WHM server', distinguishing it from sibling tools like whm_list_accounts or whm_list_ips.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool or alternatives. However, the context implies it is used to view available packages before creating accounts or managing them. A reference to sibling list_accounts for the parameter provides indirect usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/manofsadness/ItchWHMMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server