gdb_select_frame

选择指定编号的栈帧,用于查看该层的局部变量。 参数: - frameId: 栈帧编号 (从0开始,0为当前帧)

Server GDB MCP Server zjm1060/gdb-mcp
Category Read
Risk class Low
Parameters 00 required

What gdb_select_frame does on GDB MCP Server

AI agents call gdb_select_frame to retrieve information from GDB MCP Server without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

Why gdb_select_frame needs a policy

This tool selects a stack frame for inspection purposes — viewing local variables. While it changes the debugger's current frame context, it does not modify program state, execute code, or cause side effects. It is a navigational/read operation within the debugger session.

From the tool's definition 选择指定编号的栈帧,用于查看该层的局部变量 (Select the specified stack frame number, used to view local variables at that level)

Questions about gdb_select_frame

What does the gdb_select_frame tool do? +

选择指定编号的栈帧,用于查看该层的局部变量。 参数: - frameId: 栈帧编号 (从0开始,0为当前帧). It is categorised as a Read tool in the GDB MCP Server MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on gdb_select_frame? +

Register the GDB MCP Server MCP server in PolicyLayer and add a rule for gdb_select_frame: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches GDB MCP Server. Nothing to install.

What risk level is gdb_select_frame? +

gdb_select_frame is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit gdb_select_frame? +

Yes. Add a rate_limit block to the gdb_select_frame rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block gdb_select_frame completely? +

Set action: deny in the PolicyLayer policy for gdb_select_frame. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides gdb_select_frame? +

gdb_select_frame is provided by the GDB MCP Server MCP server (zjm1060/gdb-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.