Skip to main content
Glama
sbergeron42

gdb-multiarch-mcp

by sbergeron42

gdb_list_breakpoints

Display all active breakpoints with structured details for debugging Nintendo Switch executables in gdb-multiarch.

Instructions

List all breakpoints with structured data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The `list_breakpoints` method in the `GDBSession` class executes the `-break-list` GDB/MI command and parses the structured response.
    def list_breakpoints(self) -> dict[str, Any]:
        """
        List all breakpoints with structured data.
    
        Returns:
            Dict with array of breakpoint objects containing:
            - number: Breakpoint number
            - type: Type (breakpoint, watchpoint, etc.)
            - enabled: Whether enabled (y/n)
            - addr: Memory address
            - func: Function name (if available)
            - file: Source file (if available)
            - fullname: Full path to source file (if available)
            - line: Line number (if available)
            - times: Number of times hit
            - original-location: Original location string
        """
        # Use MI command for structured output
        result = self.execute_command("-break-list")
    
        if result["status"] == "error":
            return result
    
        # Extract breakpoint table from MI result
        mi_result = self._extract_mi_result(result) or {}
    
        # The MI response has a BreakpointTable with body containing array of bkpt objects
        bp_table = mi_result.get("BreakpointTable", {})
        breakpoints = bp_table.get("body", [])
    
        return {"status": "success", "breakpoints": breakpoints, "count": len(breakpoints)}
  • Registration of the `gdb_list_breakpoints` tool in `server.py` using a `Tool` definition.
    Tool(
        name="gdb_list_breakpoints",
        description="List all breakpoints with structured data.",
        inputSchema=NO_ARGS_SCHEMA,
    ),
  • The tool handler implementation in `server.py` which calls `session.list_breakpoints()`.
    elif name == "gdb_list_breakpoints":
        result = session.list_breakpoints()
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'structured data' indicating the output format, but fails to clarify what fields are returned, whether the operation is read-only, or if the debugger must be in a specific state.

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 single-sentence description is appropriately sized and front-loaded with the action verb. Every word serves a purpose, though the brevity leaves room for additional context given the lack of annotations or output schema.

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

Completeness3/5

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

For a simple listing tool with no parameters, the description provides the minimum viable information. However, given the absence of an output schema and annotations, it could be improved by specifying what breakpoint attributes (number, address, hit count, enabled status) are included in the 'structured data'.

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

Parameters4/5

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

The tool has zero parameters with 100% schema description coverage (empty schema). The description correctly makes no parameter claims, meeting the baseline expectation for parameter-less tools.

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 clearly states the action ('List') and resource ('breakpoints'), distinguishing it from sibling CRUD tools like gdb_set_breakpoint and gdb_delete_breakpoint. The addition of 'structured data' hints at the return format, though specificity is limited without an output schema.

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 explicit guidance provided on when to use this tool versus alternatives (e.g., when to list all breakpoints vs. checking specific ones via gdb_get_status). The description lacks prerequisites or situational context.

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/sbergeron42/gdb-multiarch-mcp'

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