Skip to main content
Glama

address_to_source

Map firmware addresses to source files and line numbers to locate code during embedded debugging.

Instructions

Map firmware addresses to source files and line numbers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "address_to_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNo
demangleNo
elf_fileNo
elf_pathNo
addressesNo
functionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden, yet it says nothing about whether an ELF file must be supplied, whether a debug session is required, how failures appear, or whether the operation is read-only. It only restates the conceptual transformation.

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?

A single front-loaded sentence with zero filler, but it is under-specified rather than appropriately sized for a six-parameter tool. No wasted words, but too few of them.

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?

Scored against complexity: the tool has six optional parameters, no annotations, and no output schema, so the description should do much more. It does convey the return semantics (source file plus line number), but leaves all input handling and prerequisites unexplained.

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?

Six parameters at 0% schema description coverage, and the description explains none of them: the elf_file vs elf_path distinction, what format addresses take, what functions=true toggles, or what demangle affects. Only 'addresses' is loosely implied by the wording.

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 and both ends of the mapping (firmware addresses -> source files and line numbers), which is enough to tell it apart from siblings like disassemble or get_source_listing. It stops short of explicitly naming a sibling it is not, so a 4 rather than a 5.

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?

There is no when-to-use guidance, no prerequisite (e.g. an ELF must be loaded/selected), and no mention of alternatives such as get_source_listing or disassemble. The agent must infer the invocation context entirely.

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