Skip to main content
Glama
ChipCloud MCP Server

ChipCloud MCP Server

by bystone84

查询队列实时资源列表

list_queue_resources
Read-onlyIdempotent

Retrieves queue resource metrics—compute nodes, CPU/memory utilization, job slots, and average pending time—to monitor HPC queue capacity and identify bottlenecks.

Instructions

查询队列的计算节点数、CPU/内存利用率、总/已用/排队作业槽数及平均排队时长。

    对应芯片云 API: POST /monitor-service/queue/listQueueResource(端口 18090)。
    

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_queue_resources"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo可选:排序方向(如 asc / desc)
cluster_idNo集群 ID(clusterId);如已配置默认集群可省略
sort_fieldNo可选:排序字段(如 cpuRate、memoryRate、slotUsedRate、avgPendDurationLong)
queue_namesNo可选:指定查询的队列名列表,空或不传表示查询全部队列

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds useful context by naming the upstream chip-cloud API endpoint and port and noting that the metrics are real-time, but it does not explain data freshness, pagination, or error behavior.

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?

The description is two sentences and front-loads the returned metrics, following with the API endpoint for traceability. It contains no filler, though the endpoint/port detail is of marginal value to an agent selecting and invoking the tool.

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

Completeness4/5

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

An output schema exists, so return values do not need to be explained, and all parameters are schema-documented. The definition covers purpose, metrics, and the upstream API, and the main remaining gap is that it lacks explicit sibling differentiation and usage conditions.

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 100%, so the schema already documents all four parameters, including sort, sort_field, cluster_id, and queue_names. The description adds no parameter-specific meaning such as default cluster behavior or the valid values for sort_field beyond what the schema provides, 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 names a specific verb and resource (query queue resources) and enumerates the exact metrics returned: compute nodes, CPU/memory utilization, total/used/pending slots, and average pending duration. It is clear what the tool does, but it does not distinguish itself from the sibling tool list_node_resources, which likely returns similar node-level metrics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description implies this tool is for querying real-time resource metrics, but it gives no explicit when-to-use guidance and no alternatives to use or avoid. An agent must infer that list_node_resources is for node-level data, while this tool is for queue-level data, without any help from the definition.

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