Skip to main content
Glama

lldb_backtrace

Read-onlyIdempotent

Analyze program crashes by retrieving stack traces showing function calls, source locations, and frame details for debugging C/C++ applications.

Instructions

Get a stack backtrace showing the call chain.

The backtrace shows:
- Frame numbers (0 is current frame)
- Function names and addresses
- Source file and line numbers (if available)
- Module/library names

Args:
    params: BacktraceInput with executable and stopping point

Returns:
    str: Stack backtrace with frame information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, indicating a safe, repeatable read operation. The description adds valuable behavioral context by detailing what the backtrace output includes (frame numbers, function names, source lines, module names) and mentioning availability conditions ('if available'), which goes beyond the annotations. No contradictions exist.

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?

The description is well-structured and appropriately sized. It front-loads the purpose, then details output content, and ends with parameter and return summaries. Every sentence adds value, though the 'Args' and 'Returns' sections are somewhat redundant given the schema and output schema.

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?

Given the tool's moderate complexity, rich annotations (readOnlyHint, idempotentHint), and the presence of an output schema (implied by 'Returns: str'), the description is mostly complete. It explains what the tool does and what the output contains, though it lacks usage guidelines and deeper parameter context, which are minor gaps.

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?

The schema description coverage is 0%, but the description compensates by explaining that 'params' is a 'BacktraceInput with executable and stopping point.' However, it doesn't detail the semantics of individual parameters like 'executable', 'breakpoint', or 'core_file' beyond what the schema's property descriptions already provide. The baseline is 3 since the schema does heavy lifting with well-described properties.

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?

The description clearly states the tool's purpose: 'Get a stack backtrace showing the call chain.' It specifies the exact resource (stack backtrace) and verb (get), and distinguishes it from siblings like lldb_disassemble or lldb_examine_variables by focusing on call chain visualization rather than code disassembly or variable inspection.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to prefer lldb_backtrace over lldb_threads (which might show thread states) or lldb_analyze_crash (for crash analysis), nor does it specify prerequisites like needing a running/debuggable process. Usage context is implied but not explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/benpm/claude_lldb_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server