Skip to main content
Glama
ChipCloud MCP Server

ChipCloud MCP Server

by bystone84

排队作业根因分析(复合诊断)

diagnose_pending_jobs
Read-onlyIdempotent

Diagnose why HPC jobs remain queued by sampling pending jobs, aggregating pending-reason root causes, queue quota limits, and node status in one step.

Instructions

自动抓取 PEND 排队作业并并发查询作业详情,聚合 pendReason 根因分布、关联队列配额限制与节点状态。

一步定位「为什么作业一直在排队」,省去人工逐个查看 getJobDetail 和 queueList。

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": "diagnose_pending_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_nameNo可选:限定排查指定用户的排队作业
cluster_idNo集群 ID(clusterId);如已配置默认集群可省略
queue_nameNo可选:限定排查指定队列的排队作业
sample_sizeNo最多并发深入查询详情的排队作业数量(默认 10,最大 25,避免对上游造成过大压力)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered. The description adds behavior the annotations cannot convey: it fans out concurrent detail queries and aggregates results, which tells the agent this call is heavy on upstream load. It does not quantify latency or failure behavior when a sub-query fails.

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?

Two short sentences: the first states what is collected and aggregated, the second states the value and what manual work it replaces. Nothing is redundant and the core action is front-loaded.

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 shape need not be explained, and all four optional parameters are covered by the schema. The description is complete for a composite diagnostic tool, though it could note that omitting filters scopes the scan to the whole cluster and that sampling caps how many jobs are analyzed in depth.

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 user_name, cluster_id, queue_name and sample_size are already documented, including the default of 10 and the ceiling of 25. The description adds no filtering semantics or interaction rules beyond the schema, so the baseline of 3 applies.

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?

The description names a specific verb and resource: it fetches PEND queued jobs, concurrently queries their details, and aggregates pendReason root-cause distribution plus queue quota and node status. That is far more specific than the sibling list_* tools and immediately distinguishes a composite diagnosis from a single-job or queue listing call.

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?

It states the use case plainly, 'locate in one step why jobs are stuck queued', and explicitly frames itself as a replacement for manually checking job details and queue lists one by one. What is missing is an explicit when-not, e.g. that a single job's deep dive belongs to get_active_job_detail rather than this fan-out tool.

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