Skip to main content
Glama

diagnose_environment

Checks environment and resource availability for STM32 J-Link workflows, returning a diagnostic report to identify setup issues before flashing, verification, or runtime analysis.

Instructions

Diagnose environment and resource availability / 诊断环境与资源可用性.

Returns: Environment diagnosis report / 环境诊断报告

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.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 of behavioral disclosure. It does not say what is actually probed (toolchain, server, device, network), whether the call is guaranteed read-only, whether it can be slow or block on hardware discovery, or what happens when components are unavailable — all of which matter for a diagnostic tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose line is front-loaded and short, which is good, but the 'Returns:' line and the bilingual duplication add no information beyond what the output schema already declares. Roughly half the text does not earn its place.

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?

With zero parameters and an output schema, the definition is structurally simple, but the absence of annotations means the description should explain what a 'diagnosis' covers and what state it touches. An agent can invoke it, but cannot predict cost, side effects, or which failure modes it surfaces versus its many status-reporting siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, which is the baseline 4 case; there is nothing for the description to disambiguate. The one thing worth stating — that the scope of the diagnosis is fixed and not selectable — is left implicit but is not a real gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'diagnose' and the object 'environment and resource availability' are present, but 'environment' is left undefined. Several siblings (get_server_config, get_server_capabilities, get_connection_status, get_target_info) plausibly report on the same environment, and nothing in the description distinguishes this aggregate health check from those narrower status tools.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The word 'diagnose' weakly implies troubleshooting context, leaving the agent to infer that this is a first-step triage call before reaching for the specific status tools.

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