Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

hosting_listWebsiteFilesAndDirectoriesV1

List files and directories in a website's document root using username and domain. Browse subdirectories, filter by type, and paginate results.

Instructions

List files and directories under a website's document root.

Use directory to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name
offsetNoNumber of entries to skip. Page with offset + item count until reaching total_items.
usernameYesusername parameter
directoryNoDirectory path to check
max_depthNoHow many directory levels deep to recurse.
max_itemsNoMax number of entries to return in this page.
file_typesNoFilter by entry type, e.g. file,directory. Omit for all types.
Behavior4/5

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

The description goes beyond a simple read-only statement by explicitly noting that symlinked entries are listed but never traversed into or resolved—a valuable edge case. With no annotations and no output schema, this adds genuine behavioral context that helps the agent understand how the tool handles symlinks.

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?

The description is two concise sentences, front-loaded with the main purpose and containing no filler or repetition. Both sentences earn their place: the first defines the decision-to-call scope, the second adds a parameter clarification and an important edge-case behavior.

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

Completeness3/5

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

The description adequately covers the purpose and key navigation context, but it does not describe the return format or pagination behavior, both of which are relevant given that no output schema is present. The schema helps with parameters, but more detail about what the response contains would make this fully complete.

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 already provides descriptions for all parameters, so the baseline is 3. The description adds meaningful syntax by clarifying that `directory` is relative to the document root and represents a subdirectory browse operation, which complements rather than repeats 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 action ('List') and the target resource ('files and directories under a website's document root'). This clearly distinguishes it from sibling tools like hosting_listWebsitesV1 or hosting_getWebsiteFileContentV1.

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?

The description implies the tool is used to browse a website's file system and explicitly guides using the `directory` parameter to navigate subdirectories. However, it does not directly address when alternative tools, such as content retrieval or website listing tools, should be used instead.

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/hostinger/api-mcp-server'

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