Skip to main content
Glama

If this account hits its limit, continue in another

sanecode_set_failover
Idempotent

Set a standing rule: when one account hits its usage limit, SaneCode opens the same Claude Code conversation in another account and types a prompt there ("Continue from where you stopped."), so the work keeps going without the user. With switch_back (on by default) it also moves back when the second account runs out and the first has reset. Needs SaneCode Pro and SaneCode open.

Use it when: the user starts or plans a long, unattended or overnight task ("migrate all routes", "run until the tests pass", "I'm going to bed", "keep going without me"); the user says "if you run out, use my work account"; you're asked to make sure the work doesn't stop at the limit. Offer it before such a task even if the user didn't ask, then call it when they agree.

Don't use it for: moving the conversation right now (use sanecode_continue_in_account); waiting for this same account's reset (use sanecode_schedule_continue).

Example: user "Refactor all 60 handlers, I'll check in the morning" → call sanecode_accounts_and_limits, pick an account with no limit, call sanecode_set_failover with to="work" and a prompt that restates the user's task, e.g. "Continue refactoring the 60 handlers from where you stopped."

This is the alternative to waiting: set_failover keeps going in another account at once; sanecode_schedule_continue waits for this account's own reset.

Returns the rule (its id) or why it couldn't be set.

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": {
      "to": "<to>"
    },
    "name": "sanecode_set_failover"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe account to continue in, by its SaneCode name (from sanecode_accounts_and_limits).
fromNoThe account whose limit starts the move. Leave out for this account (you).
promptNoWhat to type in the other account after the move, one line. Restate the user's task when you know it; don't add steps they didn't ask for. Default: "Continue from where you stopped."
switch_backNoAlso move back when the other account runs out and this one has reset. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is partly covered. The description adds genuinely useful behavior beyond that: it is a persistent standing rule rather than a one-shot move, it requires SaneCode Pro and SaneCode running, and switch_back reverses direction later. It also states the return is the rule id or a failure reason.

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?

Well front-loaded with labeled Use it when / Don't use it for sections and an example, and every section is scannable. Minor redundancy: the closing sentence re-explains the 'alternative to waiting' point already made in the don't-use list.

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 four-parameter automation tool with no output schema and only partial annotation coverage, the description supplies prerequisites, default behaviors, return value, a concrete example, and sibling routing. Nothing an agent needs in order to invoke 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 a 3 is the baseline; however the worked example ties parameters to a concrete workflow (call sanecode_accounts_and_limits, then pass to="work" with a prompt restating the task), which adds sequencing meaning the schema alone doesn't convey. The switch_back default and from-account semantics largely restate the schema, limiting it to a 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?

States a precise verb and resource ('Set a standing rule') and immediately explains the mechanism: opening the same Claude Code conversation in another account and typing a prompt there. It is clearly distinguishable from sanecode_continue_in_account and sanecode_schedule_continue, which it names.

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?

Explicit when-to-use triggers are given as user utterances ('I'm going to bed', 'if you run out, use my work account'), and explicit when-not-to-use cases route to the correct siblings. It even specifies proactive behavior: offer it before a long unattended task, then call it when the user agrees.

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