Skip to main content
Glama

inspect_memory_usage

Report ELF section memory usage with the ARM size utility to identify how firmware consumes RAM and flash, helping you spot oversized sections and optimize embedded builds.

Instructions

Report ELF section memory usage using the ARM size utility.

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": "inspect_memory_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
elf_fileNo
elf_pathNo
structuredNo

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 supplied, so the description carries the full behavioral burden, yet it discloses almost nothing beyond the one-line purpose. It does not say whether the tool requires a built ELF on disk, whether it invokes an external binary that may be missing, how large/slow it is, or what shape the result takes (per-section table vs. totals).

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?

It is a single efficient sentence with the key noun phrase front-loaded, so nothing is wasted. However, the brevity is under-specification rather than discipline: the space saved is space an agent needed for parameter and behavior details.

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?

For a three-parameter tool with no annotations, no output schema, and zero schema description coverage, the description is far too thin. An agent cannot determine parameter usage or result shape from it, which are exactly the gaps structured fields fail to cover here.

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?

All three parameters (elf_file, elf_path, structured) have 0% schema description coverage, and the description mentions none of them. The elf_file vs. elf_path pair in particular is ambiguous with both defaulting to null, and the description gives no guidance on which to supply or precedence between them, nor what 'structured' changes.

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 concrete verb ('Report') and a concrete resource ('ELF section memory usage'), plus the mechanism ('ARM size utility'). It is clear on its own, but it does not distinguish itself from siblings such as inspect_elf_sections or get_memory_map, which plausibly touch the same domain.

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 statement of when to use this tool versus inspect_elf_sections, get_memory_map, or inspect_all_elf_headers, and no exclusions or prerequisites. The only implicit hint is that it depends on the ARM toolchain, which an agent must infer from 'using the ARM size utility'.

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