Skip to main content
Glama

list_files

Read-only

Lists files in an attached Overleaf project recursively, including sizes, so you can inspect project structure and locate documents before editing.

Instructions

List files in the attached project (recursively), with sizes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
pathNoFolder to list, relative to the project root. Empty for the whole project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful return-shape context (recursive traversal, sizes included), but says nothing about behavior on large trees, ordering, or what happens when no project is attached — gaps that matter for an open-world read.

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?

One short sentence, front-loaded with the verb and immediately qualified by recursion and returned payload. Nothing is wasted and nothing repeated from the schema.

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?

With a fully documented single parameter, existing annotations, and no output schema burden, the description covers what an agent needs to invoke it. It is only slightly thin on preconditions (project must be attached) and result ordering for large recursive listings.

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 coverage is 100% and the single 'path' parameter is fully documented, including the empty-string default meaning 'whole project'. The description adds only the implicit constraint that the target is the attached project; it introduces no syntax, path-format, or depth semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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'), plus scope modifiers ('recursively', 'with sizes') that tell the agent exactly what comes back. It does not distinguish itself from plausibly overlapping siblings such as search_project or outline, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied by the verb 'List' — an agent can infer this is for browsing a project's file inventory. There is no explicit when-to-use versus search_project or outline, and no stated precondition that the project must first be attached via attach_project.

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