Skip to main content
Glama

End Detour

end_detour

Close an open detour by merging it back, returning to the plan with appended tasks, or recalibrating the remaining task list to keep the shared goal record current.

Instructions

End the open Detour. 'merge back': it was small and is done; the plan is unchanged. 'return': go back to the plan, appending tasks for the Detour's intended work if any. 'recalibrate': drop every remaining Task and replace them with tasks.

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": {
      "ending": "<ending>"
    },
    "name": "end_detour"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoThe claimed Goal's ID, such as 'ship-oauth-login'. Needed only when this Session holds several Goals.
tasksNoTasks to append (return) or the new Task list (recalibrate).
endingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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"
      +}
    • addedInput schema / properties / tasks / items / properties / estimate
      Added value: +{
      +  "description": "How long it should take, such as '45m', '2h' or '1h 30m'. Give one for every Task you plan; the dashboard's schedule is built from them.",
      +  "type": "string"
      +}
  2. First observedv0.2.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the consequential side effects: 'merge back' leaves the plan unchanged, 'return' appends tasks, and 'recalibrate' drops every remaining Task. That last clause is a clear destructive warning. It stops short of saying whether dropped Tasks are recoverable or what the call returns.

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 operative verb and object lead, followed by three tight quoted-mode clauses separated by semicolons. Nothing is repeated and no sentence is decorative.

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?

For a 3-parameter mutation tool with no annotations and no output schema, the description covers the mode semantics and side effects thoroughly. The remaining gap is minor: it never addresses the `goal` disambiguation parameter or the failure mode when no Detour is open.

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 67%, and the description compensates where it matters most: the bare enum values for `ending` get explicit meaning, and `tasks` is clarified as appended under 'return' versus replacing the list under 'recalibrate'. The `goal` parameter is only documented in the schema, which the description never mentions.

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?

"End the open Detour" gives a specific verb and a specific resource, and the 'open' qualifier signals the counterpart to start_detour. The three named endings then pin down exactly what ending the Detour means in each case.

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?

Each ending mode carries its own selection condition: 'merge back' when the work was small and is done, 'return' to resume the unchanged plan, 'recalibrate' to replace the remaining list. That is genuine when-to-use-which guidance, though it never states preconditions such as requiring an open Detour or how to abandon one without ending it.

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