Skip to main content
Glama

Rake

Look up a Zephyr devicetree binding

lookup_zephyr_binding
Read-onlyIdempotent

Returns the devicetree binding of a compatible in a Zephyr release: its properties with type, whether required, allowed values and defaults, the bus it sits on, its child nodes and its specifier cells. Use it when writing a devicetree node or overlay, instead of recalling property names from memory. Covers the bindings in the Zephyr tree for 3.7, 4.4, 4.5. Bindings that a module or an application adds are not covered.

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": {
      "compatible": "<compatible>"
    },
    "name": "lookup_zephyr_binding"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoThe Zephyr release: 3.7, 4.4, 4.5. Default 4.5. For another release, use the nearest one below it.
compatibleYesThe compatible string, for example st,stm32-uart, nordic,nrf-uarte, bosch,bme280 or gpio-leds. Words are searched when nothing matches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this a read-only, idempotent, non-destructive, closed-world lookup, so the safety profile is fully covered. The description adds real value beyond that by naming the exact return payload and the version coverage window, plus the fact that unsupported bindings are absent rather than empty. It does not describe failure behavior when a compatible is unknown, which would complete the picture.

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?

Three sentences, front-loaded with the action and return shape, then the use case, then the coverage limits. Every sentence carries information an agent needs; nothing is repeated from the title.

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?

With no output schema, the description carries the return-value burden and does so thoroughly by listing the binding fields. The main residual gap is not stating what happens on a miss (an error versus a partial word-search result), which matters for a lookup tool an agent may call speculatively.

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 description coverage is 100%, with the version enum and the compatible examples already documented, so baseline is 3. The description reinforces the supported releases but adds no syntax or format guidance beyond what the schema states.

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 the devicetree binding of a compatible in a Zephyr release') and then enumerates the returned content: properties with type, required flag, allowed values, defaults, bus, child nodes and specifier cells. That detail makes it unmistakable against the sibling 'lookup_zephyr_kconfig', which serves a different artifact.

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 use case ('when writing a devicetree node or overlay, instead of recalling property names from memory') and a clear exclusion: bindings added by a module or application are not covered, and other releases fall back to the nearest one below. It stops short of naming a concrete alternative tool, but the coverage boundary does the routing work here.

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