Skip to main content
Glama

List Site Files

list_site_files
Read-onlyIdempotent

List files on a site. Returns path, size in bytes, content type, and live URL for each file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
cursorNoPagination cursor from a previous list_site_files response.
prefixNoFilter to files whose path starts with this prefix, e.g. 'assets/'.
site_idYesThe site's public identifier returned by list_sites or create_site.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYes
cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare it read-only, idempotent, and non-destructive. The description adds behavioral context by specifying the returned fields and implying it returns file metadata, not contents. It does not contradict the annotations.

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?

Two short sentences that lead with the core action and then the useful result fields. Every sentence earns its place with no filler or redundancy.

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 straightforward read-only listing tool with annotations covering safety and an output schema present, the description covers the essential behavior. It could mention pagination explicitly, but the limit and cursor parameters in the schema partially compensate.

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?

The input schema already describes site_id, cursor, and prefix, and limit has default/min/max constraints (75% coverage). The description adds no parameter-level detail beyond the schema, so it neither elevates nor harms parameter understanding.

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 ('List files on a site') and enumerates the returned metadata (path, size, content type, live URL). This clearly distinguishes the tool from siblings like read_site_file (single file content) and list_sites.

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?

The description tells what the tool does but gives no guidance on when to choose it over alternatives. It does not mention read_site_file for content retrieval or list_sites for site-level operations, leaving selection to inference.

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.

Resources