Skip to main content
Glama

list_files

Read-only

Recursively list files and directories to explore the Jupyter server's file system structure or locate specific files.

Instructions

List all files and directories recursively in the Jupyter server's file system. Used to explore the file system structure of the Jupyter server or to find specific files or directories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoThe starting path to list from (empty string means root directory)
limitNoMaximum number of items to return (0 means no limit)
patternNoGlob pattern to filter file paths
max_depthNoMaximum depth to recurse into subdirectories
start_indexNoStarting index for pagination (0-based)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesTab-separated table with columns: Path, Type, Size, Last_Modified. Includes pagination info header.
Behavior4/5

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

Annotations already provide readOnlyHint=true. Description adds that listing is recursive and supports pattern filtering, which is useful beyond 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 sentences, no filler. Efficiently conveys purpose and usage.

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?

With output schema present, no need to explain return values. Parameters fully described in schema. Description completes the picture for this tool.

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?

Schema description coverage is 100%, so baseline 3. Description does not add parameter-specific details beyond what schema already provides.

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?

Description clearly states 'List all files and directories recursively' and explains its use for exploring file system structure or finding specific files. It is distinct from sibling tools like list_notebooks and execute_cell.

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?

Gives context for use: exploring file system or finding specific files. Does not explicitly state when not to use or compare to alternatives, but the sibling list_notebooks implies differentiation.

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/datalayer/jupyter-mcp-server'

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