Skip to main content
Glama

list_files

Read-onlyIdempotent

List directory entries on an authorized, online remote device. device_id identifies a registered device; path is the directory path on that device, not on the MCP server. Read-only; inspect file_info for a specific entry.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
offsetNo
device_idYes
page_sizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "title": "Offset",
      +  "type": "integer"
      +}
    • addedInput schema / properties / page_size
      Added value: +{
      +  "default": 200,
      +  "title": "Page Size",
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world. The description adds real value beyond them: the device must be registered, authorized, and online, and the path is interpreted on the remote device. It is silent on pagination behavior despite offset/page_size defaults, which is the main remaining gap.

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 clauses with zero filler; the core action comes first, followed by the parameter disambiguation and the routing hint. Every sentence adds information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the return shape need not be described, but the tool clearly paginates (offset defaults to 0, page_size to 200) and the description never mentions that results are paged or how to retrieve the rest. For a listing tool that can return large directories, this omission matters.

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 0%, so the description carries the full burden. It explains two of four parameters well (device_id = registered device, path = directory on the device, not the server), but offset and page_size are left entirely undefined in both schema and description.

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 directory entries') plus the scope ('authorized, online remote device'), and explicitly disambiguates path as being on the device rather than the MCP server. An agent can distinguish this from file_info and list_devices without opening any 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?

Implies use when browsing a directory on a device and explicitly routes the agent to file_info for a single entry. It does not state when not to use it (e.g. recursive listing, local server files), but the correct context is clear.

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.

Resources