Skip to main content
Glama

List the project's files

list_files

List a Galley project's live files with exact paths, sizes, and duplicate-path flags. Includes binary pointers, read-only; use propose_edit to make changes.

Instructions

Lists the live (non-deleted) files of the shared project — exact path + size (UTF-8 bytes when sizeExact, else a cheap lower bound), deterministic order; duplicate-path conflicts are flagged per entry. BINARY files (images/PDFs) appear too, carrying a { kind:"binary", hash, mime } pointer descriptor with an exact sizeBytes — pass that path to read_file to get the pointer. Read-only: changes go through propose_edit / propose_files.

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": {
      "project": "<project>"
    },
    "name": "list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesThe projectId of the project to work on, as returned by list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2026.11.16
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "The projectId of the project to work on, as returned by list_projects.",
      +  "maxLength": 256,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "project"
      +]
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares read-only behavior, that deleted files are excluded, that ordering is deterministic, that duplicate-path conflicts are flagged per entry, and that binary entries return a { kind:"binary", hash, mime } pointer with an exact sizeBytes rather than content. That is substantive disclosure an agent would otherwise have to discover empirically.

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?

Front-loaded with the core behavior and each clause carries real information (size semantics, ordering, conflicts, binary handling, sibling routing). It is dense with em-dashes and nested parentheticals, which costs a little readability, but nothing is padding.

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?

No output schema exists, so the description must explain the return shape, and it does: path + size, exact vs. lower-bound size semantics, deterministic order, per-entry conflict flags, and the binary descriptor fields. Combined with the snippet's simplicity (one required param), an agent has everything needed to call and interpret it.

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?

There is only one parameter (project) and the schema already documents it at 100% coverage, including that it comes from list_projects. The description adds only the implicit frame that this is the shared project, and contributes no new meaning about the parameter itself, so this lands at the baseline.

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 (lists files of the shared project) plus scope qualifiers (live/non-deleted only). The last clause explicitly separates it from propose_edit / propose_files, so an agent can distinguish it from siblings without opening a 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?

Explicitly says when not to use it for changes ('Read-only: changes go through propose_edit / propose_files') and gives a concrete follow-up routing rule: pass the binary path to read_file to get the pointer. Both the alternative and the condition selecting it are named.

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