Skip to main content
Glama

mrs__ShowHdfsFileList

Lists files in a specified directory within a Huawei Cloud MRS cluster, with pagination, sorting, and optional file-count controls for browsing HDFS data.

Instructions

[MRS] 在MRS集群中获取指定目录文件列表。

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": {
      "cluster_id": "<cluster_id>",
      "path": "<path>",
      "project_id": "<project_id>"
    },
    "name": "mrs__ShowHdfsFileList"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes文件目录。
limitNo分页参数,列表当前分页的数量限制,默认为100,最大1000。
orderNo列表排序方式,desc为降序,asc为升序,默认值为desc。
offsetNo分页参数,表示从该偏移量开始查询文件列表,默认值为0。
sort_keyNo列表排序按该属性排序。缺省值:path_suffixpath_suffix
cluster_idYes集群ID。获取方法,请参见[获取集群ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。
project_idYes项目编号。获取方法,请参见[获取项目ID](https://support.huaweicloud.com/api-mrs/mrs_02_0011.html)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it discloses nothing about behavior beyond the one-line purpose. It does not say the operation is read-only, what permissions are required, what happens for a nonexistent or empty directory, or what the returned file entries contain.

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 no wasted wording, prefixed by the [MRS] service tag. It is efficient, though its brevity borders on under-specification rather than tight editing.

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

Completeness2/5

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

For a 7-parameter tool with no annotations and no output schema, the description is too thin. It leaves the agent without any picture of the response shape (file names, sizes, modification times) or error behavior, which the schema alone cannot convey.

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 description coverage is 100%, and every parameter (path, limit, offset, order, sort_key, cluster_id, project_id) is documented in the schema with defaults and enums. The description adds nothing beyond that, so the baseline of 3 is appropriate.

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?

The description states a specific verb and resource: retrieve the file list of a given directory in an MRS cluster. An agent can tell this is a directory-listing operation, though it does not explicitly differentiate itself from other MRS listing siblings (e.g., ShowJobExeListNew, ListHosts).

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 guidance on when to use this tool versus alternatives, nor any stated prerequisites such as needing a valid cluster ID or an existing path. The agent must infer usage entirely from the name and schema.

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

Deploy Server

Other Tools