Skip to main content
Glama

Hold without orders until completion

hold_until_end

Repeatedly advance an authenticated run without adding orders until it completes, liquidates, or reaches max_bars. This bounded helper handles terminal waiting; require_flat can enforce cash-only execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesRun UUID returned by start_run.
max_barsNoMaximum one-bar advances before stopping; defaults to 256 and acts as a safety cap.
require_flatNoWhen true, reject the call unless the run has no open positions; use this guard for cash-only waiting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / max_bars / description
      Previous value: -"Safety cap for one-bar advances. Defaults to 256."New value: +"Maximum one-bar advances before stopping; defaults to 256 and acts as a safety cap."
    • changedInput schema / properties / require_flat / description
      Previous value: -"If true, reject the request unless there are no open positions."New value: +"When true, reject the call unless the run has no open positions; use this guard for cash-only waiting."
    • changedInput schema / properties / run_id / description
      Previous value: -"Run UUID."New value: +"Run UUID returned by start_run."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations provide readOnlyHint=false and destructiveHint=false; description adds that it repeats without adding orders, stops at max_bars as a safety cap, and supports require_flat. No contradiction, and it supplements annotations with bounded-loop behavior.

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?

Two sentences, no fluff, directly state purpose and key constraints. Front-loaded with the main action followed by supporting details.

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 no output schema, the description explains termination conditions (complete, liquidate, max_bars) and optional guard. Could hint at return value but is fairly complete for a simple helper tool.

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 covers all 3 parameters with descriptions (100% coverage). The tool description only mentions max_bars and require_flat briefly, adding minimal extra meaning beyond schema. Base score of 3 is appropriate.

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 uses a specific verb ('advance') and resource ('authenticated run') with clear termination conditions (completes, liquidates, max_bars). It distinguishes from siblings like step_run and advance_until_next_session by framing as a repeatedly advancing helper for terminal waiting.

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 states this is a 'bounded helper' for 'terminal waiting' and mentions 'require_flat can enforce cash-only execution', indicating when to use and a specific guard. It doesn't explicitly exclude 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.