Skip to main content
Glama

PillDrops

list_files

List a directory in the sandbox workspace as structured entries (name, size, whether it is a directory) — use it to find your way around before read_file, rather than parsing ls output from run_command. Paths are relative to the workspace root; omit path for the root. An absolute path outside the workspace is refused.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sandbox_id": "<sandbox_id>"
    },
    "name": "list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNodirectory relative to the workspace root (default the root)
sandbox_idYessandbox id, e.g. sb_ab12cd

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses important traits: paths are relative to the workspace root, omitting path lists the root, absolute paths outside the workspace are refused, and the return value consists of structured entries with name, size, and directory status. It does not cover edge cases such as hidden files, sorting, or entry limits, which keeps it from a top score.

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, starting with the core action and return shape. Every clause contributes useful information: the structured entry format, the intended workflow before read_file, the alternative to avoid, and path rules.

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 two-parameter listing tool with no annotations and no output schema, the description covers purpose, invocation rules, refusal behavior, and the shape of returned entries. It is nearly complete, though an agent might still wonder about ordering or whether hidden entries are included.

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%, and the schema already documents both parameters, including that path defaults to the root. The description repeats those semantics ("Paths are relative to the workspace root; omit path for the root") without adding new format or constraint details beyond the schema. Baseline 3 is appropriate when the schema already does the heavy lifting.

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 uses a specific verb and resource: "List a directory in the sandbox workspace as structured entries (name, size, whether it is a directory)." It also distinguishes itself from relevant siblings by explaining it should be used "before read_file, rather than parsing ls output from run_command." An agent can identify the tool's distinct role without opening the schema.

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

Usage Guidelines5/5

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

It explicitly states when to use this tool ("to find your way around before read_file") and names a concrete alternative to avoid ("rather than parsing ls output from run_command"). The path-handling guidance ("omit path for the root" and absolute paths outside the workspace are refused) further clarifies correct invocation.

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.