Skip to main content
Glama

mrs__ListHosts

Lists detailed host information for a specified MRS cluster, enabling you to inspect cluster nodes and manage resources by cluster ID and project ID.

Instructions

[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>",
      "project_id": "<project_id>"
    },
    "name": "mrs__ListHosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageSizeNo分页查询每页返回的最大集群数量。
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)。
currentPageNo当前查询页码。默认值为1。

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 provided, so the description carries the full behavioral burden. It implies a read-only query, but says nothing about permissions required, pagination behavior despite pageSize/currentPage parameters, or what the returned host details 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 short sentence that front-loads the purpose with no filler or redundancy. It is efficient, though its brevity borders on under-specification rather than genuine conciseness.

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?

The input schema is fully documented and there is no output schema to explain, so the definition is minimally sufficient. However, for a four-parameter listing tool with zero annotations, the description should say more about pagination, result scope, and the difference from related listing tools.

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%, so all four parameters are already documented, including the ID retrieval links and the default page value. The description adds no meaning beyond the schema's own parameter documentation, which matches the baseline of 3 for full coverage.

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+resource: it queries the host list details of a given cluster, scoped by the passed cluster_id. This is clear enough for an agent to know what it returns, but it does not differentiate this from sibling listing tools such as mrs__ListNodes, which likely surfaces related node/host data.

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 explicit when-to-use or when-not-to-use guidance, and no alternative sibling is named. Usage is only implied by the word 'query' plus the cluster scoping, leaving the agent to infer that this is the listing call for cluster hosts.

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