Skip to main content
Glama

Save, pause or stop a strategy

save_active_strategy

Record a strategy start, pause, resume, stop or run heartbeat. Moves no money. So other sessions and clients see what you run:

  • START: omit active_strategy_id; pass strategy_id for a starter card (its name is used if you omit name) or name for a custom one, plus settings (the numbers the user confirmed: amounts, mix, exits, the ask-first flag) and schedule in plain words ('every 4 hours').

  • PAUSE / RESUME / STOP: pass active_strategy_id and status paused / active / stopped.

  • EDIT: pass active_strategy_id and only the fields that changed (an empty value clears settings, schedule or notes).

  • HEARTBEAT: after each run, pass active_strategy_id and last_run_at (now, ISO 8601). At most 20 active or paused per user; stop one to start another. This moves no money and changes no guardrail.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_active_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name (max 120 chars).
notesNoAnything to remember (max 1000 chars).
statusNoactive, paused or stopped.
scheduleNoHow often it runs, in plain words (max 120 chars).
settingsNoThe confirmed numbers as a small JSON object (max 8 KB); `{}` clears it.
last_run_atNoISO 8601 time of the run just finished, e.g. `2026-10-29T14:00:00Z`.
strategy_idNoThe starter card `id` from list_strategies; omit for a custom strategy.
active_strategy_idNoOmit to start a new one; an `id` from get_my_active_strategies to update.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / properties / active_strategy_id / title
      Removed value: -"Active Strategy Id"
    • removedInput schema / properties / last_run_at / title
      Removed value: -"Last Run At"
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • removedInput schema / properties / notes / title
      Removed value: -"Notes"
    • removedInput schema / properties / schedule / title
      Removed value: -"Schedule"
    • removedInput schema / properties / settings / title
      Removed value: -"Settings"
    • removedInput schema / properties / status / title
      Removed value: -"Status"
    • removedInput schema / properties / strategy_id / title
      Removed value: -"Strategy Id"
    • removedInput schema / title
      Removed value: -"save_active_strategyArguments"
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses the two facts that matter most for a mutation tool: "Moves no money" and "changes no guardrail," plus a per-user quota. It also warns that an empty value clears settings, schedule or notes, which is effectively the destructive behavior the destructiveHint=false annotation would otherwise leave ambiguous.

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?

Purpose and the safety statement are front-loaded, then one bullet per operation, then the quota constraint. Every sentence maps to an action the agent must take; nothing is repeated from the schema or annotations.

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 0-required, 8-parameter mutation multiplexer with an output schema present, the description covers operation selection, ID sourcing, clearing semantics, rate cap and safety. Nothing an agent needs to call it correctly is missing.

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 100%, so the baseline is 3, but the description adds genuine conditional meaning the schema cannot express: which parameters go together per operation, that name is derived from the starter card when omitted, that an empty value clears a field, and the ISO 8601 form for last_run_at. It stops short of explaining the settings object's expected keys beyond examples, which keeps it at 4.

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?

"Record a strategy start, pause, resume, stop or run heartbeat" gives a concrete verb plus the full resource lifecycle, which separates it cleanly from read siblings like get_my_active_strategies, get_strategy and list_strategies. An agent knows immediately that this is the write/routing tool for strategy state.

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

Usage Guidelines5/5

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

Each operation names the exact condition that selects it (START omits active_strategy_id; PAUSE/RESUME/STOP pass active_strategy_id plus status; HEARTBEAT passes last_run_at after each run). It also names the sibling sources for IDs (list_strategies for a starter card, get_my_active_strategies to update) and states the 20 active/paused cap with the escape hatch of stopping one first.

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.

Resources