Skip to main content
Glama

Start Detour

start_detour

Declare unplanned work as a detour from the current task before starting it, branching progress so it stays tracked. Use when planned tasks must split and only one detour can remain open.

Instructions

Declare that the work is splitting off from the planned Tasks, before doing it. Branches from the current Task. Only one Detour can be open.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "title": "<title>",
      "reason": "<reason>"
    },
    "name": "start_detour"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoThe claimed Goal's ID, such as 'ship-oauth-login'. Needed only when this Session holds several Goals.
titleYesWhat the Detour does, such as 'Fix flaky token refresh'.
reasonYesWhy the work has to split off from the plan now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.4.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / goal
      Added value: +{
      +  "description": "The claimed Goal's ID, such as 'ship-oauth-login'. Needed only when this Session holds several Goals.",
      +  "type": "string"
      +}
  2. First observedv0.2.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that the Detour branches from the current Task and that only one can be open, which are useful behavioral constraints. It does not explain what happens to existing planned work, whether the current Task is paused or modified, or what state changes occur.

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 three short sentences, front-loaded with the purpose and followed by the branching behavior and the single-open constraint. Every sentence carries useful information with no redundant wording.

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

Completeness3/5

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

The description covers the purpose, branching relationship, and an important constraint, and the schema fully documents the three parameters. However, for a mutation tool with no annotations and no output schema, it lacks guidance on alternatives and does not describe the resulting state changes or effects on the plan.

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

Parameters3/5

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

Schema description coverage is 100%, so the input schema already documents title, reason, and the conditional goal parameter thoroughly. The description adds no parameter-specific meaning beyond what the schema provides, which is the expected baseline when the schema is complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action: declaring that work splits off from planned Tasks, branching from the current Task. It clearly identifies the resource as a Detour and adds a key constraint that only one can be open. It does not explicitly distinguish itself from alternatives like add_hotfix or add_small_fix, but the core purpose is clear.

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

Usage Guidelines3/5

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

The phrase 'before doing it' implies the timing for using this tool, and 'Only one Detour can be open' gives a usage constraint. However, it does not state when to choose this over siblings such as add_hotfix or add_small_fix, nor does it say when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.