Skip to main content
Glama

triage_cortex_m

Reads Cortex-M CPUID and fault status registers (CFSR/HFSR/MMFAR/BFAR) plus target state in one call to speed embedded firmware triage.

Instructions

Read Cortex-M CPUID, fault status registers (CFSR/HFSR/MMFAR/BFAR), and target state in one call.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the entire behavioral burden, and "Read" only implies a non-mutating operation. It says nothing about prerequisites that matter for fault-register access, such as needing a live debug connection or a halted target, nor what happens if the core is not Cortex-M or the target is disconnected.

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?

A single front-loaded sentence with the register set enumerated inline. There is no filler, and the key payload (what gets read) comes before the efficiency note.

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?

Because there is no output schema and no parameters, the description usefully doubles as the return-value contract by listing the registers read. However, for a debugger-adjacent diagnostic tool it omits the operational preconditions an agent needs before calling it (connection state, target halt requirement), leaving a clear gap.

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. The description correctly confirms there is no input to supply, so no compensation for parameter semantics is needed.

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 uses a specific verb ("Read") and names the exact resources returned: CPUID, CFSR/HFSR/MMFAR/BFAR fault registers, and target state. That is far more precise than a tautology. It stops short of a 5 because it never distinguishes itself from likely siblings such as get_gdb_status or get_gdb_info, so an agent must infer the split.

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

Usage Guidelines2/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. The phrase "in one call" hints that this bundles several register reads for fault triage, but the description never names an alternative tool or states the condition (e.g. a hard fault occurred) that should select this one over the individual status tools.

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