Skip to main content
Glama

Rake

Check compiler and linker flags

check_build_flags
Read-onlyIdempotent

Reads compiler and linker command lines, or the values of CFLAGS and LDFLAGS, and reports what bites on a microcontroller: objects built for different cores or float ABIs, a link line without the core or the float ABI, sections without garbage collection, a build without debug information or without warnings. Use it after writing or changing a Makefile, a CMake toolchain file or the flags of a build. It knows the flags of GCC and Clang and reads the flags only, not the 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": {
      "flags": "<flags>"
    },
    "name": "check_build_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagsYesThe command lines or lists of flags, one command per line: a compile line and the link line, or the values of CFLAGS and LDFLAGS.

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, so the safety profile is covered. The description adds real behavioral context beyond that: it discloses the compiler knowledge boundary ('knows the flags of GCC and Clang') and the input scope ('reads the flags only, not the code'), which tells the agent what will and will not be flagged.

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, front-loaded with what is read and what is reported, followed by when to use and the scope limit. The diagnostic list is dense but each item earns its place by telling the agent what classes of findings to expect; only the trailing scope note is slightly tacked on.

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 one-parameter read-only analyzer with no output schema, the description covers inputs, detection scope, and trigger conditions well. What is missing is any hint of the report's shape (grouped findings, severity, pass/fail), which the absent output schema leaves undescribed.

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% for the single 'flags' parameter, including the one-command-per-line format, so the description only mirrors it ('command lines or lists of flags, one command per line' is in the schema). Baseline 3 is appropriate; no extra syntax or edge-case guidance is added.

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?

Specific verb+resource: 'Reads compiler and linker command lines, or the values of CFLAGS and LDFLAGS' and then enumerates exactly what it reports (mismatched cores/float ABIs, missing -mcpu/-mfloat-abi on the link line, missing gc-sections, missing debug info or warnings). No sibling in the catalog does flag auditing, so the tool is clearly distinguishable.

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 after writing or changing a Makefile, a CMake toolchain file or the flags of a build' gives a concrete trigger point. It stops short of naming a when-not-to-use case or an alternative tool, but the usage context is explicit enough for an agent to route correctly.

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