Skip to main content
Glama

file_list

Lists a remote SFTP directory, returning each entry’s name, size, mode, and modification time; missing paths return REMOTE_ERROR.

Instructions

List a remote directory over SFTP (name, size, mode, mtime); missing directories fail with REMOTE_ERROR.

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": {
      "remotePath": "<remotePath>"
    },
    "name": "file_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo
remotePathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the return fields (name, size, mode, mtime) and one failure mode (REMOTE_ERROR for a missing directory), which is genuine behavioral value. It says nothing about authentication requirements, whether listing is recursive, whether hidden entries are included, or how the host argument is resolved.

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?

A single front-loaded sentence with the return fields and the error case packed in; nothing is redundant. The parenthetical could be split for readability, but the density is mostly an asset.

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?

For a two-parameter read tool with no annotations and no output schema, the description covers purpose, returned columns, and one error path. It is still incomplete on the host parameter default and on path format, which an agent needs before a first call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description adds no meaning for either parameter: it never says whether host is optional or what happens when it is omitted, nor whether remotePath is absolute, relative, or shell-expanded. The two arguments are effectively undocumented in both places.

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?

"List a remote directory over SFTP" gives a specific verb + resource and names the transport, which separates it from write-path siblings like file_upload and file_download. It does not explicitly contrast itself with any named alternative, so it falls 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 Guidelines2/5

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

There is no statement of when to use this versus alternatives, no prerequisite such as needing a reachable host or credentials, and no note that a separate host-resolution tool may be needed to supply the host argument. Usage is only inferable from the phrase "list a remote directory."

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