Skip to main content
Glama

abort_branch

Abort an entire branch of reasoning by returning early from an ancestor step, skipping subsequent steps and providing a reason for termination.

Instructions

Early return from an ancestor step, skipping the rest of its branch.

Use when you discover that an entire branch of reasoning is pointless — not just your step, but the ancestor that initiated it.

The target step completes with your output (it doesn't fail). The target's parent (the requestor) sees the result and decides what to do next.

Args: target_id: The ancestor step to return from. output: The result for the target step (e.g. "Approach debunked by X"). reason: Why this branch is untenable. Saved as a campaign note. step_id: Your step ID. Inferred from session if omitted.

Returns: List of skipped step IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
target_idYes
outputYes
reasonYes
step_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations provided; description carries full burden. Discloses that target step doesn't fail but completes, reason saved as note, and returns list of skipped step IDs. Good transparency for a mutation tool.

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 with a few sentences and an Args list. It's front-loaded with core purpose. Only minor inefficiency: the Args list could be slightly tighter, but overall well-structured.

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?

The tool is complex (branch abort with ancestor) and has an output schema (return value). Description covers the return type ('List of skipped step IDs') and behavioral nuances. Sufficiently complete given the 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%, but the description includes an Args section that explains each parameter's purpose (target_id, output, reason, step_id). This adds significant meaning beyond the bare 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 clearly states it aborts an ancestor step, skipping its branch. It uses specific verb+resource ('abort branch') and distinguishes from siblings like 'fail_step' and 'complete_step' because it completes the ancestor with output.

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?

Explicitly states when to use: when an entire branch of reasoning is pointless. Explains behavior (target completes with output, parent decides). Lacks explicit when-not-to-use or alternatives, but 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/retospect/sortie-mcp'

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