Skip to main content
Glama

List files

list_files
Read-only

List the design files you can open in every workspace of the account (or one, with workspace), most recently edited first, with their project, their workspace (when the account has several), your role and what they hold: their pages with the number of screens (detail "frames": the screens' names too). query finds files by the name of the file, its project, a page or a screen ("onboarding", "checkout payment"), and shows where it matched.

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
queryNoWords that must all appear in the file's name, its project's, or the name of one of its pages or screens.
detailNofiles: one line per file. pages (default): its pages and their screen counts. frames: each page's screen names.pages
workspaceNoOnly this workspace: its id or name (whoami lists them). Default: all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the description earns credit for adding sort order, the visibility scoping ('files you can open'), and exactly what metadata each row carries (project, workspace, your role, pages, screen counts). It does not discuss result limits or pagination.

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 verb and scope, and every clause carries information rather than filler. It is, however, one long run-on sentence with nested parentheticals that takes effort to parse.

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?

With no output schema, the description takes on the burden of describing return values and does so thoroughly across all three detail levels, plus ordering and role information. An agent has everything needed to call this correctly.

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 coverage is already 100%, yet the description still adds meaning: query matches against file, project, page, or screen names and reports where it matched, and detail 'frames' is described as including screen names. The workspace parameter's id-or-name behavior is left entirely to 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 the design files you can open'), plus scope (every workspace or one), ordering (most recently edited first), and returned fields. It is unambiguous what the tool does, though it never explicitly contrasts itself with a sibling like get_file or list_assets.

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 usage context: use it to enumerate files, and use query to find files by file, project, page, or screen name, with concrete example queries ('onboarding', 'checkout payment'). It stops short of stating when not to use it or naming an alternative tool.

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.