Skip to main content
Glama

compile_assembly

Compile .s or preprocessed .S assembly source files into object files for ARM embedded firmware builds.

Instructions

Compile a .s or preprocessed .S assembly source file into an object file.

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": {
      "source": "<source>"
    },
    "name": "compile_assembly"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagsNo
outputNo
sourceYes
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden but says nothing about toolchain/compiler requirements, what happens on compile failure, whether output files are overwritten, or how the timeout is enforced. Only the input-to-output transformation is implied.

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?

A single front-loaded sentence with no filler. It is efficient, though its brevity contributes to the coverage gaps noted elsewhere rather than being a structural flaw.

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

Completeness2/5

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

A mutation tool that writes an object file, with four undocumented parameters and no output schema, needs substantially more than one sentence. Missing are error behavior, output location defaults, and interactions with the toolchain-oriented siblings.

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

Parameters2/5

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

Schema description coverage is 0% across 4 parameters, so the schema titles ('flags', 'output', 'timeout') carry all meaning. The description only accounts for 'source' and the implicit object output; it adds nothing about flags syntax, output path defaults, or timeout units.

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?

States a specific verb (compile) and resource (assembly source file), and distinguishes itself from compile_c/compile_cpp by narrowing to '.s or preprocessed .S' inputs. It doesn't explicitly name those siblings, but the file-type scoping makes the boundary inferable.

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 guidance on when to choose this over build_project or the C/C++ compile tools, and no prerequisites such as a required toolchain. The agent must infer selection purely from the file extension mentioned in the purpose statement.

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