Skip to main content
Glama

Rake

Check interrupt handler names

check_interrupt_handlers
Read-onlyIdempotent

Checks interrupt handler function names against the vector table of a part and says for each whether the startup file declares it, or names the closest that it does. Use it on every interrupt handler function in the code: a handler with a name the startup file does not declare compiles and links, and is never called. It needs the vendor's device header, which the data has for ST parts. For another part it says so and judges nothing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "device": "<device>",
      "names": "<names>"
    },
    "name": "check_interrupt_handlers"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesYesThe handler function names, for example USART1_IRQHandler, TIM1_UP_TIM10_IRQHandler, HardFault_Handler.
deviceYesThe part, for example STM32F103C8T6 or STM32G431KB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, closed-world read, and the description still adds real behavior: per-name verdicts with nearest-match suggestions, dependency on the vendor device header, and ST-only coverage with graceful degradation ('says so and judges nothing') rather than an error. It stops short of describing result shape or ordering, but that is a minor gap given the annotation coverage.

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?

Three sentences, front-loaded with the core operation, then rationale, then coverage limits—no filler or repetition. The final two sentences are slightly indirect in phrasing ('which the data has for ST parts') but each still carries necessary information.

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 two-parameter, read-only checker with no output schema, the description covers purpose, invocation trigger, return semantics, and device-coverage limits—everything an agent needs to call it and read the result correctly.

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?

Schema coverage is 100% and already supplies examples for both parameters, so baseline would be 3. The description adds genuine meaning beyond the schema by noting that 'device' only yields verdicts for ST parts, which changes how an agent should interpret the argument and the response.

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 precise verb and resource: it checks handler function names against a part's vector table and returns, per name, whether the startup file declares it or else the closest declared name. That closest-match behavior sharply separates it from a plain interrupt-listing tool, so an agent can tell what it does without reading further.

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?

Gives an explicit directive ('Use it on every interrupt handler function in the code') plus the rationale that undeclared handlers link but are never called, which tells the agent exactly when this check is warranted. It also states a when-not condition (non-ST parts) and says results are withheld there, though it names no alternative tool for those cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources