Skip to main content
Glama
dbos-inc

DBOS MCP Server

Official
by dbos-inc

cancel_workflow

Cancel a running workflow, stopping its execution at the next step boundary. Optionally cancel child workflows started by it.

Instructions

Cancel a running workflow.

Sets the workflow status to CANCELLED. The workflow will stop executing at the next step boundary.

Args: application_name (string, required): Name of the DBOS application workflow_id (string, required): ID of the workflow to cancel cancel_children (bool, optional): Also cancel child workflows started by this workflow (default: false)

Returns: message (string): Confirmation message workflow_id (string): The cancelled workflow ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYes
cancel_childrenNo
application_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the state change to CANCELLED, the execution-boundary behavior, and the effect of cancel_children. It does not mention permissions or reversibility, but the core side effects are transparent.

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 well-structured with an introductory statement, behavioral details, an Args block, and a Returns block. Every sentence serves a purpose, and the information is front-loaded, making it easy to scan.

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 3-parameter tool with no annotations, the description covers purpose, behavior, all parameters, and return values (message, workflow_id). It provides everything an agent needs to invoke the tool correctly without external context.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. The Args block fully documents all three parameters: names, types, requiredness, and the default for cancel_children. This adds complete semantic meaning beyond the raw schema.

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 opens with 'Cancel a running workflow' and specifies that it sets the status to CANCELLED and stops at the next step boundary. This provides a specific verb and resource, clearly distinguishing cancellation from resume, delete, or bulk-cancel operations.

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 indicates that the tool applies to running workflows and explains the cancellation behavior, giving clear context for use. It does not explicitly name alternatives or state when not to use it (e.g., for already-completed workflows), but the guidance is sufficient for typical use.

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/dbos-inc/dbos-mcp'

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