Skip to main content
Glama
Gainium

Gainium

Official

manage_bot

Destructive

Start, stop, archive, restore, or change trading pairs on your Gainium bots. Supports DCA, combo, and grid types with configurable close options.

Instructions

Manage bot lifecycle: start, stop, archive, restore, or change trading pairs (DCA only). Each action has specific requirements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform on the bot
botIdYesBot identifier. Accepts EITHER the bot's 24-character hex MongoDB ObjectId (e.g. "65f000000000000000000001") OR the bot's UUID (e.g. "550e8400-e29b-41d4-a716-446655440000"). Either form resolves to the same bot — use whichever the bot record exposes. Get both from list_bots (the `_id` and `uuid` fields).
botTypeYesBot type
paperContextNoPaper trading context (true = paper, false = real). Default: false
closeTypeNoClose type for stop action (dca/combo). "closeByMarket" closes all positions, "leave" pauses the bot.
closeGridTypeNoClose type for stop action (grid only)
cancelPartiallyFilledNoWhether to cancel partially filled orders when stopping (optional)
pairNoFull replacement set of trading pairs for changePairs action (DCA, multi-pair bots only). Underscore format, e.g. ["BTC_USDT","ETH_USDT"]. Replaces all existing pairs. Single-coin bots reject pair changes.
Behavior4/5

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

Annotations indicate destructiveHint=true and readOnlyHint=false. Description adds specific destructive actions (stop, archive) and the constraint 'DCA only' for changePairs. No contradiction.

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?

Single sentence that is front-loaded with purpose and includes a concise caveat. Every word earns its place.

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?

For a tool with 8 parameters and conditional requirements, the description is minimal. Does not explain that closeType/closeGridType are needed for stop, or that pair is only for changePairs. No output schema, but return behavior is not addressed.

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 coverage is 100% with detailed descriptions. The tool description says 'Each action has specific requirements' but does not elaborate on parameter dependencies per action. Minimal added value beyond schema.

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?

Description clearly states verb 'Manage', resource 'bot lifecycle', and lists specific actions (start, stop, archive, restore, changePairs). Distinguishes from siblings like create_bot, update_bot.

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?

Mentions 'Each action has specific requirements' but provides no explicit guidance on when to use this tool vs alternatives like create_bot or update_bot. No exclusions or when-not advice.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gainium/gainium-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server