Skip to main content
Glama

List Files in Connected Storage

list_storage_files
Read-onlyIdempotent

List folders and files in a connected storage bucket to find a storage:/// job input. Entries include ready-made URIs; use a prefix to drill down and a cursor to page through results.

Instructions

List the folders and files directly under a folder in one of the user's connected buckets, to find the path for a storage:/// job input. Every entry carries its ready-made uri. Pass a folder's prefix to go one level deeper, and the returned cursor to read the next page. Read-only: it never changes the bucket. Requires a configured API key with storage access.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoEntries per page, up to 1000. Defaults to 100. Use the returned cursor to fetch the next page.
cursorNoThe cursor from the previous page
prefixNoFolder to list, ending in '/', e.g. 'raw/2026/'. Omit for the top of the bucket.
storageIdYesConnection id from list_storage, e.g. 'prod-media'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYes
cursorYesPass back as cursor for the next page. Null on the last page.
foldersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.12.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, so the description adds value beyond them: it states auth requirements (configured API key with storage access), confirms the bucket is never changed, and reveals behavioral details like returned cursors and ready-made URIs. No contradiction with 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?

Three tight sentences with no filler. The primary purpose is front-loaded, followed by the most useful operational details (URIs, prefix navigation, cursor pagination, auth, read-only guarantee) in order of importance.

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

Completeness5/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 a full output schema and complete parameter docs, the description covers invocation details, pagination behavior, auth prerequisites, and safety. Nothing essential is missing for an agent to call it correctly.

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 covers all four parameters, so the baseline is 3. The description adds extra semantics by explaining how prefix controls depth ('go one level deeper') and how the returned cursor enables pagination, reinforcing the schema without repeating it verbatim.

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 folders/files directly under a folder in a user's connected bucket. It also names the downstream purpose (finding a storage://<id>/<path> job input) and notes that each entry carries a ready-made URI, which clearly differentiates it from a sibling like list_storage.

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?

Clearly frames when to use the tool: to discover paths for storage URI job inputs, and explains how to navigate deeper via prefix and paginate via cursor. It does not explicitly name alternatives or when not to use it, but the use case is specific enough for an agent to select it correctly.

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