Skip to main content
Glama

get_project_files

Retrieve a CSTCloud LaTeX project's complete file and folder tree, including file IDs and paths, so you can locate files and get the IDs needed to read or write them.

Instructions

Get the file tree (all files and folders) of a CSTCloud LaTeX project. Returns a flat list of files with their IDs, names, types (doc/file), and full paths. You need the file ID from this list to read or write specific 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_id": "<project_id>"
    },
    "name": "get_project_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project ID (from list_projects)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does well: it describes the return shape (flat list with IDs, names, types doc/file, and full paths) and the downstream dependency on the file ID. It omits permission requirements, pagination/size limits, and whether folders are addressable by ID, which keeps it from a 5.

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?

Three short sentences, front-loaded with the action and resource, then the return contents, then the downstream use. No filler and every sentence adds usable information.

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?

No output schema exists, so the description fills that gap by enumerating the returned fields, which is exactly what an agent needs before calling. Minor ambiguity remains around whether folders appear with IDs in the flat list, but overall complete for a simple one-parameter read tool.

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?

Only one parameter, and the schema already documents it at 100% coverage including its origin ('from list_projects'). The description adds no further parameter meaning, so the baseline applies.

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 ('Get the file tree ... of a CSTCloud LaTeX project') and clarifies scope as 'all files and folders,' which lets an agent distinguish it from read_file/write_file without inspecting their schemas.

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?

Explicitly tells the agent why to call it: the returned file ID is required to 'read or write specific files,' routing toward read_file/write_file. It stops short of naming those siblings or stating when not to use it, so it falls just 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.