Skip to main content
Glama

List Files

list_files

List files on a browser session's machine (e.g. downloads), newest first.

session_id is the browser session id issued by env-manager when the session was created, not the id run_agent returns.

When a listing is truncated, page on the last entry's modified_at (ISO-8601) and name, passed as modified_before and name_after. Send both: modification times are not unique, and a timestamp alone skips the rest of a tied group.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo~/Downloads
name_afterNo
session_idYes
max_entriesNo
modified_beforeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden. It discloses real behavioral traits beyond the schema: newest-first ordering, that listings can be truncated, and that paging must use both modified_before and name_after because timestamps tie. It does not mention permissions/auth or error behavior, keeping it out of 5 territory.

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?

Front-loaded with the core action, followed by two short paragraphs that each justify themselves: one prevents a wrong session_id, one prevents a broken pagination loop. No filler sentences.

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?

An output schema exists, so return values need no prose, and the description covers scope, ordering, and the non-obvious paging contract for a five-parameter tool with no annotations. It stops short of complete because auth/permission requirements and failure modes are unaddressed.

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 description coverage is 0%, so the description must supply meaning, and it does for the three most ambiguous parameters: session_id's origin, and the paired semantics of modified_before/name_after as an ISO-8601 + tiebreaker cursor. path and max_entries are left to their schema defaults and get no explanation here.

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 browser session's machine') and adds ordering ('newest first'), which immediately distinguishes it from the sibling read_file. An agent can tell what it does and roughly what it returns 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 Guidelines4/5

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

Gives clear operational context: the exact provenance of session_id ('issued by env-manager... not the id run_agent returns'), which prevents a very likely wrong-argument mistake, and explains exactly when to use the pagination params. No explicit when-not or named alternative (e.g. read_file) is given, so it stops short of a 5.

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.