Skip to main content
Glama

Rake

Look up a register or bit field

lookup_register
Read-onlyIdempotent

Returns the address, size, access, reset value and bit fields of a register of a microcontroller, or the registers of a peripheral, from the vendor's own file for the part. Use it instead of recalling a register address, a bit position or a field name from memory, and to find what an address in a fault report or a debugger belongs to. Covers 935 devices from ST, Nordic, Raspberry Pi, Espressif, Microchip, NXP and TI, and says so when it has no data for a part.

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>",
      "name": "<name>"
    },
    "name": "lookup_register"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesWhat to look up: a register (USART1->BRR), a field (RCC->APB2ENR.USART1EN or RCC_APB2ENR_USART1EN), a peripheral alone (GPIOA) to list its registers, an address (0x40011008), or a register or a bit that the code names alone (TCCR1B, CS12).
deviceYesThe part, for example STM32F407VGT6, stm32g431, nrf52840 or esp32c3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish that this is a safe, idempotent, closed-world read, so the description does not need to restate safety. It adds real behavioural context instead: results come from the vendor's own file for the part, coverage is 935 devices across seven named vendors, and the tool explicitly reports when it has no data for a part. Return-shape details beyond the listed fields (paging, verbosity) are absent.

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 sentences with the payload and scope stated first and the justification second; almost no waste. The second sentence is long but each clause (memory substitute, fault-report addresses, vendor coverage, no-data behaviour) contributes distinct 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?

With no output schema, the description compensates by enumerating the returned fields, and it also discloses data provenance, vendor coverage and the failure mode for unsupported parts. For a two-parameter read-only lookup, an agent has everything needed to decide to call it and to interpret a null result.

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

Parameters3/5

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

Schema coverage is 100%, and the schema description for 'name' is unusually rich, enumerating register, field, peripheral, address and bare bit-name forms. The description does not add syntax or format guidance beyond that, so the schema carries the burden and the baseline of 3 applies.

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 names a specific verb and resource and enumerates the exact return payload: address, size, access, reset value and bit fields of a register, or the register list of a peripheral. It also distinguishes the scope of the lookup (single register/field vs. whole peripheral) and names the data source, which no sibling name implies.

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 gives two concrete use cases: instead of recalling addresses, bit positions or field names from memory, and to identify what an address in a fault report or debugger belongs to. That is genuine when-to-use guidance. It stops short of naming sibling alternatives (e.g. decode_registers, check_registers) or stating when this is the wrong tool.

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