Skip to main content
Glama

dbg_pause

Sends a pause request to interrupt a running program, immediately acknowledging the request without waiting for the stop.

Instructions

Interrupt a running program.

This only acknowledges the pause request; it does NOT wait for the stop. A continue/step in flight holds the session lock for its whole await-for-stop, so pause must run lock-free to interrupt it. The resulting stopped event is delivered to that in-flight call's waiter, which returns the stop snapshot to its own caller. The caller of dbg_pause receives only this ack.

Residual race (acceptable): pause may transiently reject at the exact instant a continue/step starts, while state is still STOPPED for the microsecond before run_and_wait flips it to RUNNING under the lock. Flipping to RUNNING early (before awaiting the resume response) minimizes this window.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
Behavior4/5

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

With no annotations, the description fully discloses behavioral traits: it only acknowledges the pause request, does not wait for stop, is lock-free, and explains the race condition with continue/step. It also mentions the delivery of a 'stopped' event.

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 concise and front-loaded with the primary purpose. It includes necessary technical details without being overly verbose, though some sentences could be tightened.

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 lack of output schema and annotations, the description covers the tool's behavior well: it explains the asynchronous nature, race condition, and what the caller receives. It is sufficient for an agent to use the tool correctly.

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

Parameters2/5

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

The description does not provide any additional meaning for the 'session_id' parameter beyond what is in the schema. With 0% schema coverage, the description should explain how session_id is used; it does not.

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 'Interrupt a running program' with a specific verb and resource. It distinguishes itself from sibling tools like dbg_continue (resume) and dbg_step (step) by focusing on pausing.

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 explains when to use the tool (to pause a running program) and provides context about its asynchronous behavior and lock-free nature. It does not explicitly state alternatives or when not to use, but the context is clear.

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

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