Skip to main content
Glama

link_elf

Links object files and libraries into an ELF firmware image using optional linker scripts, flags, and map files, then reports memory usage for embedded ARM builds.

Instructions

Link object files into an ELF firmware image.

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": {
      "object_files": "<object_files>",
      "output": "<output>"
    },
    "name": "link_elf"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagsNo
outputYes
timeoutNo
map_fileNo
librariesNo
gc_sectionsNo
library_dirsNo
object_filesYes
linker_scriptNo
print_memory_usageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are present, so the description carries the full behavioral burden and does almost none of it. It does not say whether the target triple/architecture is inferred, whether the output file is overwritten, how linker errors surface, or what the caller gets back on success or failure. The only behavioral fact conveyed is that the end product is an ELF firmware image.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of waste, but its brevity reflects under-specification rather than efficient compression. For a 10-parameter linking tool, one sentence is not an appropriately sized definition.

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

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 10 parameters, no annotations, no output schema and no schema descriptions, the definition is far too thin for the tool's complexity. An agent would need to infer nearly all invocation details, especially the linker_script/flags/libraries interaction and the output contract.

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

Parameters1/5

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

Ten parameters with 0% schema description coverage, and the description adds meaning for none of them. Fields like linker_script, gc_sections, library_dirs, map_file, print_memory_usage and timeout are completely undocumented in both schema and prose, leaving an agent to guess at formats and effects.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Link') and resource ('object files') with a concrete artifact ('ELF firmware image'), so an agent can tell this apart from inspect_* or convert_elf siblings. It stops short of distinguishing it from other build-side tools such as build_project or create_static_library, which also produce linked artifacts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is given, and no alternative is named. An agent cannot tell from the description whether to call this directly or go through build_project, nor what preconditions (toolchain availability, compiled object files) must hold.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.