Skip to main content
Glama
hostinger

hostinger-api-mcp

Official
by hostinger

List website files and directories

hosting_listWebsiteFilesAndDirectoriesV1
Read-only

List files and directories under a website's document root. Filter by type, browse subdirectories, and paginate results to manage large directory listings.

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.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.42.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already mark this as read-only and non-destructive. The description adds valuable behavioral context: symlinked entries are listed but never traversed or resolved, and directory paths are relative to the document root. This is useful beyond what annotations provide.

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 compact and front-loaded: the first sentence states the purpose, and the second adds essential behavioral and parameter context. There is no filler or redundant restating of the tool name.

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?

For a read-only listing tool with 7 parameters and no output schema, the description supplies the key operational context: document-root anchoring, subdirectory browsing, and symlink handling. Pagination and return-shape details are not described explicitly, but the parameter schema largely covers the remaining invocation details.

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?

Schema description coverage is 100%, so the baseline is 3. The description enriches the `directory` parameter by clarifying it is relative to the document root, which is not fully explicit in the schema. Other parameters like offset, max_depth, and file_types are left to the schema, but that is acceptable given full coverage.

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 clearly states the verb and resource: 'List files and directories under a website's document root.' It defines the scope precisely and distinguishes itself from content-reading tools, though it does not explicitly name any sibling alternatives.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as hosting_getWebsiteFileContentV1 or other hosting tools. The 'Use directory' sentence explains parameter usage, not tool selection, so the description lacks exclusion or selection criteria.

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