Skip to main content
Glama

设置断点条件

gdb_set_condition

Set or modify a conditional expression on an existing breakpoint. Pass an empty string to clear the condition.

Instructions

为已有断点设置或修改条件表达式。

参数:

  • breakpointId: 断点编号

  • condition: 条件表达式,如 x>5, i==10;传空字符串清空条件

示例:

  • gdb_set_condition({breakpointId: "1", condition: "x>5"}) → 设置条件

  • gdb_set_condition({breakpointId: "1", condition: ""}) → 清除条件

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conditionYesConditional expression, empty string to clear condition
breakpointIdYesBreakpoint number
Behavior4/5

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

Annotations indicate this is not read-only and not destructive. The description adds behavior details: it sets or modifies conditions, and passing an empty string clears the condition. This goes beyond annotations by clarifying the modification mechanics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise: two short paragraphs covering purpose, parameters, and two examples. Every sentence adds value, no redundancy or fluff.

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

Completeness5/5

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

For a simple two-parameter modification tool with no output schema, the description fully covers all user needs: what it does, how each parameter works, and examples for both setting and clearing conditions. It is complete given the complexity.

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?

Schema coverage is 100% and descriptions already exist for parameters. The tool description adds concrete examples (e.g., 'x>5', 'i==10') and explains the clearing behavior with empty string, which supplements the schema nicely.

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 sets or modifies a condition expression for an existing breakpoint. It distinguishes from sibling tools like gdb_set_breakpoint (which creates breakpoints) by specifying it operates on existing breakpoints.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context: when you have an existing breakpoint and need to add/modify its condition. It doesn't explicitly state when not to use or mention alternatives, but context signals show many sibling tools, and the purpose is clear enough to guide selection.

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

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