Skip to main content
Glama

Rake

Get firmware coding rules

get_firmware_rules
Read-onlyIdempotent

Returns coding rules for microcontroller firmware in C, C++ or Rust. Each rule has an id, a habit with its reason, what to look for in review, and the MISRA or CERT rule numbers it relates to. The rules that block a change come first. Use it before writing firmware code, or to review code rule by rule, where a finding can name the id of its rule. Give a context to get only the rules for that kind of code.

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": {
      "language": "<language>"
    },
    "name": "get_firmware_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoThe kind of code: bare-metal, rtos (task code), interrupt (handlers), driver or bootloader. Omit for every rule of the language.
languageYesThe language of the code: c, cpp or rust.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description correctly spends its words elsewhere: it discloses that blocking rules are ordered first and describes the fields of each returned rule. With no output schema, that return-shape disclosure is genuinely additive; only result size/pagination is unaddressed.

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?

Front-loaded with the core purpose, followed by return structure, then usage, then the parameter hint – a sensible order. The rule-anatomy sentence is long but each clause carries information an agent would otherwise lack.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 lookup with no output schema, the description covers purpose, return shape, ordering, and filtering, which is close to everything needed to call it correctly. It omits expected result volume, which matters for an agent deciding whether to narrow by context.

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% with both enums fully documented, so the schema does the heavy lifting. The description's line 'Give a context to get only the rules for that kind of code' merely restates the context filter and the omit-for-all behavior already in the schema, adding little new meaning.

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 specific verb and resource ('Returns coding rules for microcontroller firmware in C, C++ or Rust') and goes further to enumerate the shape of a rule (id, habit, reason, review cue, MISRA/CERT numbers). This clearly separates it from the sibling check_*/calc_* tools, which validate or compute rather than supply a rule corpus.

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 two concrete use moments – before writing firmware code, and during rule-by-rule review where a finding can cite a rule id. It does not name an explicit alternative or state when not to use it, so it stops short of full routing guidance.

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