Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

createFMartBot

Creates a futures Martingale bot that opens an initial position and adds to it on price dips (long) or rallies (short) with configurable leverage, margin, and take-profit.

Instructions

Creates a futures Martingale trading bot. The bot opens an initial position and adds to it when price drops (long mode) or rises (short mode) by the configured price_float_percent. Each add scales position by add_position_percent.

Key parameters include symbol, mode (long/short), leverage, price trigger percentage, add position ratio, max add count, initial margin, and round take-profit percentage. Optional parameters include stop-loss, entry price trigger, auto-cycle toggle, and trailing stop.

Before calling this endpoint, use /v5/fmartingalebot/getlimit to validate parameter ranges.

Rate limit: 10 requests per second per UID. Subject to compliance wall, GEO IP check, and KYC verification.

Agent hint: Always call getFMartLimit first to verify parameters are in range. The martingale_mode determines direction: 1=Long (buys dip), 2=Short (sells rally). auto_cycle_toggle=1 means the bot restarts after each round TP. The bot_id in a successful response is needed for getFMartDetail and closeFMartBot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
martingale_modeYes
leverageYes
price_float_percentYes
add_position_percentYes
add_position_numYes
init_marginYes
round_tp_percentYes
auto_cycle_toggleNo
sl_percentNo
entry_priceNo
sourceNo
followed_bot_idNo
block_sourceNo
create_typeNo
init_bonusNo
channelNo
Behavior4/5

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

With no annotations, the description carries full burden. It discloses rate limits (10 req/s), compliance/KYC checks, and explains bot behavior including the meaning of parameters like martingale_mode and auto_cycle_toggle. It also notes the need for the bot_id for subsequent calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is fairly long but well-structured into paragraphs covering behavior, parameters, preconditions, and hints. Some redundancy (e.g., mentioning getFMartLimit twice) could be trimmed, but it remains clear.

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?

Given 17 parameters, no output schema, and no annotations, the description covers the core bot logic and parameter meanings well. However, it lacks details on error responses, exact return structure, or edge cases, leaving some gaps for a complex create endpoint.

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 0%, so description must add meaning. It explains the key parameters (symbol, mode, leverage, price_float_percent, etc.) and interprets enums (e.g., martingale_mode: 1=Long, 2=Short; auto_cycle_toggle=1 for restart). This compensates for the schema's lack of descriptions.

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 clearly states that the tool creates a futures Martingale trading bot and explains the bot's behavior (opens position, adds on dips/rises). It distinguishes itself from sibling tools like closeFMartBot and getFMartDetail by focusing on creation.

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 explicitly tells the agent to call getFMartLimit first to validate parameters, providing clear when-to-use guidance. It does not explicitly exclude alternative creation tools, but the context is specific enough.

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/bybit-exchange/trading-mcp'

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