Skip to main content
Glama

Rake

Check code against an ESP-IDF release

check_esp_idf_api
Read-onlyIdempotent

Finds the ESP-IDF functions, types and headers in a piece of code that do not fit the ESP-IDF release of the project: removed, changed or deprecated by that release, or introduced after it. Each finding names the replacement. Use it on ESP32 code before building, when the code may come from another ESP-IDF major version, for example ESP-IDF 4 driver calls in an ESP-IDF 5 project. The list comes from Espressif's migration guides for ESP-IDF 5.0 to 5.5, so a name outside those guides is not judged.

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": {
      "code": "<code>",
      "idf_version": "<idf_version>"
    },
    "name": "check_esp_idf_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe C or C++ source to check.
idf_versionYesThe ESP-IDF release the project builds with, for example 5.3 or 4.4.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely new behavioral context: each finding names a replacement, and the check set is bounded to Espressif's migration guides for 5.0–5.5 so "a name outside those guides is not judged." That coverage limit is exactly the kind of disclosure an agent needs to interpret a clean result, though it does not say whether findings are exhaustive within the covered range.

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 purpose, then the trigger condition, then the knowledge-base caveat. Every sentence contributes: purpose, when-to-use with an example, and a scope limit that prevents misreading an empty result.

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 still tells the agent what comes back ("Each finding names the replacement") and where the judgments come from (migration guides 5.0–5.5). For a two-parameter, read-only analysis tool, nothing an agent needs in order to call it or interpret the result is missing.

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% — both code and idf_version are already documented with format and an example — so the schema carries the parameter burden and baseline is 3. The description adds only modest framing, constraining the input to ESP32 C/C++ and pairing idf_version with "the release of the project," which is largely a restatement of schema text.

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?

"Finds the ESP-IDF functions, types and headers in a piece of code that do not fit the ESP-IDF release of the project" names a specific verb and a precisely scoped resource (removed/changed/deprecated/too-new symbols). The definition of what counts as a finding distinguishes it cleanly from siblings like check_build_flags or check_freertos_config, which address different classes of problems.

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?

"Use it on ESP32 code before building, when the code may come from another ESP-IDF major version" gives a concrete trigger condition plus a worked example (ESP-IDF 4 driver calls in an ESP-IDF 5 project). It does not name a sibling to use instead when the code is not an IDF-version issue, so usage context is clear but alternatives are left implicit.

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