Skip to main content
Glama

Rake

Check register and field names

check_registers
Read-onlyIdempotent

Checks a list of register, field and peripheral names against the vendor's own file for a microcontroller and says for each whether it exists, with its address or bit position, or names the closest that do. Use it after writing or reviewing register-level code, on every name the code uses, to catch a register or bit that does not exist on this part. Covers 935 devices from ST, Nordic, Raspberry Pi, Espressif, Microchip, NXP and TI, and says so when it has no data for a part. Names follow that file. Another file of the vendor, such as a header, can spell a few of them differently.

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

Input Schema

NameRequiredDescriptionDefault
namesYesThe names as the code has them: USART1->BRR, RCC->APB2ENR.USART1EN, RCC_APB2ENR_USART1EN, GPIOA->MODER, P0->PIN_CNF[3], TCCR1B, CS12.
deviceYesThe part, for example STM32F407VGT6, stm32g431, nrf52840 or esp32c3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, and closed-world behavior. The description adds substantial behavioral context beyond that: per-name existence results with address or bit position, closest-match fallback, 935-device coverage, explicit no-data responses, and vendor-file spelling caveats.

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?

The definition is front-loaded with the core operation, then moves efficiently through usage timing, coverage scope, and the important spelling caveat. Every sentence contributes useful information, and the length is justified by the validation task.

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?

With two required parameters, complete schema coverage, no output schema, and read-only annotations, the description supplies everything an agent needs: purpose, usage timing, output shape, coverage limits, and spelling caveats. There is no significant missing context for correct invocation.

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%, so the schema already documents both parameters and provides input examples. The description still adds meaning by clarifying that names include registers, fields, and peripherals, that names follow the vendor file, and that vendor headers may spell them differently.

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?

The description uses a specific verb ('Checks') on a clear resource: a list of register, field, and peripheral names against the vendor's file. The batch 'for each' result and per-name existence/address/bit-position output clearly distinguish it from single-name lookup or register-decoding siblings, even without naming them.

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?

It explicitly says to use this after writing or reviewing register-level code, on every name the code uses, to catch nonexistent registers or bits. That is strong usage context, but it does not name alternatives such as single-name lookup tools or state when not to use this batch checker.

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