选择指定编号的栈帧,用于查看该层的局部变量。 参数: - frameId: 栈帧编号 (从0开始,0为当前帧)
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.
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)
Attacks that exploit this kind of access
选择指定编号的栈帧,用于查看该层的局部变量。 参数: - 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.
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.
gdb_select_frame is a Read tool with low risk. Read-only tools are generally safe to allow by default.
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.
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.
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.
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 →