Skip to main content
Glama

diagnose_fault

Analyzes HardFault, MemManage, BusFault, and UsageFault exceptions to identify fault type, source file and line, and ranked causes, then saves a diagnostic report.

Instructions

Phân tích HardFault/MemManage/BusFault/UsageFault: loại lỗi, file:dòng, nguyên nhân xếp hạng. Lưu báo cáo.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the write side effect is not a surprise, and the description reinforces this with "Lưu báo cáo" (saves a report). However, it does not say where the report is written, whether it overwrites prior output, or whether the analysis requires the core to be halted. That is meaningful extra context left unstated, but annotations carry the safety profile.

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?

Two compact clauses, front-loaded with the analysis scope followed by the side effect. Every fragment carries information, though the punctuation-heavy list style is slightly terse for an agent relying on prose.

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?

With no parameters and no output schema, the description must carry the full burden of explaining what comes back and what side effects occur. It does list the returned elements (fault type, file:line, ranked causes) and the report save, but omits where the report lives, what the ranking is based on, and any precondition for a valid diagnosis.

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, so there is no parameter semantics to explain and the baseline of 4 applies. The empty schema is consistent with a tool that operates on already-captured fault state.

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 ("Phân tích" / analyze) and a specific resource set (HardFault/MemManage/BusFault/UsageFault), and it enumerates the outputs: fault type, file:line, and ranked causes. It does not distinguish itself from siblings such as call_stack or read_registers, which an agent might reasonably consider for fault investigation.

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?

Usage is only implied: an agent can infer it applies after a fault has been caught on the target. There is no statement of prerequisites (halted target, fault captured in registers) and no explicit routing away from alternatives like read_registers or call_stack.

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