Skip to main content
Glama

aiworkhub_doctor_diagnose

Read-only

Runs concurrent task, dispatcher, source-graph, manager-route and stale-processing health probes to diagnose current failures and return a verdict, failing probes, next step and repair tool.

Instructions

READ-ONLY: what is wrong right now. Runs the task, dispatcher, source-graph, manager-route and stale-processing health probes concurrently and returns one verdict (ok/problem/unavailable) with the non-ok probes, the tool to call next and, where one exists, the repair_tool to run (never run by the doctor), each probe's elapsed_ms, plus server_process: this answering process's pid, memory and runtime generation. heap_census=true adds server_process.heap_census, a bounded live-heap census (top types, largest containers, gc counts; type names and sizes only) -- slower, use when hunting the server's memory. Use first when something fails and the cause is unknown; use aiworkhub_environment_preflight for pre-launch readiness.

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

Input Schema

NameRequiredDescriptionDefault
heap_censusNotrue adds the bounded live-heap census to server_process (slower).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.13.2
    • addedInput schema / properties / heap_census
      Added value: +{
      +  "default": false,
      +  "description": "true adds the bounded live-heap census to server_process (slower).",
      +  "title": "Heap Census",
      +  "type": "boolean"
      +}
  2. Addedv0.12.68

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, but the description still adds meaningful context: the repair_tool is returned but 'never run by the doctor,' and probes run concurrently with per-probe elapsed_ms. That said, it doesn't cover failure modes (e.g., what an 'unavailable' verdict means or whether probes can hang), so this sits at a solid 3.

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?

Information-dense single paragraph, front-loaded with 'READ-ONLY' and the purpose. Every sentence carries content, but the run-on listing of probes and return fields is dense and could be broken up for faster scanning.

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

Completeness5/5

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

For a fan-out diagnostic tool with full schema coverage, annotations, and an output schema, this description leaves nothing an agent needs missing. It covers the inputs, outputs, next-tool routing, and the sibling alternative.

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% and the schema already documents the single heap_census parameter, including its effect and default. The description adds the trade-off ('slower') and the use case ('hunting the server's memory'), which is a marginal but real value add beyond the schema.

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?

States a specific verb and resource (runs task, dispatcher, source-graph, manager-route and stale-processing probes, returns one verdict) and names the exact output shape (ok/problem/unavailable). It explicitly distinguishes itself from aiworkhub_environment_preflight, so an agent can tell the two health tools apart immediately.

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

Usage Guidelines5/5

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

Gives explicit when-to-use guidance: 'Use first when something fails and the cause is unknown.' It also names the alternative and its condition: 'use aiworkhub_environment_preflight for pre-launch readiness.' The heap_census note adds a second conditional ('use when hunting the server's memory'), leaving little to inference.

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