Skip to main content
Glama

list_modal_volume_contents

List files and directories within a Modal volume by specifying the volume name and an optional path. Returns the contents as structured JSON.

Instructions

List files and directories in a Modal volume.

Args:
    volume_name: Name of the Modal volume to list contents from.
    path: Path within the volume to list contents from. Defaults to root ("/").

Returns:
    A dictionary containing the parsed JSON output of the volume contents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
volume_nameYes
pathNo/

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description bears full responsibility. It does not disclose behavioral traits such as permissions required, whether the operation is idempotent, or what happens if the volume does not exist. It only states it returns parsed JSON, which is minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise: a one-line purpose sentence followed by structured Args and Returns sections. It front-loads the action and uses plain language. Slight improvement could be merging the purpose with the argument descriptions into prose, but it remains clear and efficient.

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?

Given the tool's simplicity (2 parameters, no nested objects, and an output schema), the description adequately covers inputs and outputs. However, it does not mention that the volume must exist or handle potential errors. Overall, it is reasonably complete for a straightforward list operation.

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 has 0% parameter description coverage, but the description adds meaning: 'Name of the Modal volume to list contents from' and 'Path within the volume to list contents from. Defaults to root ("/")'. This clarifies the role of each parameter and the path default, though it could specify path format (e.g., absolute vs relative).

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 states 'List files and directories in a Modal volume.' This is a specific verb (list) and resource (files and directories in a Modal volume). It clearly distinguishes from siblings like 'list_modal_volumes' (which lists volumes) and 'get_modal_volume_file' (which gets a specific file).

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 provides no guidance on when to use this tool versus alternatives. There is no mention of when not to use it or explicit context. While the sibling list includes related volume operations, no differentiation is provided.

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/george-bobby/mcp-modal'

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